Skip to main content

Error 500 on all php pages

Comments

5 comments

  • dalem
    you must have done something ?? what are the permissions of your users files ls -l /home/user/public_html/
    0
  • 24x7ss
    As all your PHP sites are giving 500 error it clearly shows that the issue is with PHP handler. Check which PHP handler you are using now from WHM and try chaning it. Home >> Service Configuration >> Configure PHP and SuExec Also, try disabling SuExec first.
    0
  • Chris-777
    Couldn't tell you what I did - honestly I was just fiddling with a gallery on a vBulletin forum. Here's a folder list. I'm 99% sure it's permissions based but I've no idea what they should be. I'm testing two domains. One works now, the other doesn't, so I don't think it's php.ini. Here's one that works (with the actual folder name changed) -rw-r--r-- 1 user1 user1 168 Mar 22 22:23 /home/user1/public_html/phpinfo.php Here's one that doesn't: -rwxr-xr-x 1 user2 user2 168 Mar 22 22:27 /home/user2/public_html/phpinfo.php I'm going back and forth trying different permissions (755/644/777) but honestly I don't know what these should even be.
    0
  • dalem
    Permissions should be 0750 /home/user2/public_html/ Permissions should be 0711 /home/user2/
    0
  • cPanelMichael
    Hello, You can review /usr/local/apache/logs/error_log to get a better idea of why exactly those error messages are occurring. You can post part of the output here and we can help you determine which file/directory is the source of the permissions issue. Thank you.
    0

Please sign in to leave a comment.