What are the file permission requirements when FastCGI PHP handler is used


In SuPHP both the files and directories are owned by the user account and belongs to the user account’s group.

Therefore for Apache to read a file it is necessary to make the file readable by the anonymous nobody account. The same goes for directories (which also need to be executable). Therefore under SuPHP, normal files should be chmod 644 and directories should be chmod 755.

However, we don’t want the nobody user to be able to see our PHP files. This is because under SuPHP, PHP files are accessed using the user account’s privileges. Therefore PHP files can and should be chmod 600 (but 640 or 660 is acceptable, although not quite as secure).

Last update:
2014-09-21 11:37
Sherin George
Average rating:0 (0 Votes)

You cannot comment on this entry

Chuck Norris has counted to infinity. Twice.

Most popular FAQs RSS

  1. I require an additional IPv4 address. What is Bytehouse's ... (88131 views)
  2. The Most Common Problems When Migrating Websites (66817 views)
  3. How do I create a 301 redirect? (55215 views)
  4. Can I Backup Exchange 2010 with My Online Backup ... (53354 views)
  5. Steps to Add Administrator User for Windows Server (48890 views)

Latest FAQs RSS

  1. Steps to set/customize log rotation from plesk (2016-07-25 07:15)
  2. Generate a self-signed SSL certificate - Nginx,CentOS (2016-07-07 02:31)
  3. Procedure re-register Volume Shadow Copy Service(VSS) in a Windows ... (2016-07-05 04:18)
  4. Steps to Install Mcrypt in Plesk (2016-07-01 17:11)
  5. How to Retrieve a Plesk Password in Linux and ... (2016-07-01 17:09)

Regular new KB articles

Check back from time to time for new articles, or if you have any suggestions please feel free to recommend