Friday, February 17, 2017

Web Apps Can't Write File On Unix Server

  1 comment
Sometime a web apps need to upload file, and sometime need to write file, or make a folder, and if your apps can't write file or create a folder on unix server maybe your apps folder still on root owner, change to www-data or add www-data to group.

Web Apps Can't Write File On Unix Server - izor Note's


You can do this for change folder owner to www-data.

sudo chown -R www-data:www-data /var/www/sites
sudo chmod u=rx,g=rx,o= /var/www/sites
sudo chmod u=rwx,g=rwx,o= /var/www/sites/files
sudo chmod u=r,g=r,o= /var/www/sites/default/*.php

1 comment :