Haben Sie skype installiert, können sie direkt mit uns skypen

09/11 2005

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