Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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

 
discard

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.