HELP please changing PATH Variable to imagemagick

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

HELP please changing PATH Variable to imagemagick

Post by javismiles »

we are running PHP as Apache module, so apache user runs the scripts,
i have two imagemagicks installed and PHP is going to the old one because of the path,
i need to locate and change the path that PHP accesses so that it points to the newest installed version
how can i do that?

linux Centos
PHP 5.1.6
running php as apache user, apache module
two versions of imagemagick installed, one too old, the other perfect,
bash points to newest version, php is pointing to old version
i need to point php to the new version

thank u so very much
jav
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: HELP please changing PATH Variable to imagemagick

Post by javismiles »

well
as an alternative i am specifying the exact path in the php call and now everything works
i guess there is no performance change between having the PATH variable pointing to convert, or specifying
the entire path in the php call, is that right? if the performance is the same, then, well, i prefer actually to specify the entire path i guess
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: HELP please changing PATH Variable to imagemagick

Post by anthony »

You need to set both PATH and LD_LIBRARY_PATH appropriately.
Perhaps you also need to set some other environment variables as well.

Make sure you do not mix libraries - you are just asking for trouble!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply