Share » Forums » Install & configuration » Ez Publish says ImageMagick Missing...

Ez Publish says ImageMagick Missing but it is installed

Ez Publish says ImageMagick Missing but it is installed

Wednesday 07 February 2007 3:41:51 pm - 8 replies

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu