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)