Leo Burd
2005-Aug-08 02:58 UTC
[Asterisk-Users] Found solution to my PHP AGI Script problem...
Dear Moises Silva, Chris Thompson and others, I've finally managed to find the problem with my PHP AGI script! Apparently, my machine has 2 versions of PHP installed. One for CGI and the other for CLI. Without knowing, to hand test my script I was calling the CLI version (/usr/local/bin/php), whereas Asterisk was calling the CGI version (/usr/bin/php). It turns out that my script wouldn't run on the CGI version of PHP... Interesting, isn't it? Thanks so much for your help, Leo
Moises Silva
2005-Aug-08 07:16 UTC
[Asterisk-Users] Found solution to my PHP AGI Script problem...
yeah, i guess that is kind of tricky sometimes, now in the future check that you are editing the correct php.ini for the version of php you are using. You can do that with this bash command: /usr/bin/php -i | grep 'Configuration File' /usr/local/bin/php -i | grep 'Configuration File' best regards On 8/8/05, Leo Burd <leob@media.mit.edu> wrote:> Dear Moises Silva, Chris Thompson and others, > > I've finally managed to find the problem with my PHP AGI script! > Apparently, my machine has 2 versions of PHP installed. One for CGI and > the other for CLI. Without knowing, to hand test my script I was > calling the CLI version (/usr/local/bin/php), whereas Asterisk was > calling the CGI version (/usr/bin/php). It turns out that my script > wouldn't run on the CGI version of PHP... Interesting, isn't it? > > Thanks so much for your help, > > Leo > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"