正常安装apache以后,解压PHP包,然后安装PHP:
#./configure --with-apxs2=/apache2/bin/apxs --with-config-file-path=/apache2/modules --enable-track-vars --with-xml --with-mysql
#make
#make install
#cp php.ini-dist /usr/local/lib/php.ini
#vi /apache2/conf/httpd.conf
AddType application/x-httpd-php .php .php3 .phtml .inc
AddType application/x-httpd-php-source .phps
LoadModule php4_module modules/libphp4.so
阅读(1216) | 评论(0) | 转发(0) |