1.apache
./configure 时需要指定 --enable-so
2.php
./configure 时需要指定 --with-apx2=/path/to/apache/bin/apxs (这样php作为apache的扩展模块 将会生成libphp5.so 到apache/module下)
在httpd.conf中加入
AddType application/x-httpd-php .php
AddHandler cgi-script .cgi .pl
1.apache
./configure 时需要指定 --enable-so
2.php
./configure 时需要指定 --with-apx2=/path/to/apache/bin/apxs (这样php作为apache的扩展模块 将会生成libphp5.so 到apache/module下)
在httpd.conf中加入
AddType application/x-httpd-php .php
AddHandler cgi-script .cgi .pl