|
The 4 rules for php to work on
phpsuexec enabled servers are: 1. htaccess should not contain any php
config values. Such php values should be specified in php.ini.
2. Permissions for all the php files must be 644
3. Permissions for all web directories must be 755
4. Ownership must be of the user and not nobody or any other user. |
1. PHP scripts executes under your user/group level.
2. Files or directories no longer need to have 777 permissions.
In fact, having 777 permissions on your scripts or the directories they reside in will not run and will
instead cause a 500 internal server error when attempting to execute them to protect you from someone
abusing your scripts.
3. Your scripts and directories can have a maximum of 755 permissions.
4. Files and directories also need to be owned by your user/group.
5. Using .htaccess with php_value entries within it will cause a 500 internal server error when attempting to access the scripts.
All php values should be removed from your .htaccess files to avoid the 500 internal server error.
Creating a php.ini file to manipulate the php settings will solve this issue.