修改 /etc/apache2/mods-enabled/php5.conf
SetHandler application/x-httpd-php SetHandler application/x-httpd-php-source # To re-enable php in user directories comment the following lines # (fromto .) Do NOT set it to On as it # prevents .htaccess files from disabling it. # 可以修改成針對特定的使用者關閉PHP engine# 將此行註解掉 #php_admin_value engine Off
重新載入設定
service apache2 force-reload