If you set CHMOD 777 on the images directory, then it ought to be
writable, and you shouldn't have to test it; however, to do so, write
a small script and see. Something like the following would be
adequate:
<?php
$stuff = 'This is some text';
echo('Attempting to write...');
if(file_put_contents('file', $stuff) > 0) {
echo('done!<br />');
} else {
echo('failed!<br />');
}
?>
Pop this in a .php file, place it in the images dir. and call it. It
ought to return a success message and produce a file containing some
dummy text.
To the original problem; find out if safe mode is on, etc. and whether
or not file uploading itself is permitted within the PHP
configuration.
Rob Church
On 01/12/05, Martin Baumann <mailsgetlost(a)web.de> wrote:
I think so. I changed mod to 777.
But how can I test if web server user actually can write files to it?
Martin
Rob Church schrieb:
Is the uploads (/wiki/images) directory writable
by the web server user?
Rob Church
On 30/11/05, Martin Baumann <mailsgetlost(a)web.de> wrote:
I just found out that the error message is called
in
includes/SpecialUpload.php
$success = move_uploaded_file( $tempName, $this->mSavedFile );
if( ! $success ) {
$wgOut->fileCopyError( $tempName, $this->mSavedFile );
return false;
}
the string in $tempName changes at each upload.
What can I do?
Any idea?
Can it have something to do with save mode?
Martin
Martin Baumann schrieb:
Hi,
I am logged on as sysop of my wiki.
The directories images and subdirectories archive, temp and thumb
exist and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to
"/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this
problem. The site is hosted by
a computing center of a university. Probably they made some options on
their servers that lead to this
error?
Anyone any idea to find out what goes wrong?
Thanks, Martin
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l