Thread: Apache2 write permissions
hey guys,
having issues apache2 server write permissions.
have script attempting make cache directory upon request atm apache2 not allowing written.
made root user part of www-data group , user code below assign www-data group access , write permissions folder "api" in script places , want create cache directory ".pheal-cache/public/public/map/jumps/" under that.
here current error message getting.
"generic error: 0 message: cache directory '/var/www/api/.pheal-cache/public/public/map/jumps/' isn't writeable"
root part of www-data , www-data group owns "api , files , directorys inside of it"
running ubuntu 11.04 apache "apache/2.2.17 (ubuntu)"
cheers help.code:cd /var/www chgrp -r www-data api cd api chmod -r g-w *
your web server should running user called www-data
files in web folder should owned www-data.
if web directory say... /var/www/
make files owned www-data,
sudo chown -r www-data:www-data /var/www/
dont want them owned root... if editing them , changing root owner, shouldnt doing php development root.
can make files have read/write/execute not production environment.
sudo chmod -r 777 /var/www/
use on 777 development.. when happy code.. highly reccomend recursively change ownership web user , set permissions 755. use same command above replace 777 755.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Apache2 write permissions
Ubuntu
Comments
Post a Comment