Reply to System() and ImageMagick

Your name:

Reply:


Posted by ph1975 on 09/07/06 21:29

Hi Folks,

the following problem occured:

i use imagemagick (Version: ImageMagick 6.2.2 05/26/05 Q16 on Fedora
Core 3 Server)
When i manually (on bash) execute:

/usr/bin/convert -size 300x267
/var/www/html/web4/html/_img/_2/b28a3240dffa1cad3dab0e877a3d7c5e.jpg
-resize 126x100+0+-6 +profile "*"
/var/www/html/web4/html/_img/_2/_tn/t_b28a3240dffa1cad3dab0e877a3d7c5e.jpg

it works. (i am root)

executing the same within a PHP Script with system(... command as shown
above ...);

i get the following output:
convert: unable to open image
`/var/www/html/web4/html/_img/_2/fa1d0a1d407f077aa98c8498b3e8be7d.jpg':
Permission denied.


The /var/ folder belongs to root and has chmod 755
/var/www/ has 777 (root),
/var/www/web4/ has 777 (apache --> the httpd runs on user
apache:apache),
/var/www/web4/html/ ... till _img/_2/.... has 777 and is
apache:apache.

I really don't get this.... can anyone give me a hint? Even googling
didn't resolve this issue.

THanks a lot,
cheers.
-phil

[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

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