close
http://lwn.net/Articles/293730/
用 layman -a php-4
安裝完 php4 之後, 記得到別台 php4 機器 copy /etc/apache2/module.d/70_mod_php4.conf 過來.
以下是 70_mod_php4.conf 的內容.
<IfDefine PHP4>
# Load the module first
<IfModule !mod_php4.c>
LoadModule php4_module modules/libphp4.so
</IfModule>
# Set it to handle the files
<FilesMatch "\.ph(p4?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
DirectoryIndex index.php index.phtml
</IfDefine>
全站熱搜
留言列表