On Mon, 21 Apr 2008, Brion Vibber wrote:
Adam Huffman wrote:
On Fri, 18 Apr 2008, Brion Vibber wrote:
Adam Huffman wrote:
Hello
A user of one of the wikis I administer has reported the following error
when trying to upload a PDF file:
Internal Error: Could not rename file "/tmp/phpO39LcP" to
"public/f/fb/AmitmcfserumQC.pdf
The odd thing is that the 'public' directory doesn't exist.
That would
be a reference to your 'images' directory.
I should have been clearer. I know it's a reference to the 'images'
directory. What I meant was that there's no 'public' subdirectory of
'images'. I can't see any such subdirectory on the other wikis here,
either.
'public' in this message is an internal system path referring to
$wgUploadDirectory, which *is* the 'images' directory in your wiki
folder unless you have changed it from the defaults in LocalSettings.php.
Okay.
Please put 'public' away from your mind and
examine the ownership and
permissions on:
* $IP/images
* $IP/images/f
* $IP/images/f/fb
* /tmp'
as well as the security settings on PHP (safe_mode? open_basedir? etc)
I think what happened is that I ran a large bulk image upload with the
imageUpload script and that altered the permissions. Having restored
them, normal uploads are working again.
Thanks for your help.
Adam