I am running Ubuntu 8.04 LTS, its my webserver (LAMP).
My web root is:
I created a directory for user uploads behind that, at:
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:
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.
More Info The command at line 149 from the error above is:
mkdir(str_replace('//','/',$targetPath), 777, true);
drwxrwxrwx 2 www-data root 4.0K Jun 3 06:04 vault