Hi,
after an OS upgrade on the side of my hoster thumbnailing of new images in MediaWiki seems to be broken.
I am getting the following error in my Apache error.log when viewing a page with a (broken) thumbnail (old images do work): //--------------------- [Wed Jun 18 22:56:18 2008] [crit] [client 23.23.23.23] (13)Permission denied: /var/www/wiki/images/thumb/Overdose.jpg/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://wiki.rockinchina.com/index.php?title=Overdose //---------------------
Also, new images seem to get other permissions: //--------------------- /var/www/wiki/images/thumb$ ls -lisa 205 4 drwx------ 1 993 993 4096 18. Jun 22:48 Overdose.jpg [new] 1735 4 drwxr-xr-x 1 993 993 4096 22. Mar 15:28 Overload_1.JPG [old] /var/www/wiki/images$ ls -lisa 1898 292 -rw-r--r-- 1 993 993 296817 18. Jun 00:06 Overdose.jpg [new] 2750 24 -rwxr-xr-x 1 993 993 23826 21. Mar 01:10 Overload_1.JPG [old] //---------------------
There is no .htaccess in any of those two directories.
Also I have this in my LocalSettings.php: //--------------------- $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert"; //---------------------
with: MediaWiki 1.12.0 PHP 5.2.0-8+etch10 (cgi-fcgi) MySQL 5.0.32-Debian_7etch4-log Apache 2.2.3 (Debian)
Anyone know what seems to be the problem?
Thanks a lot! Matthias Korn
Hi,
Am Wed, 18 Jun 2008 23:11:45 +0200 schrieb Matthias Korn matsch@rockinchina.com:
Also, new images seem to get other permissions: //--------------------- /var/www/wiki/images/thumb$ ls -lisa 205 4 drwx------ 1 993 993 4096 18. Jun 22:48 Overdose.jpg [new] 1735 4 drwxr-xr-x 1 993 993 4096 22. Mar 15:28 Overload_1.JPG [old] /var/www/wiki/images$ ls -lisa 1898 292 -rw-r--r-- 1 993 993 296817 18. Jun 00:06 Overdose.jpg [new] 2750 24 -rwxr-xr-x 1 993 993 23826 21. Mar 01:10 Overload_1.JPG [old] //---------------------
How is it, that MediaWiki specifies the wrong permissions? Where can I control it? What is the cause?
Changing the permissions for the individual files and directory helps. But MediaWiki creates every new thumb with insufficient permissions.
Any pointers? Matthias
This isn't so much a mediawiki question as a system admin question. But the first question is, why do you consider the permissions inadequate? The only difference is that some of the files are executable - which is unnecessary for image files.
It's possible to change the default permissions for a file any user creates with the umask command but, again, from the data given, there is no reason to believe there is actually a problem with the permissions.
--- On Thu, 6/19/08, Matthias Korn matsch@rockinchina.com wrote: From: Matthias Korn matsch@rockinchina.com Subject: Re: [Mediawiki-l] Problems with thumbnails To: mediawiki-l@lists.wikimedia.org Date: Thursday, June 19, 2008, 11:49 AM
Hi,
Am Wed, 18 Jun 2008 23:11:45 +0200 schrieb Matthias Korn matsch@rockinchina.com:
Also, new images seem to get other permissions: //--------------------- /var/www/wiki/images/thumb$ ls -lisa 205 4 drwx------ 1 993 993 4096 18. Jun 22:48 Overdose.jpg [new] 1735 4 drwxr-xr-x 1 993 993 4096 22. Mar 15:28 Overload_1.JPG [old] /var/www/wiki/images$ ls -lisa 1898 292 -rw-r--r-- 1 993 993 296817 18. Jun 00:06 Overdose.jpg [new] 2750 24 -rwxr-xr-x 1 993 993 23826 21. Mar 01:10 Overload_1.JPG [old] //---------------------
How is it, that MediaWiki specifies the wrong permissions? Where can I control it? What is the cause?
Changing the permissions for the individual files and directory helps. But MediaWiki creates every new thumb with insufficient permissions.
Any pointers? Matthias
mediawiki-l@lists.wikimedia.org