Directory needs to be writable

2.1k Views Asked by At

am installing PHPFOX on Centos 7 with Apache2 and getting Directory needs to be writable for PF.Base and PF.Site and i did chmod 777 for both and tried for main folder and same issue ,

below snapshots

Any recommendations ?

2

There are 2 best solutions below

7
On

For some webservers, even if they have full permissions (777), they will refuse to work with the directory because other users/groups have full permissions to the directory.

The better approach:

  • change ownership of the directory to whatever user the webserver operates as. For PHP, this can be determined by serving a file with contents <?php echo exec('whoami'); ?>
  • run a chmod 755 command to make the directory writable only by the owner. Note that for files, the permission should be 644.
  • run a chown to transfer ownership to the webserver

For more information, you can see this canonical answer on serverfault.com

2
On

CD to root path of phpFox site. Then try this command line:

chmod 777 PF.Base PF.Site

Refresh your installation page. If it still doesn't work, please attach a screenshot here, so I can check more detail.