I am using centOS to set my own Git Server by gitolite,I want to use both ssh and http mode.
After followed the 'smart-http.root-setup
'.
I come across a problem when I execute the git command "git clone http://admin:[email protected]/git/testing
".
You need to double-check your httpd.conf
defined by smart-http.root-setup#L81-L92
:
export GITOLITE_HTTP_HOME=$PWD/gitolite-home
...
SetEnv GIT_PROJECT_ROOT $GITOLITE_HTTP_HOME/repositories
ScriptAlias /git/ $GITOLITE_HTTP_HOME/gitolite-source/src/gitolite-shell/
Make sure $GITOLITE_HTTP_HOME/repositories/testing.git
does exists on your server.
The OP S.Yuan reports in the comments:
I check the
suexec.log
in/etc/httpd/logs
and the main issue is the file exec auth error.
So I delete thegitolite-suexec-wrapper.sh
file. And create it again, then change the file auth.