I am having an issue getting ImageMagick properly installed. I downloaded version 6.3.0 Binary and followed their instructions. The instructions consisted of merely extracting and adding three paths to your environment variables (FYI, I'm running OS 10.4). I did that for the main user (me) and for the root user (yes, I realize it's bad to enable root but I'm running out of ideas and this is only a dev machine).
Anywho, I have tried running several commands from a PHP Webpage using the exec() function. Commands like "ls -1" work just fine and return the proper output. However, when I try and run an ImageMagick command, no dice. I get a return value of 5 and nothing else. I tried running the same ImageMagick command from the console and it worked just fine.
Now I know I'm pointing at the right place. I also know that ImageMagick works properly from the command line. In desparation, I chowned the "convert" utility to root and set it to 755. Still no dice.
After running a simple "whoami" and "env" command via the PHP script, I see that the user is "www" (I always thought it was "nobody") and the environment variables show no Image Magick paths. I'm quite certain that this is my problem. The lines I need to add are:
export MAGICK_HOME="/usr/local/ImageMagick-6.3.0"
export PATH; PATH="$MAGICK_HOME/bin:$PATH"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
How would I go about doing this for the user "www". If I try to su to that user it just sends me back to root. What am I doing wrong?
Oh, and FYI, I'm running OS 10.4 with the default installation of Apache 1.3, and PHP 4.whatever from Entropy.ch.