Introduction to installing php in linux: 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 'Scrolling = '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.
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.