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       [email protected]      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to