Kar*_*Sho 66 html php apache internal-server-error
我的网站只有4-5个静态页面.index.html和index.php都在那里.index.html工作正常.如果我改为index.php,那就是给予500 Internal Server Error.我不知道我的错误在哪里?
注意:  
如果我使用.htaccess文件php_flag display_errors 1,
它正在显示 Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
如果我使用.htaccess文件empty,
它正在显示 Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
如果我给../contact-us.php,它显示正确.
谢谢...
Has*_*ast 137
如果您的PHP代码有致命错误但关闭错误显示,则会显示500内部服务器错误.您可以尝试此操作来查看错误本身而不是500错误页面:
在你的php文件中:
ini_set('display_errors', 1);
在.htaccess文件中:
php_flag display_errors 1
小智 67
PHP文件必须具有设置为644的权限.任何包含PHP文件和PHP访问权限的文件夹(例如,上传文件)必须将权限设置为755.在处理具有权限集的任何文件或文件夹时,PHP将运行500错误到777!