Can not execute php file in my asterisk system


#1

I have setup a IVR system and use php script to connect my DB. But when I begin to use it prompt me
"Failed to execute ‘/var/lib/asterisk/agi-bin/ccs_connect.php’: No such file or directory "
But the file is really exist. How can I resolve the problem?


#2

Change the file permissions to 755 and make sure you have “#!/usr/bin/php -q” on your first line, or whatever is your path to php binary.


#3

Were you able to execute your php scripts ?
I’m in a similar situation, so I’m interested to know the answer.


#4

check your php path…

/usr/bin or /usr/local