赞
踩
参考文献:
http://blog.163.com/zheng_he_xiang/blog/static/18650532620154493528569/
https://ubuntuforums.org/showthread.php?t=2244960
II. A few things to tweak
1. gitweb
As mentionned in https://bugs.launchpad.net/ubuntu/+s...b/+bug/1329542 gitweb install a config file in the deprecated /etc/apache2/conf.d/ location.
To fix this:
sudo cp /etc/apache2/conf.d/gitweb /etc/apache2/conf-available/gitweb.conf cd /etc/apache2/conf-enabled sudo ln -s ../conf-available/gitweb.conf
Alias /gitweb /usr/share/gitweb <Directory /usr/share/gitweb> Options +FollowSymLinks +ExecCGI AddHandler cgi-script .cgi </Directory>
sudo a2enmod cgi sudo service apache2 restart
$projectroot = "/home/git/repositories/"; $projects_list = "/home/git/projects.list";
$REPO_UMASK = 0027;
sudo usermod -a -G git www-data
sudo chmod 640 /home/git/projects.list
sudo service apache2 restart
的错误,原因是/home/git/repositories/目录及其上级目录的权限问题。执行如下命令即可解决问题:
sudo chmod 777 -R /home/git/repositories
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。