I have a script running the following shell_exec cmd in PHP.
echo shell_exec('cd /var/www/Library/Laravel/ ; git pull bitbucket master ; 2>&1');
This is being called by a webhook service and all I wanted to do is just cut out having to pull in this dev environment everytime we push.
However, I do not get any output errors or anything when this route is called. Can anyone suggest why this might be?
I get this echoing from the error_log ->
error: cannot open .git/FETCH_HEAD: Permission denied
I added the apache user to git and now I get the following error
Could not create directory '/var/www/.ssh'.
Host key verification failed.
fatal: The remote end hung up unexpectedly