我想关闭.htaccess文件中的所有php错误。我尝试使用下面的stackoverflow问题。允许htaccess文件apache
Enabling error display in php via htaccess only
.htaccess文件:
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_value error_log /home/petstail/public_html/PHP_errors.log
而在我的httpd.conf文件,在虚拟主机我把目录一样,
<Directory "/home/website/public_html">
Options All MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
错误日志:
Invalid command 'php_flag', perhaps misspelled or defined by a module not
included in the server configuration
但是,我仍然收到内部服务器错误(500)。我该怎么办?我错过了什么配置?
谢谢。
您是否重新启动了服务器? – hek2mgl
首先检查你的Apache error.log,看看为什么500会来。 – anubhava
请检查我的编辑请求.. –