The problem may be SELinux is enforcing.
If you're running on Linux execute as root:
# /usr/sbin/getenforce
and if the response is "Enforcing" it means SELinux is set up to prevent
executables like /usr/bin/convert from running via the web. Try setting
SELinux to permissive mode by executing:
# /usr/sbin/setenforce 0
When you run "getenforce" again it should respond "Permissive".
Now see if resizing works.
If it does work you now have to determine whether it is safe to keep
your system's SELinux in a Permissive mode. Start by looking at the man
pages for SELinux (man selinux). You can change the "policy" but I
haven't gotten that far myself in determining a safe way to configure
SELinux to allow image resizing via ImageMagick while remaining in
Enforcing mode.
Has anyone found a way around this SELinux issue with ImageMagick on
MediaWiki without having to place SELinux in permissive mode?
-Jim
-----Original Message-----
From: Andrea Forte [mailto:andrea.forte@gmail.com]
Sent: Wednesday, September 13, 2006 10:39 PM
To: mediawiki-l(a)wikimedia.org
Subject: [Mediawiki-l] image resize puzzle - imageMagick
Hi!
I'm running a 1.6.5 installation on linux and despite my best efforts,
just can't seem to get image resize to work...
I have imagemagick 6.2.8 installed and all my image directories
permissions are set to 777.
YET, when I try to resize an image I get the following:
Error creating thumbnail: convert: unable to open image
`/var/www/html/wiki/images/e/ee/Seahorse.jpg': Permission denied.
convert: missing an image filename
`/var/www/html/wiki/images/thumb/e/ee/Seahorse.jpg/130px-Seahorse.jpg'.
And convert works fine from the command line...
Am I missing something obvious? I'm not exactly a unix permissions
expert. :-)
Thanks,
Andrea
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l