[Mediawiki-l] Upload error - non-existent directory?

Brion Vibber brion at wikimedia.org
Mon Apr 21 18:06:46 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

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)

- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgM17YACgkQwRnhpk1wk47BAACfa1uLPsP/1ZvXF/gCG4L46haC
qf4Anj4zSVC6wOseRbuHhNJD8fOplEWF
=xFtC
-----END PGP SIGNATURE-----



More information about the MediaWiki-l mailing list