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目录
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!