Lamp Platform Build-php (end of chapter)

Source: Internet
Author: User
Tags php language php introduction

Php
Knowledge section
The component components of the lamp platform:
1, Linux operating system, Linux operating system is the basic part of the whole lamp architecture, providing the operating system to support the Web site, for other components to provide better stability, compatibility
2, Apache Web server, as the front of the lamp architecture, powerful, stable and good
3, MySQL database server, the back end of the lamp architecture, is a very extensive database system application. In the Enterprise website, business system and other applications, a variety of account information, product information, customer information, etc. can be stored in the MySQL database
4, PHP, Perl, Python Web programming language, the most common today is the PHP language. The Python language is now used for automated operations.
PHP Introduction: Hypertext Preprocessor (Super Text preprocessing language) abbreviation, is a server-side HTML embedded scripting language. PHP syntax mixes C, Java, and Perl as part of their own new syntax, with better page execution speed and support for the vast majority of popular databases.
Operation section
The first is the preparatory work:
1, in order to avoid conflicts, uninstall the existing PHP-related software packages in the system

2. Check if the Zlib-devel and Libxml2-devel packages are installed, and if not, install the two packages.

3. Install the required Extension Tool Library: The first is the Libmcrypt package, the installation is completed to optimize


4, the second is the Mhash package, the installation is completed after the same optimization


5, the third is a mcrypt package, the configuration process may appear an error.

Resolve by entering export ld_library_path=/usr/local/lib.

6. Install PHP


7. Build PHP configuration file

8. Add Zendguardloader Optimization Module

Edit the configuration file php.ini, add two lines in the

9, adjust the httpd.conf file, so that Apache support PHP.
Find the location, add the second line in the diagram

Find location, add a sentence configuration

10. Launch Apache service, ready to test PHP

11, write a Web page index.php, the content as shown

accessing in the browser

That means our lamp setup is complete.

Lamp Platform Build-php (end of chapter)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.