FAQ Categories

Ask A Question

Question to be answered.
Longer question text.

WWW Resources

Hosted by WestHost

Why can't Gallery 3 find ImageMagick?

In a cPanel account we do have access to ImageMagick but many PHP programs like Gallery 3 is unable to detect it. The reason for this is that Gallery 3 has it's own php.ini file that overrides the default file that WestHost uses. It is possible that other PHP programs might do this. So the answer is to add the following to php.ini file that Gallery 3 places in it's directory.

safe_mode = Off

The above can go anywhere in the file really but I'll give you an example of the file after I edited it.

; Set some reasonable defaults for PHP.  Most of these cannot be set
; inside the script itself.  These settings are mirrored in the
; .htaccess file for hosts that support .htaccess but not per-dir
; php.ini files.
;
[PHP]
short_open_tag = On
magic_quotes_gpc = Off
magic_quotes_sybase = Off
magic_quotes_runtime = Off
register_globals = Off
upload_max_filesize = 20M
post_max_size = 100M
safe_mode = Off

[Session]
session.auto_start = Off

[suhosin]
suhosin.session.encrypt = Off

Note: Something you might want to be aware of, is that this partial php.ini file that Gallery 3 uses may affect some other things. It might actually be better to use the method described here: http://wildjokerdesign.net/faq/where-my-phpini-file-wh-40 to pull the full php.ini file and then make the above changes to it instead. You can refrence that link but really all you need to do is run the below via command line in SSH:

cp -i /usr/local/lib/php.ini $HOME/public_html/[gallery]/

Remember in the code above you would replace [gallery] with the directory you installed Gallery 3 into or if you installed it deeper then that you need to modify the last bit with the path.

Powered by Drupal, an open source content management system