Introduction: This is the Linux installation of PHP detailed page, introduced and PHP, related knowledge, skills, experience, and some PHP source code and so on.
class= ' pingjiaf ' frameborder= ' 0 ' src= ' http://biancheng.dnbcw.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?) )
All of the above are correct and will automatically be added to the PHP module support
# 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 to see
Phpinfo ();
?>
Uninstalling 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 "Linux installation PHP"
Love EE focus on Java Michael Jackson Video station JSON online tool
Http://biancheng.dnbcw.info/php/334917.html pageno:10