HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   apache cannot write to the data folder (http://www.howtoforge.com/forums/showthread.php?t=57974)

Zander1983 18th July 2012 02:12

apache cannot write to the data folder
 
Hi
Im migrating my site over to a new server. My new setup is identical to old - ubuntu 11.4 with LAMP and ispconfig3.

Im using a php framework called elgg. I've created a data folder in /var/www/clients/client0/web4/ and copied in all my images from old server. Apache can view these images but I cannot upload to the new data folder.

I have given the data folder permission of 777. I have also made apache the owner by running chown www-data data/

But still, I cannot write to the folder. Any ideas?
Thanks
Mark

Zander1983 18th July 2012 02:41

i have finally solved this by making web4 the owner of data folder and client0 the group owner of data folder. dont know why it didnt work by making www-data the owner...

till 18th July 2012 11:32

Each website has its own user and group to protect websites against each other, so every folder that shall be writable by a website has to be owned by the user and group of the website and not www-data.


All times are GMT +2. The time now is 22:18.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.