imagick liefert Uncaught exception

Apache, Lighttpd, nginx, Cherokee
hoshix
Posts: 10
Joined: 2003-02-27 16:52
 

imagick liefert Uncaught exception

Post by hoshix »

Hi,

um Imagemagick mit PHP nutzen zu können habe ich auf PHP 5.2.5 aktualisiert. Danach imagick installiert, die Lib ins /usr/lib64/php5/extensions kopiert und in php.ini eingetragen. Apache startet ohne Fehler, allerdings sobald ich ein ein Bild mittels eines Imagick-Objektes öffnen möchte erhalte ich folgende Fehlermeldung:

Code: Select all

PHP Fatal error:  Uncaught exception 'ImagickException' with message 'Safe mode restricts user to read image: /srv/www/vhosts/blubber/httpdocs/images/9_5.jpg' in /srv/www/vhosts/blubber/httpdocs/admin/index.php
Daraufhin habe ich den Safemode abgestellt, allerdings mit dem gleichen Ergebnis. Gibts da ne Lösung für?

hoshix
floogy
Posts: 150
Joined: 2007-10-23 22:00
 

Re: imagick liefert Uncaught exception

Post by floogy »

Code: Select all

apachectl graceful
Oder memory_limit = reicht nicht?
hoshix
Posts: 10
Joined: 2003-02-27 16:52
 

Re: imagick liefert Uncaught exception

Post by hoshix »

memory_limit = 32M

find: apachectl: No such file or directory 8O

cu
hoshix
floogy
Posts: 150
Joined: 2007-10-23 22:00
 

Re: imagick liefert Uncaught exception

Post by floogy »

Ich weiß nicht, wie Du Deinen apache neu startest, bzw. die Konfiguration neu einlesen lässt (graceful|reload|force-reload|restart)

apache2ctl ?

/etc/init.d/apache2 ?
/etc/init.d/httpd-2 ?

service apache2 restart ?
hoshix
Posts: 10
Joined: 2003-02-27 16:52
 

Re: imagick liefert Uncaught exception

Post by hoshix »

na den apache hab ich schon neu gestartet :wink:
brachte aber auch gleiches Ergebnis, in den apache-logs findet sich auch nichts verdächtiges, nur beim Kunden steht eben obige Fehlermeldung
am memory limit dürfte das nicht liegen, das Bild ist nur 500k groß

cu
hoshix
floogy
Posts: 150
Joined: 2007-10-23 22:00
 

Re: imagick liefert Uncaught exception

Post by floogy »

Code: Select all

das Bild ist nur 500k groß
Na, das sagt gar nichts aus. Was sind denn das für Bilddaten? Welche Abmessungen hat es, und wie ist es komprimiert? Was sagt identify dazu?
hoshix
Posts: 10
Joined: 2003-02-27 16:52
 

Re: imagick liefert Uncaught exception

Post by hoshix »

hab den Fehler gefunden, hatte nur safe_mode als Master Value auf off gesetzt, allerdings wurde in der vhost.conf vom Kunden der safe_mode wieder on gesetzt, es funzt jetzt also 8)