日期:2014-05-17  浏览次数:20799 次

安装apache 和 php
1. install apche
./configure --prefix=/usr/local/apache --enable-module=so
make clean make make install

2. 安装php


./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/lib

make clean make make install


copy php.ini to /usr/local/lib

3. 修改http.conf


添加:
#AddType application/x-httpd-php .php .phtml .php3 .inc
#AddType application/x-httpd-php-source .phps

chmod 755 filename

chmod 777 index.php