imho, there’re three posibilities:
- asterisk user doesnt have permission to execute the file
- php is not installed (or the path is incorrect)
- the path to phpagi.php is incorrect
for example, execute chmod 777 /path/to/your/phpagi.php and check again
if it helps, you’ll be able to
‘chown asterisk:asterisk /path/to/your/phpagi.php; chmod 744 /path/to/your/phpagi.php’
(i’m not sure about the user and group names)
cheers