Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm migrating to a new server. It is the same setup as my last one: Ubuntu 11.4 with LAMP and ispconfig3.

Im using the php framework Elgg. All photos are stored in a data located at /var/www/clients/client0/web1/data

All permissions on the directories are set to 777. When i do ls -ld data/, the result is:

drwxrwxrwx 4 admin-wi www-data 4096 2012-07-13 12:53 data/

But I cant upload anything to the data directory, even with all the open permissions. Any help appreciated

share|improve this question
up vote 1 down vote accepted

You need to chown at least the directory to www-data:www-data and, for security reasons, really should only have it set to 775, or, preferably 755.

chown www-data:www-data data
chmod 775 data
share|improve this answer
thanks, chown did it – Mark Jul 13 '12 at 16:30

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.