ps aux | grep agc
Ensure your dbconnect.php has correct socket path, and that the asterisk user can read it.