[TYPO3] ImageMagick and safe mode=on
Franz Holzinger
franz at fholzinger.com
Sun May 13 08:29:20 CEST 2007
Tania Morales a écrit :
> Still doesn't work :(
> Thanks Franz and Peter, for the suggestions
> Maybe i'm doing something wrong, this is what i have
> I installed imagemagick in my web site root directory, under psaserv group
> and 777 permissions and renamed the 3 files:
>
> mv convert convert.bin
> mv combine combine.bin
> mv identify identify.bin
>
> and i created the 3 executable files
>
> convert:
>
> #!/usr/local/bin/bash
> export PATH;
> PATH="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/bin:$PATH"
> export MAGICK_HOME="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5"
> export
> LD_LIBRARY_PATH="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/lib"
> /home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/bin/convert.bin $*
>
> composite:
> #!/usr/local/bin/bash
> export PATH;
> PATH="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/bin:$PATH"
> export MAGICK_HOME="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5"
> export
> LD_LIBRARY_PATH="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/lib"
> /home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/bin/composite.bin $*
> identify:
> #!/usr/local/bin/bash
> export PATH;
> PATH="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/bin:$PATH"
> export MAGICK_HOME="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5"
> export
> LD_LIBRARY_PATH="/home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/lib"
> /home/httpd/vhosts/user10/httpdocs/ImageMagick-6.2.5/bin/identify.bin $*
>
The image magick executables should be taken from the current folder. No
need to set the MAGIC_HOME and PATH
IMHO if you have safe_mode=on then the user of the Image Magick files
must be the apache user and the group the apache user's group.
- Franz
More information about the TYPO3-english
mailing list