Introduction: This is a detailed page for installing PHP in Linux. It introduces related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 334917 'rolling = 'no'>
Tar-zxvf php-5.2.9.tar.gz
CD php-5.2.9
. /Configure -- prefix =/usr/local/PHP -- with-apxs2 =/usr/local/apache2/bin/apxs -- With-config-file-Path =/usr/local/lib -- enable-track-vars -- With-XML -- With-MySQL
Make
Make install
Cp php. ini-Dist/usr/local/PHP/lib/PHP. ini (need this ?)
After all the preceding settings are correct, PHP module support will be automatically added.
# Vi/usr/local/apache2/CONF/httpd. conf
Loadmodule php5_module modules/libphp5.so
Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP-source. PHPs
Write a phpinfo file.
<? PHP
Phpinfo ();
?>
Uninstall PHP
Rpm-Qa | grep PHP
Sudo rpm-e php-cli-5.1.6-27.el5_5.3
Sudo rpm-e php-5.1.6-27.el5_5.3
Sudo rpm-e php-devel-5.1.6-27.el5_5.3
Sudo rpm-e php-pdo-5.1.6-27.el5_5.3
Sudo rpm-e php-mysql-5.1.6-27.el5_5.3
Sudo rpm-e php-xmlrpc-5.1.6-27.el5_5.3
Sudo rpm-e php-mbstring-5.1.6-27.el5_5.3
Sudo rpm-e php-ldap-5.1.6-27.el5_5.3
Sudo rpm-e php-gd-5.1.6-27.el5_5.3
Sudo rpm-e php-pear-1.4.9-6.el5
Sudo rpm-e php-xml-5.1.6-27.el5_5.3
More articles on "installing PHP in Linux"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/334917.html pageno: 10.