I'm running in trouble with my new VPS. I created a file pull.php
with this code in my GIT folder:
<?php
$output = shell_exec('git pull');
echo "<pre>$output</pre>";
?>
It was working fine on my shared hosting but on my VPS it's return null and no 'pull' command executed. When I change the command 'git pull' to 'git status' it's show result :
On branch master Your branch is up-to-date with 'origin/master'.
Untracked files: (use "git add ..." to include in what will be committed)
info.php pull.php test.txt
nothing added to commit but untracked files present (use "git add" to track)
My folder chmod to 777 and php seems can write on it properly. 'git pull' on SSH's fine. My server : Ubuntu 14.x, Apache2, php5
I would very much appreciate any help!