[Mediawiki-l] Problem uploading files

Manuel Schmidt schmidtma at bsdhq.de
Tue Apr 27 16:12:03 UTC 2004


Hello list,
i have a problem with uploading files.
I have editet the LocalSettings.php and insertet $wgDisableUploads   = false;
Then i chmod my images dir to 777. Of Course meanwhile i uploaded the
new LocalSettings.php. But If i want to upload a *.jpg i get errores
like this:


Warning: is_dir() [function.is-dir]: SAFE MODE Restriction in effect.
         The script whose uid is 10731 is not allowed to access /home/www/htdocs/bsdhq.de/_wiki/images/6
         owned by uid 30 in /home/www/htdocs/bsdhq.de/_wiki/includes/GlobalFunctions.php on line 452

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect.
         The script whose uid is 10731 is not allowed to access /home/www/htdocs/bsdhq.de/_wiki/images/6
         owned by uid 30 in /home/www/htdocs/bsdhq.de/_wiki/includes/GlobalFunctions.php on line 452

Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect.
         The script whose uid is 10731 is not allowed to access /home/www/htdocs/bsdhq.de/_wiki/images/6
         owned by uid 30 in /home/www/htdocs/bsdhq.de/_wiki/includes/SpecialUpload.php on line 155

The is_dir() and mkdir() Warings com on the Lines: 472 and 274 as
well. Finally the wiki itself reports an error like :

Konnte Datei "/home/www/htdocs/bsdhq.de/tmp/phptqUinX"
nicht nach "/home/www/htdocs/bsdhq.de/_wiki/images/6/6e/Absolute_openbsd.jpg" kopieren

which is german and says couldnt copy. =)

... what am i doing wrong here ?
the wiki runs in subdir of the webroot. as u can see this is /_wiki/
could this be a problem ?

-- 
Best regards,
 Manuel     mailto:schmidtma at bsdhq.de




More information about the MediaWiki-l mailing list