This is the change I made:
$process = proc_open('export HOME=/home/$user && ' . $command . ' 2>&1', $descriptors, $pipes);
Where "$user" is my web user name. Now, when I use git it can use my global settings.
If you used --global with "git config" you would get an error that $HOME was not...