[asterisk-users] Set PHP binary location for AGI
Myles Wakeham
myles at techsol.org
Thu Aug 6 09:21:53 CDT 2009
I am not finding anything relating to this on Google, so I thought I'd
pose the question here...
I am running Asterisk 1.4 on a CentOS 5 Linux box. I needed to use a
custom built PHP5.2.10 install to interconnect with our Firebird SQL
database, which I've done. But I noticed that the default install path
for PHP5 on this box appears to be /usr/local/bin/php rather than the
path that the default PHP5.16 path of /usr/bin/php.
To be certain that the correct PHP binaries are being called, is there a
conf setting somewhere that I can tell Asterisk AGI where the PHP binary
is that I want to use for this? I noticed that most AGI PHP scripts
begin with:
#!/usr/bin/php -q
which I would assume I simply need to change to:
#!/usr/local/bin/php -q
for my build, but is this enough? Is there somewhere else that needs to
be updated in order for AGI to correctly find the PHP build I've done?
Myles
P.S. I did try and change the PHP configure options to install in
/usr/bin but that didn't work because it won't install the man pages and
headers in there for some reason. But its installing fine in
/usr/local/bin which appears to be its default install location anyway,
so I'd prefer to go with that and keep this simple if I can.
--
=======================
Myles Wakeham
Director of Engineering
Tech Solutions USA, Inc.
Scottsdale, Arizona USA
http://www.techsolusa.com
Phone +1-480-451-7440
More information about the asterisk-users
mailing list