Reply to folder and file permissions to read and write images

Your name:

Reply:


Posted by eholz1 on 03/15/07 17:45

Hello PHP Group,

I am having trouble setting permissions correctly so that the
magickwand api (php 5.2) can read and
write images. I usually read a file from one directory, create a
magickwand resource from that file,
and transform the image, and save the new image with a new name to a
different directory.

I have seen that my file and folder permissions when set incorrectly,
will definitely cause problems!
Below is a copy of an error message I get when I try to read an image
and write, etc.

Fatal Error: magickreadimage(): C API cannot read the file
"/usr/local/apache2/htdocs/portfolios/25/coffeeandcars.JPG"
(reason: unable to open image `/usr/local/apache2/htdocs/portfolios/25/
coffeeandcars.JPG':
Permission denied) [on C source line 392] (# 256).

Error in line 58 of file '/usr/local/apache2/htdocs/portfolios/
thumbmaker.php'.

Script: '/portfolios/thumbmaker.php'.


I have tried setting the owner and group to apache.apache, and
apache.webdev (webdev is a group I created, where the apache user and
another user are a member). I am running the Apache web server as the
user "apache".

Any suggestions on the correct permissions to get the read and writes
to work??

thanks,
eholz1

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация