apache cannot write to the data folder

Discussion in 'Installation/Configuration' started by Zander1983, Jul 18, 2012.

  1. Zander1983

    Zander1983 New Member

    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
     
  2. Zander1983

    Zander1983 New Member

    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...
     
  3. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    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.
     

Share This Page