How to setup/debug github WebHook?
===

I have this local repo, I make changes and run:

    git add .
    git commit -m "message"
    git push -u origin master

My github has two WebHooks set-up, one going to a http://requestb.in URL and another one going to a PHP executable script (755), in the same folder (accessible from outside). 

The PHP script:

    <?php echo `git pull origin master`; 
    // echo "works"; 
    // echo `whoiam` ?>

The commented test lines are working so this is my proof that the script path is OK and also the syntax.

However, after I push changes from local to github repo, I check files on the server but nothing happens, is obvious echo `git pull origin master` from my PHP script does nothing. 

If I run this in a shell logged as a root (git pull origin master), the files are getting updated with the latest version from the repo.

Also, the second hook I have set-up, the one from requestb.in works as I can see the requests from github.

My folder on the server has the right permission, is accessible form the outside, I am desperate and I don't know how to get this working.

**What is wrong, how can I make this working? How do I set-up the WebHook in the admin panel in github**, or is it the PHP script, is there a permissions issue, what's wrong?! :O

Thank you.