Ez Publish says ImageMagick Missing but it is installed

Author Message

Matt Campbell

Wednesday 07 February 2007 3:41:51 pm

Hi,

I'm having a problem during setup.

Ez Publish is telling me that ImageMagick is missing but is is installed on the server.

It is in /usr/bin/convert - i have run it by command line.

I have entered this path (/usr/bin) and other combinations but can't get Ez to detect ImageMagick.

What could be causing this problem?

Thanks,

Matt

Linh Vu

Wednesday 07 February 2007 5:20:10 pm

Hi Matt, that might be a result of open_basedir restricting PHP to certain folders, and /usr/bin isn't in the white list.

If I had more time, I would write less code.

Matt Campbell

Wednesday 07 February 2007 10:48:25 pm

I run a VPS for a bunch of clients. Would disabling this likely to cause errors with other PHP apps or is it purely a security feature.

Also is there a way to add directories to this white list?

Ɓukasz Serwatka

Thursday 08 February 2007 12:28:07 am

It is security realted. http://en.php.net/manual/en/features.safe-mode.php
We recommend to keep open_basedir and safe_mode disabled since this may effects some eZ Publish functionality (e.g caching).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Matt Campbell

Thursday 08 February 2007 5:30:07 pm

Thanks - I'll disable open_basedir and let you know if it resolves the problem.

Is there no way to edit this White List?

Linh Vu

Thursday 08 February 2007 10:50:58 pm

In Apache config, you can try (inside the Directory tag of the ezpublish folder) setting:

php_admin_value open_basedir "/path/to/ezpublish:/usr/share/php:/tmp:/usr/local/ezpublish/bin"

i.e a colon-separated list of allowed paths, and symlink the binaries you want to allow ezpublish to access in /usr/local/ezpublish/bin (or whichever path you want).

If I had more time, I would write less code.

Matt Campbell

Friday 09 February 2007 5:42:15 pm

I disabled open_basedir and the problem magically disappeared!!

Couln't be bothered trying the other white list configuration - it seemed like a lot of fiddling when flicking the switch on open_basedir did the job.

I control the VPS so there is no major security issue.

Thanks to all contributors!!

Lo' F.

Friday 18 June 2010 6:46:28 pm

It's an old post but I really need to know how did you disable open_basedir?

I did everything I know but the local value is still pointing to the root folder of my site.

If I add php_admin_value open_basedir none to the .htaccess I get server errors in return..

Please help!!

loredanaebook.it

Lo' F.

Saturday 19 June 2010 5:59:53 am

Got it!

Sometimes the solution is right there! You only know when you have found it out, though!

From the shell prompt:

# touch /var/www/vhosts/yourdomain.com/conf/vhost.conf

# vi /var/www/vhosts/yourdomain.com/conf/vhost.conf

(esc+i to edit)

<Directory /var/www/vhosts/yourdomain.com/httpdocs>
php_admin_value open_basedir none
</Directory>

(esc and then :wq to save and close)

# /usr/local/psa/admin/sbin/websrvmng -v -a

# service httpd restart

..and there it is, basedir restrictions are turned off!

loredanaebook.it

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

eZ debug

Timing: Jan 18 2025 15:12:18
Script start
Timing: Jan 18 2025 15:12:18
Module start 'layout'
Timing: Jan 18 2025 15:12:18
Module start 'content'
Timing: Jan 18 2025 15:12:18
Module end 'content'
Timing: Jan 18 2025 15:12:18
Script end

Main resources:

Total runtime0.8468 sec
Peak memory usage4,096.0000 KB
Database Queries79

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.1953152.6563
Module start 'layout' 0.00560.0022 740.851639.4922
Module start 'content' 0.00780.8373 780.3438691.3906
Module end 'content' 0.84510.0016 1,471.734420.1094
Script end 0.8467  1,491.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3828160.0002
Check MTime0.00140.1647160.0001
Mysql Total
Database connection0.00100.123410.0010
Mysqli_queries0.775991.6266790.0098
Looping result0.00070.0840770.0000
Template Total0.819996.820.4099
Template load0.00190.228720.0010
Template processing0.817996.595120.4090
Template load and register function0.00010.014410.0001
states
state_id_array0.00070.082210.0007
state_identifier_array0.00200.231620.0010
Override
Cache load0.00170.2002590.0000
Sytem overhead
Fetch class attribute can translate value0.00050.064440.0001
Fetch class attribute name0.00100.1210120.0001
XML
Image XML parsing0.00180.206740.0004
class_abstraction
Instantiating content class attribute0.00000.0027140.0000
General
dbfile0.00110.1253300.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs