| When I try to run PHP software I receive a 500 internal server error. Why? |
| User Opinions |
100%
0%
(2 votes)
|
|
Thank you for rating this answer.
|
This is because cPanel runs PHP through phpsuexec, not as a module.
When this is the case, if your . PHP file or the directory it is in, has permissions greater than 755
then the webserver will simply refuse to execute the PHP file and give
you an "Internal server error".
In the documentation of some of the scripts provided with cPanel, it
will tell you to set your script to have permissions 666 or 777. They
do this with the intention of giving the file world writable
permissions. We don't think this is a good idea.
In fact, because it won't work at all, your only option is to reduce
the permissions on the file. We suggest 755. This may break the
software you are trying to use, but in most cases you can find
documentation on their website to run the software in an alternative
fashion.
Considering our shared hosting environment, we will not be changing our policy on PHP.
|
| Visitor Comments |
|
No visitor comments posted. Post a comment
|
| Attachments |
|
No attachments were found.
|