Usually when using cPanel it will usually require your index.php
to have the permissions 644 otherwise you'll get a 500 error.
You can change this in cPanel by doing the following:
- Login to your cPanel (if not already there)
- Click File Manager.
- Click the name of the file for which you would like to change the
permissions.
- Select the Change Permissions link at the top right of the page.
Select the permissions you would like to set for the file
- Owner - Read and write
- Group - Read
- World - Read
Click Change Permissions.
Alternatively, if you have ssh access you could run the following command on the server:
chmod 644 path/to/index.php