My PHP files all display a 500 Internal server error. How can I fix this?

You can view the exact problem in your Error Log, Under cPanel -> Logs, it will give you information about while folders/files and settings are causing the error.

  • If you see "is writeable by group" please follow setup 1 below.
  • Also if you see "Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration" please follow step 3 below.

If you are running a PHP-based script on your site and are receiving a 500 and/or 404 errors on your pages, it is likely you have one or more of the following occurring:

1. The permissions on some of the folders or files are 777 or 666. If this is the case, change them to either 755 or 644 in Cpanel's File Manager (or using your local FTP client).

2. The files and/or folders are not owned by you. Certain applications having been run under php as an apache module may have files owned by the apache user of nobody. An indication that you don't own the files would be if you are unable to change their file permissions. To correct this, please contact support ( and provide the location of the folder or files that need to have your ownership.

3. The selected PHP version is not compatible with your website. Please login to cPanel and go to 'Select PHP version' to select a PHP version compatible with your website.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Why can't I log into my cPanel or webmail?

cPanel access issues can be caused by two things, your firewall or our firewall/brute force...

Where do I go to login to my control panel?

You go to or http://yourIPaddress/cpanel. You can also go to...

I need gpc_magic_quotes disable, how can I do this?

Please login to cPanel for the account in questions and go to 'Select PHP version' -> select...

How do I reduce the number of inodes I'm using?

What is an inode?An inode is a data structure used to keep information about a file on your...