I have a php script to
git pull from my github repository set up in my webservice hook urls like so:
<?php echo shell_exec('~/git/usr/bin/git pull 2>&1'); ?>
When I open this script on the browser, I get this error:
git-remote-https: error while loading shared libraries: libcurl.so.3: cannot open shared object file: No such file or directory
I am on a godaddy server running CentOS release 5.9 and
uname -mrs yields:
Linux 2.6.18-348.3.1.el5PAE i686
When I tried doing :
yum install curl
I get an error that the command
yum cannot be found.
I seriously have no idea what's going on here because when I ssh into my server and do
git pull from the terminal or run the script like
php myscript.php, it works fine and all the changes are fetched. How are the dependencies changed when I run it in the browser?
Any help is deeply appreciated.