Linux PHP access to image magick permission

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Linux PHP access to image magick permission

Post by javismiles »

hi, i have managed to install imagemagick on CentOS 64 finally, and i want to post the commands i used to help other people because i know many have problems with this,
but i have a problem now, commands work from the command line in linux, but not from PHP,
imagemagick seems to be in the path because i can execute it from any directory in the command line, so is it then a permissions problem?
anybody can help me, do i have to give special permissions to the php internet user and if so how do i do that? how do i let the php scripts execute imagemagick in linux?

as i say, from command line it all works well now, its just php scripts that cannot make it, thank you for any help and i post here below the commands i use to build image magick on centOS successfully

yum install tcl-devel libpng-devel libjpeg-devel ghostscript-devel bzip2-devel freetype-devel libtiff-devel wget url to ImageMagick download

wget ftp://ftp.imagemagick.org/pub/ImageMagi ... yourversion.tar.gz
tar xvfz /ImageMagick-yourversion.tar.gz
cd (the folder)

./configure --prefix=/usr/local --with-bzlib=yes --with-fontconfig=yes --with-freetype=yes --with-gslib=yes --with-gvc=yes --with-jpeg=yes --with-jp2=yes --with-png=yes --with-tiff=yes

make clean
make
make install
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Linux PHP access to image magick permission

Post by javismiles »

for those with same problem
it was the writing permissions for user apache
Post Reply