Git : Install Gitweb2024/09/13 |
Install Gitweb to refer to repositories on Web Browser. |
|
[1] | |
[2] | Configure Gitweb. |
root@dlp:~ #
vi /etc/gitweb.conf # create new file # root directory of Git repositories our $projectroot="/usr/local/git";
root@dlp:~ #
vi /usr/local/etc/apache24/httpd.conf <IfModule !mpm_prefork_module> # line 166 : uncomment below if httpd is running in except [prefork] mode LoadModule cgid_module libexec/apache24/mod_cgid.so </IfModule> <IfModule mpm_prefork_module> # line 169 : uncomment below if httpd is running in [prefork] mode #LoadModule cgi_module libexec/apache24/mod_cgi.so </IfModule> # line 181 : uncomment LoadModule rewrite_module libexec/apache24/mod_rewrite.so
root@dlp:~ #
vi /usr/local/etc/apache24/Includes/gitweb.conf
Alias /gitweb /usr/local/share/gitweb
<Directory /usr/local/share/gitweb>
DirectoryIndex gitweb.cgi
Options +FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
# add access permission if you need
Require ip 127.0.0.1 10.0.0.0/24
</Directory>
cp -pR /usr/local/share/examples/git/gitweb /usr/local/share/gitweb root@dlp:~ # service apache24 restart |
[3] | Access to [(Server's Hostname or IP address/gitweb/)] on Web browser, then you can see repositories. |
Sponsored Link |