Page 1 of 1

HELP please changing PATH Variable to imagemagick

Posted: 2011-03-18T23:47:59-07:00
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

Re: HELP please changing PATH Variable to imagemagick

Posted: 2011-03-19T00:00:32-07:00
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

Re: HELP please changing PATH Variable to imagemagick

Posted: 2011-03-19T01:10:32-07:00
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!