ImageMagick problem

Author Message

Udo Baumgart

Saturday 22 October 2005 10:59:27 am

Hi,

i have limited access to my webserver. No shell access at all :-(
So i tried to install the convert program from ImageMagick into cgi-bin - where it runs without problems.
I then tried to configure ezPublish to use the convert. ezPublish lies in an ezpublish-subdir on the same directory-level as cgi-bin.

website
..cgi-bin
....convert (ImageMagick)
..ezpublish
....settings
......override
........image.ini.append.php

In image.ini.append.php i wrote:

[ConverterSettings]
UseConvert=true

[ShellSettings]
ConvertPath=/website/cgi-bin/
ConvertExecutable=convert

[Rules]
DefaultRule=image/jpeg;convert
Rules[]=image/jpeg;image/jpeg;convert
Rules[]=image/png;image/png;convert
Rules[]=image/gif;image/png;convert
Rules[]=image/xpm;image/png;convert

With debug on i get the following error message:

Failed executing: convert '-quality' '75' '-geometry' '100x160>' {...} Error: , Return: 127

I tried the following as ConvertPath:

/website/cgi-bin
../cgi-bin
../cgi-bin/
/cgi-bin

I tried to preface the absolute pathnames with the absolute path of "my" dirs on the server:

/is/htdocs/16712/website/cgi-bin

Nothing works. The error message is always the same.

If i call convert directly via http://.../cgi-bin/convert it works an produces the usual usage text.

HELP PLEASE!

Ciao, Udo

Marko Žmak

Saturday 22 October 2005 4:22:25 pm

Try to execute the convert program from PHP manually and see what error do you get. Also try to check out the PHP error log.

And try to see if you can run from PHP any other program that is located in the cgi-bin dir.
Maybe you don't have the permissions to run programs in cgi-bin from PHP.

P.S. Also try:

ConvertPath=website/cgi-bin/

instead of:

ConvertPath=/website/cgi-bin/

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Udo Baumgart

Sunday 23 October 2005 1:28:02 pm

After analysing ezimageshellhandler.php i saw that the error message should output the complete PATH that it uses. That means: The ConvertPath is ignored!
I tried to hardcode the path to convert and it works without problems.
That could not be the solution...
Why is my entry in settings/override/image.ini.append.php (CHMOD is -rw-rw-rw) ignored???
Any ideas?

Ciao, Udo

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.