[Mediawiki-l] Giving MediaWiki permission to use ImageMagick on an OS X System
Brion Vibber
brion at wikimedia.org
Tue Aug 19 22:41:11 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Daniel Flaum wrote:
> MediaWiki and ImageMagick are both installed and usable, however,
> MediaWiki can't use ImageMagick to make thumbnails because it doesn't
> have permission to execute convert. This is on an OS X system, from
> inside an administrator account. Anybody got any ideas?
Unless you've done something really weird the most likely possibilities
here are:
1) convert is not in the PATH that the web server sees. For instance, if
you install ImageMagick in /sw/bin or /opt/local/bin (fink or MacPorts,
respectively), this is NOT in the default system PATH variable at
startup -- it'll probably have been added to your *user* shell, but
Apache won't see it when started on boot.
You can easily work around this by adding it to the path in your
LocalSettings.php, something like:
putenv("PATH=" . getenv("PATH") . ":/opt/local/bin");
2) General file permissions on the image directories causing a failure
to be able to create the thumbnail images. Double-check the file and
directory ownership and permissions in your 'images' dir here.
- -- brion
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkirTAcACgkQwRnhpk1wk47s4ACgx4x1Lyv44RQfnGtsy87t1JUH
DpsAnAwatjPYDO5uWroskuvr+ix2BKQd
=f+io
-----END PGP SIGNATURE-----
More information about the MediaWiki-l
mailing list