Current time: 09-24-2024, 06:20 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Gallery2 can't use Imagemagick ?
Author Message
psygarden Offline
Junior Member
*

Posts: 84
Joined: Jan 2008
Reputation: 0
Post: #6
RE: Gallery2 can't use Imagemagick ?
I got it working now, thanks a lot!

Here is a small roundup for other people that have the same issue:

1) Install imagemagick (compile from source or "apt-get install imagemagick" for debian users

2) You need to disable some security features in your php.ini so gallery can use the commands needed to resize images.

There are many php.ini files on your system, a global one for your apache2, one for cgi (both in /etc/php5/...) These are not the ones!

The one you should be looking for (example from my debian install):

/var/www/fcgi/YOURDOMAIN.COM/php5/php.ini

Here you look for this part of the file:

Quote:; This directive allows you to disable certain functions for security reasons.
; It receives a comma-delimited list of function names. This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, shell, symlink, popen, proc_open

This is a security mesure for certain actions, we need to disable a few... here is my current line that i'm using:

Quote:disable_functions = show_source, system, shell, popen, proc_open

3) restart apache2 using the "/etc/init.d/apache2 restart" command

4) go to your gallery admin panel and activate the imagemagick module, and configure it with the folder "/usr/bin/"

Tests should succeed now.

greetings,
Rik
(This post was last modified: 01-24-2008 07:30 PM by psygarden.)
01-24-2008 07:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Gallery2 can't use Imagemagick ? - psygarden - 01-24-2008 07:30 PM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)