PHP File Permissions
GCom Internet provides PHP processing over all hosting servers in a secure environment appropriate for shared, public hosting. Accordingly, it is imperative that the file permissions set on your PHP files and containing folders are within reasonable and safe limits. Exceeding those limits will result in our servers refusing to process your PHP files.
If you find your PHP files are not being processed, and you are confident that the files themselves were uploaded correctly in ASCII text file format, then the first thing to check is the permissions you have assigned to your files and containing folder.
The correct permission for folders containing PHP files is 755. This provides full read, write and execute access to the owner, with only read and execute access for all other users. This is often expressed as rwxr-xr-x
Maximum File Permissions
The correct maximum permission for PHP files is 644. This provides read and write access to the owner, with only read access for all other users. This is often expressed as rw-r--r--
Although the correct maximum permission for PHP files is 644, our servers currently also allow a permission as high as 755 to be set on PHP files under specific conditions before processing is refused. However, 755 permissions are allowed primarily for reasons of backward compatibility only. The correct and recommended maximum permission for PHP files is 644.
Minimum File Permissions
The minimum functional permission for PHP files is 400. This provides read access to the owner, with no access for all other users. This is often expressed as rw-------