Hello,
i have install mediawiki-1.3.5 on my webspace. PHP is sadly in Safe Mode = on.
During upload of a picture ( Source: /home/stephan/Desktop/images.jpeg) cames
Warning: SAFE MODE Restriction in effect. The script whose uid is 653 is not allowed to access /home/www/web17/html/wiki/images/f owned by uid 30 in /home/www/web17/html/wiki/includes/GlobalFunctions.php on line 489
Warning: Unable to create '/home/www/web17/html/wiki/images/f': Is a directory in /home/www/web17/html/wiki/includes/SpecialUpload.php on line 198
Warning: Unable to move '/home/www/web17/phptmp/phpaT7j3V' to '/home/www/web17/html/wiki/images/f' in /home/www/web17/html/wiki/includes/SpecialUpload.php on line
In the middle of the pages
Interner Fehler aus THWiki, der freien Wissensdatenbank Konnte Datei "/home/www/web17/phptmp/php9Hvmkd" nicht nach "/home/www/web17/html/wiki/images/fInterner Fehler aus THWiki, der freien Wissensdatenbank Konnte Datei "/home/www/web17/phptmp/php9Hvmkd" nicht nach "/home/www/web17/html/wiki/images/f[unknow symbol]fe/Images.jpeg" kopieren.
Hier you can see an Screenshot http://141.30.213.177/public_html/pics/screen-2004-10-11_22:31:45.jpg
Why mediawiki will convert images.jpeg to Images.jpeg ? Why create mediawiki a unknow symbol (see screenshot)
What can i do to solve this error ?
INFO:PHP Version 4.2.2
I believe /home/www/web17/html/wiki/images/ needs to be world writeable in your case. You can change that with your ftp client.
Then it will probably work.
--tic
Hello,
i have install mediawiki-1.3.5 on my webspace. PHP is sadly in Safe Mode = on.
During upload of a picture ( Source: /home/stephan/Desktop/images.jpeg) cames
Warning: SAFE MODE Restriction in effect. The script whose uid is 653 is not allowed to access /home/www/web17/html/wiki/images/f owned by uid 30 in /home/www/web17/html/wiki/includes/GlobalFunctions.php on line 489
Warning: Unable to create '/home/www/web17/html/wiki/images/f': Is a directory in /home/www/web17/html/wiki/includes/SpecialUpload.php on line 198
Warning: Unable to move '/home/www/web17/phptmp/phpaT7j3V' to '/home/www/web17/html/wiki/images/f' in /home/www/web17/html/wiki/includes/SpecialUpload.php on line
In the middle of the pages
Interner Fehler aus THWiki, der freien Wissensdatenbank Konnte Datei "/home/www/web17/phptmp/php9Hvmkd" nicht nach "/home/www/web17/html/wiki/images/fInterner Fehler aus THWiki, der freien Wissensdatenbank Konnte Datei "/home/www/web17/phptmp/php9Hvmkd" nicht nach "/home/www/web17/html/wiki/images/f[unknow symbol]fe/Images.jpeg" kopieren.
Hier you can see an Screenshot http://141.30.213.177/public_html/pics/screen-2004-10-11_22:31:45.jpg
Why mediawiki will convert images.jpeg to Images.jpeg ? Why create mediawiki a unknow symbol (see screenshot)
What can i do to solve this error ?
INFO:PHP Version 4.2.2
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
On Oct 11, 2004, at 3:24 PM, tic@tictric.net wrote:
I believe /home/www/web17/html/wiki/images/ needs to be world writeable in your case. You can change that with your ftp client.
The trouble is that safe mode only lets you write new files to directories owned by the owner of the running script. This creates a fun no-win scenario where if your script creates a subdirectory, it's owned by the 'apache' or 'web' user and the script isn't allowed to put any files in it!
Uploaded files are divided up into subdirectories, and the subdirectories are created by the script on demand, so you get the problem. There are two workarounds: one is to hack up the code to not use the subdirectories; the other is to create all the subdirectories ahead of time as your main user.
It's sixteen subdirectories, each with sixteen subdirectories of its own. On a Unix bash shell you can create the directory layout like this: for x in 0 1 2 3 4 5 6 7 8 9 a b c d e f do for y in 0 1 2 3 4 5 6 7 8 9 a b c d e f do mkdir -p $x/$x$y; done; done
If you have shell access you can do that directly on the server, or run them on your computer and upload the set via ftp/sftp.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org