Page 1 of 1

How do you give permission to magickwand to write images?

Posted: 2009-07-10T14:39:23-07:00
by boon4376
I am getting this error when I try to write an image that I have rotated with my testing code:
Fatal error: magickwriteimage(): C API cannot write the image at MagickWand index 0 to filename "logo.jpg" (reason: unable to open image `/var/www/logo.jpg': Permission denied @ blob.c/OpenBlob/2480) [on C source line 374] in /var/www/testrotate.php on line 11
However if I set permissions on the "www" folder so that "Others" can create & delete I can successfully write an image.

So Im assuming there must be some user or group I need to give permissions to so that magickwand can write? I tried with the apache user "www-data" but that didnt work.... Which one do I use? Do I need to create one for magickwand?

Using Ubuntu 9.04 btw.

Re: How do you give permission to magickwand to write images?

Posted: 2009-07-12T13:54:56-07:00
by boon4376
If you follow through this entire thread I started in a different forum, the problem gets solved

http://ubuntuforums.org/showthread.php?t=1210285