Yes they are all executable…
i gave them ‘chmod a+x *.php’
As you can see, the * cli output said
– AGI Script test-agi.php completed, returning 0
so * can run the the script…but with no agi output, and with the bad execution of the script.
I also installed the php5-cli and php5-cgi packages, and it seems that with the cgi in the *cli i receive “510 Invalid Command” so i use php-cli-version…
I use php5 with agi and * without problems so this shouldn’t be the problem, I don’t know about ubuntu because I use opensuse but I don’t think it’s the cause of the problem; if you start the agi debug what you see in the * cli ?
I did a quick search, this problem is reported many times, there is an errror in the php script for sure, this happened to me too in the past; try comment out blocks of code one at a time and just print a debug statement to see where the error is.
I don’t think so…
If i play the php-script alone it works well without errors.
Plus i tried other scripts (eg. voip-info.org/wiki/view/Asterisk+AGI+php)… with all the same result in the cli …