I am running Ubuntu 8.04 LTS, its my webserver (LAMP).
My web root is:
/var/www/website/trunk/html/
I created a directory for user uploads behind that, at:
/var/www/vault/
I did:
chown -R www-data /var/www/vault/
and even, bravely: (was a desperate moment)
chmod 777 -R /var/www/vault
My php script is unable to create subdirectories under:
/var/www/vault
and I need it to, I have had luck uploading a file to the directory however, I get errors like this when it tries to make directories...
Warning: mkdir() [function.mkdir]: Permission denied in /var/www/website/trunk/html/jquery.uploadify/uploadretro.php on line 149
File /var/www/website/trunk/html../../../../vault/4d4d3092c24be8a8dac2ec269e969446.jpg does not exist.
Could anyone help me out, or suggest something?
My php INI file is setup correctly allowing uploads, with a 5m size.
Any ideas?
More Info The command at line 149 from the error above is:
mkdir(str_replace('//','/',$targetPath), 777, true);
Permissions:
drwxrwxrwx 2 www-data root 4.0K Jun 3 06:04 vault