On Oct 11, 2004, at 3:24 PM, tic@tictric.net wrote:
I believe /home/www/web17/html/wiki/images/ needs to be world writeable in your case. You can change that with your ftp client.
The trouble is that safe mode only lets you write new files to directories owned by the owner of the running script. This creates a fun no-win scenario where if your script creates a subdirectory, it's owned by the 'apache' or 'web' user and the script isn't allowed to put any files in it!
Uploaded files are divided up into subdirectories, and the subdirectories are created by the script on demand, so you get the problem. There are two workarounds: one is to hack up the code to not use the subdirectories; the other is to create all the subdirectories ahead of time as your main user.
It's sixteen subdirectories, each with sixteen subdirectories of its own. On a Unix bash shell you can create the directory layout like this: for x in 0 1 2 3 4 5 6 7 8 9 a b c d e f do for y in 0 1 2 3 4 5 6 7 8 9 a b c d e f do mkdir -p $x/$x$y; done; done
If you have shell access you can do that directly on the server, or run them on your computer and upload the set via ftp/sftp.
-- brion vibber (brion @ pobox.com)