User:Flominator/Upload problems

1. Setting up MediaWiki 1.6.7

 * Copied files to directory
 * Extracted files
 * Installed MediaWiki sucessfully

2. Enabling uploads
$wgEnableUploads		= true; causes: Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpGle2sM) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 47

Warning: fopen(/tmp/phpGle2sM) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 47

Warning: fseek: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 102

Warning: fread: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 103

Warning: fclose: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 85

Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpGle2sM) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MimeMagic.php on line 343

Warning: fopen(/tmp/phpGle2sM) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MimeMagic.php on line 343
 * Result: The file is corrupt or has an incorrect extension. Please check the file and upload again.

3. Deactivating MimeTypeCheck
$wgVerifyMimeType = false; causes:

Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpS256mL) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 47

Warning: fopen(/tmp/phpS256mL) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 47

Warning: fseek: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 102

Warning: fread: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 103

Warning: fclose: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 85

Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpS256mL) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MimeMagic.php on line 343

Warning: fopen(/tmp/phpS256mL) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MimeMagic.php on line 343

Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpS256mL) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 844

Warning: fopen(/tmp/phpS256mL) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 844

Warning: fread: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 845

Warning: fclose: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 846

Warning: move_uploaded_file [function.move-uploaded-file]: open_basedir restriction in effect. File(/tmp/phpS256mL) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 417

Warning: move_uploaded_file(/tmp/phpS256mL) [function.move-uploaded-file]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 417

Warning: move_uploaded_file [function.move-uploaded-file]: Unable to move '/tmp/phpS256mL' to '/srv/www/vhosts/my.sub.domain/htdocs/utwiki/images/temp/20070306112520!Hunde_skal_foeres_i_snor_2.jpg' in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 417


 * Result: Internal Error' - Could not copy file "/tmp/php0EMcxx" to "/srv/www/vhosts/my.sub.domain/htdocs/utwiki/images/temp/20070306134301!Hunde_skal_foeres_i_snor_1.jpg".

4. Creating directories
md /images/temp md /images/archive md /images/thumb

causes

Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpwLRJkP) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 47

Warning: fopen(/tmp/phpwLRJkP) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 47

Warning: fseek: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 102

Warning: fread: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 103

Warning: fclose: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MacBinary.php on line 85

Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpwLRJkP) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MimeMagic.php on line 343

Warning: fopen(/tmp/phpwLRJkP) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/MimeMagic.php on line 343

Warning: fopen [function.fopen]: open_basedir restriction in effect. File(/tmp/phpwLRJkP) is not within the allowed path(s): (/srv/www/vhosts/my.sub.domain/htdocs) in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 844

Warning: fopen(/tmp/phpwLRJkP) [function.fopen]: failed to open stream: Operation not permitted in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 844

Warning: fread: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 845

Warning: fclose: supplied argument is not a valid stream resource in /srv/www/vhosts/my.sub.domain/htdocs/utwiki/includes/SpecialUpload.php on line 846


 * Result: Successful upload

Problem
I can upload files and create thumbnails, but how do I get rid of these warnings?


 * open_basedir restriction in effect. File(/tmp/phpwLRJkP) is not within the allowed path(s). Schau dir mal fogende einstellungen in deiner php.ini (bzw in phpinfo) an:
 * safe_mode (sollte "0" sein)
 * open_basedir (das muss evtl den upload_tmp_dir mit abdecken)
 * upload_tmp_dir (vermutlich /tmp - kannst versuchen, das zu ändern)
 * die Zugriffsrechte für das Verzeichnis, auf das upload_tmp_dir zeigt.
 * irgendwie damit wird's wohl zusammenhängen. -- Duesentrieb ⇌ 20:26, 6 March 2007 (UTC)
 * Thank you very much. It was the upload_tmp_dir which did not exist :) --Flominator 08:32, 7 March 2007 (UTC)

PNG Upload
If I want to upload a PNG file I always get the error: The file is damaged or has an invalid file extension. Please check the file and repeat the upload operation.