Linux PHP access to image magick permission
Posted: 2011-03-17T23:33:30-07:00
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
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