CGI scripts need certain file permissions to be set if they are to work properly. In general CGI scripts need to have permissions on 755 (rwxr-xr-x), although PHP files only need 644 (rw-r--r--). The folders containing CGI scripts also need certain permissions. In particular, if a folder has very lax permissions, such as 777 (rwxrwxrwx), the web servers will not execute the scripts contained in it. Folders containing CGI scripts should ideally have permissions of 711 (rwx--x--x). This also applies to the folders that contain the first folder, if you have a multi-level folder structure, although 755 for folders is also fine.
- 59 Users Found This Useful
Related Articles
My CGI/ASP/PHP script is giving an error when trying to write to a file.
This applies to Linux hosting accounts only.This is almost certainly down to incorrect...
Why does my PHP script fail with 'Fatal error: Allowed memory size of 8388608 bytes exhausted'?
PHP has a built-in limit on the amount of memory it will allocate. If that limit is reached, the...
My PHP script gives the error 'Call to undefined function: mysql_connect()'
This error is usually caused by unecessary or incorrect directives in a custom php.ini file.We...
Accesses to all files result in '500 Internal Server Error' messages
500 Internal Server Error messages on every page are typically an indication of a misconfigured...
Possible issues with OSCommerce and MySQL5
We have been made aware that some customers may have issues with their OSCommerce installations...
Powered by WHMCompleteSolution