Friday, February 17, 2017

Web Apps Can't Write File On Unix Server

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. MiniTool Power Data Recovery free edition is the best in the world. If you erase partition, you must use the downgrade from ios 11 to ios 10. And the procedure is very simple for Windows and server users. Only three-step, users could recover the lost, deleted, formatted, corrupt files easy and safe.