[asterisk-users] PHP AGI Not Working and Odd Behavior

Philipp Kempgen philipp.kempgen at amooma.de
Fri Jun 26 17:55:27 CDT 2009


Leah Newmark schrieb:
> I'm running asterisk 1.4.22 on a debian server.
> I have php5 installed and it works correctly command line.
> When trying to run a php script via AGI, I get messages such as:
> GI Tx >> I>
> AGI Rx << #!/usr/bin/php5 -q
> AGI Tx >> 510 Invalid or unknown command
> 
> The scripts are completely executable and owned by asterisk
> -rwxr-xr-x 1 asterisk asterisk
> 
> Googling is not helping much, and php seems installed perfectly. Other 
> servers running the same AGIs have no such problem.
> 
> I also have noticed odd behavior. When I edit an AGI, the changes aren't 
> always showing up in the running of the script via asterisk.
> For example, I tried editing the bash command to read #!/usr/bin/php -q, 
> and got the same response on my agi debug.
> I know for a fact it's running the script I've edited:
>  Launched AGI Script /var/lib/asterisk/agi-bin/myscript.php
> and it's not in some other directory.
> 
> Any input: obvious or not is requested...a few people here are stumped!

Are you by any chance mounting two volumes to the same path?
Do you use a PHP opcode cache?
Did you try to reboot the system?
Strange filesystem?


    Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
-- 



More information about the asterisk-users mailing list