Home > Article > Operation and Maintenance > How to install php5.2 under linux
How to install php5.2 under Linux: 1. Execute "tar -zxvf php-5.2.5.tar.gz"; 2. Use configure to configure the installation information; 3. Install through "make install" php; 4. Just add php support in apache.
The operating environment of this article: linux5.9.8 system, php5.2, Dell G3 computer.
How to install php5.2 under Linux?
Install PHP 5.2.5 under Linux
① tar -zxvf php-5.2.5.tar.gz
② cd php-5.2.5
③ Use configure configuration Installation information (the most important)
./configure \ --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs :指定Apache目录 --with-mysql=/usr/local/mysql :指定MySQL目录##④ make⑤ make installAfter the installation is completed, in the virtual host htdocs directory, write php code #Why is the current program not running? Answer: Because php support has not been added to apache. ⑥ Set apache to support php running Check whether 53 has loaded the php module If there is no such line of code, you must reset apache and php, and add the following code in line 310: Remember: After we modify the configuration file, we must re- Setting up the Apache server Recommended learning: "
PHP Video Tutorial"
The above is the detailed content of How to install php5.2 under linux. For more information, please follow other related articles on the PHP Chinese website!