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 ,
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
Trung Ngon
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.
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:
<?php echo exec('whoami'); ?>
chmod 755
command to make the directory writable only by the owner. Note that for files, the permission should be 644.chown
to transfer ownership to the webserverFor more information, you can see this canonical answer on serverfault.com