[Typo3] Solved: ImageMagick on virtual host, TYPO3 couldn't find
Peter Russ
peter.russ at 4many.net
Wed Nov 9 14:39:12 CET 2005
A more readable version can be found here:
http://www.4many.net/imagemagick_setup.html
and printout at
http://www.4many.net/index.php?id=imagemagick_setup&type=98&L=0
----------------------------------------------------------------
ImageMagick Installation on Virtual Host Account with SSH Access
Situation: Customer got virtual host with ssh access
TYPO3 was installed
no ImageMagick
after installing static linked package
imagemagick-4.2.9_i386-static-1.tar.gz
TYPO3 complained that no valid version could be found
Problem: It turned out that due to the virtual setup and the setup of
the Apache the environment got lost and the ImageMagick.so.9 couldn't be
found during the exec()
Challenge:
1. convince the provider to change the setup
Nice try!
2. convince the provider to install ImageMagick globally
No support for third party products
3. fix it in TYPO3 to pass environment
possible solution, just no time to do so
Solution: Fixed it on script level
1. move required executable to *.bin, i.e.
mv convert convert.bin
mv combine combine.bin
mv identify identify.bin
2. create script
pico convert
3. content of the script file
#!/usr/local/bin/bash
export PATH; PATH="/home/usr203227042/ImageMagick-4.2.9/bin:$PATH"
export MAGICK_HOME="/home/usr203227042/ImageMagick-4.2.9"
export LD_LIBRARY_PATH="/home/usr203227042/ImageMagick-4.2.9/lib"
/home/usr203227042/ImageMagick-4.2.9/bin/convert.bin $*
4. make script executable
chmod 755 convert
5. repeat steps 2.-4. for combine and identify and don't forget to
change convert.bin to the appropriate value
Solved: Now TYPO3 can find ImageMagick and IT ROCKS
Regs. Peter.
--
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ
More information about the TYPO3-english
mailing list