我正在尝试按照本教程创建新的redmine项目时设置自动git repo创建:http://www.dreu.info/blog/install-redmine-with-automated-git-on-centos-redhat/
但是当我将httpd.conf添加到空的httpd.conf中时,apache2将无法启动。有人可以帮我解决或验证配置是否正确吗?
PerlLoadModule Apache::Redmine
SetEnv GIT_PROJECT_ROOT /var/git/
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
<Location /git>
RedmineGitSmartHttp yes
DAV on
AuthType Basic
Require valid-user
AuthName "git"
PerlAccessHandler Apache::Authn::Redmine::access_handler
PerlAuthenHandler Apache::Authn::Redmine::authen_handler
RedmineDSN "DBI:mysql:database=redmine_databse;host=localhost"
RedmineDbUser "user"
RedmineDbPass "password"
</Location>
Alias /git-private /var/git
<Location /git-private>
Order deny,allow
Deny from all
<Limit GET PROPFIND OPTIONS REPORT>
Options Indexes FollowSymLinks MultiViews
Allow from 127.0.0.1
Allow from localhost
</Limit>
</Location>
由于
答案 0 :(得分:1)
我解决了。 git-http-backend的路径不正确。 找到我使用'find / -name git-http-backend'的正确路径并将路径更改为:/ usr / lib / git-core / git-http-backend /.
答案 1 :(得分:0)
感谢您的决定。
我自己也遇到过类似的问题。 将CentOS升级到5.10后,'git packages'成为了新的地方:
ls -1 /usr/bin/git-*|head -5 /usr/bin/git-add /usr/bin/git-add--interactive /usr/bin/git-am /usr/bin/git-annotate /usr/bin/git-apply