I installed Imagemagick
convet works fine from command line at /usr/local/bin/convert

in admin> ImageAPI > ImageMagick

i get
# warning: is_file() [function.is-file]: open_basedir restriction in effect. File(/usr/local/bin/convert) is not within the allowed path(s): ) in /httpdocs/sites/all/modules/imageapi/imageapi_imagemagick.module on line 155.
# The specified ImageMagick path /usr/local/bin/convert does not exist.
PHP's open_basedir security restriction is set to /httpdocs:/tmp, which may be interfering with attempts to locate ImageMagick.

my open_basedir in php.ini is defined as open_basedir = /httpdocs:/tmp:/usr/local/bin

but the error message leaves out the /usr/local/bin part.

Any suggestions?

thanks,
Chris

Comments

dopry’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Active » Closed (won't fix)

Have you verified you've modified the proper php.ini? Have you restarted your webserver? This is a php/server config issue not an imageapi issue.

longpt’s picture

I have same problem;

here is the right php.ini

include_path .:/usr/lib/php:/usr/local/lib/php:/usr/local/bin/
open_basedir .:/usr/local/bin/

mikeyparker’s picture

Just a quick addition to this. In you case I'd just copy convert to /httpdocs/convert rather than granting access to /usr/local/bin. I tried creating a symbolic link to /usr/bin/convert in /httpdocs but this just didn't work. It required the file to be copied.