Forums / Install & configuration / Ez Publish says ImageMagick Missing but it is installed

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

eZ debug

Timing: Jan 18 2025 10:17:53
Script start
Timing: Jan 18 2025 10:17:53
Module start 'content'
Timing: Jan 18 2025 10:17:53
Module end 'content'
Timing: Jan 18 2025 10:17:53
Script end

Main resources:

Total runtime0.1451 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 589.0938180.8047
Module start 'content' 0.00650.0068 769.8984102.1953
Module end 'content' 0.01340.1316 872.0938530.2813
Script end 0.1450  1,402.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.3691200.0002
Check MTime0.00140.9600200.0001
Mysql Total
Database connection0.00080.516910.0008
Mysqli_queries0.100569.22501410.0007
Looping result0.00130.90241390.0000
Template Total0.131290.410.1312
Template load0.00090.596910.0009
Template processing0.130389.818710.1303
Override
Cache load0.00060.429310.0006
Sytem overhead
Fetch class attribute can translate value0.00100.690610.0010
XML
Image XML parsing0.00030.212310.0003
General
dbfile0.00604.1142200.0003
String conversion0.00000.005630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs