二.linux下安裝apache
tar zxvf httpdtargz
cd httpd
/configure –prefix=/www enableso
make clean
make
make install
三.linux下安裝php
tar zxvf phptargz
cd php
/configure prefix=/usr/local/php withmysql=/usr/local/mysql withapxs=/www/bin/apxs
make clean
make
make install
apache中加載php模塊
Setup your phpini
cp phpinidist /usr/local/lib/phpini
Edit your httpdconf to load the PHP module
For PHP :
LoadModule php_module modules/libphpso
For PHP :
LoadModule php_module modules/libphpso
Tell Apache to parse certain extensions as PHP
AddType application/xhttpdphp php phtml
AddType application/xhttpdphpsource phps
[] []
From:http://tw.wingwit.com/Article/program/MySQL/201311/29657.html