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. Here's what images/ looks like currently:
0 1 2 3 4 5 6 7 8 9 a archive b c d deleted e f README temp thumb tmp
Oughtn't this directory to be created automatically, on demand? The version is 1.11.1.
Adam
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
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.
- -- brion vibber (brion @ wikimedia.org)
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.
Adam Huffman wrote:
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.
Have you explicitly specified an upload directory in php.ini (variable upload_tmp_dir)? If not, do so. That seems to prevent this problem for some installations.
Mike
-----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)
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
mediawiki-l@lists.wikimedia.org