Apache编译时,开启apxs选项,添加编译参数:
-with-apxs=/usr/sbin/apxs。
PHP4与PHP5在配置文件格式有些不同:
php4
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php .php4
DirectoryIndex index.php
php5
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
为了在同一台Web服务器上支持两个版本,可以通过虚拟机来实现。
Comments
There are currently no comments
New Comment