dsbqfrr098575666 2012-05-26 14:37
浏览 89

运行PHP脚本会导致500内部服务器错误[关闭]

Recently I installed cPanel on my vps with centOS.Now my PHP files are returning a 500 Internal Server error. HTML files work fine however. Always when i try to enter php file it says 500 Internal server error...

How can i fix it ?

  • 写回答

1条回答 默认 最新

  • doushan1863 2012-05-26 14:47
    关注

    The most probable is that you have wrong permissions on folders or files.

    A PHP file must usually have permissions set to 644 and its containing folder to 755.

    If you want to be sure permissions re right, you can use a "fast and dirty solution" setting everything to 777 (and reversing the change immediately for secvurity reasons of course).

    Also, the problem could hide in the .htaccess file, as reported here http://www.2mhost.com/kb/view/147

    Or even in the php.ini as reported here: https://www.akeebabackup.com/documentation/troubleshooter/prbasicts.html

    hope this helps

    评论

报告相同问题?