二.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
[] []