[asterisk-users] Set PHP binary location for AGI
Steve Edwards
asterisk.org at sedwards.com
Thu Aug 6 09:36:25 CDT 2009
On Thu, 6 Aug 2009, Myles Wakeham wrote:
> 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:
There is no conf setting. Asterisk does not know nor care what language
you write your AGI in, as long as you follow the AGI protocol.
> #!/usr/bin/php -q
>
> which I would assume I simply need to change to:
>
> #!/usr/local/bin/php -q
This should work. Did you try it?
--
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list