[web-doc] master: Gitweb is no longer needed.

From: Date: Fri, 21 May 2021 04:45:59 +0000
Subject: [web-doc] master: Gitweb is no longer needed.
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2480@lists.php.net to get a copy of this message
Author: Nilgün Belma Bugüner (nilgun) Date: 2021-05-21T07:45:58+03:00 Commit: https://github.com/php/web-doc/commit/5ee14fcf610f89d6e822103d61ffa38e927dcf4f Raw diff: https://github.com/php/web-doc/commit/5ee14fcf610f89d6e822103d61ffa38e927dcf4f.diff Gitweb is no longer needed. Changed paths: M README.md Diff: diff --git a/README.md b/README.md index 2de9e44..4bee20a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Requirements: - GD extension (for generating charts) - SQLite3 -1. Unpack a copy of JpGraph 3.0.7 into /include/jpgraph/ ([here](http://jpgraph.net/download/download.php?p=1)) +1. Unpack a copy of JpGraph 4.3.4 into /include/jpgraph/ ([here](http://jpgraph.net/download/download.php?p=1)) 2. Increase memory limit for PHP scripts to at least 32MB 3. Fill in two configuration files - build-ops.php.sample (rename it to build-ops.php) @@ -17,7 +17,7 @@ Requirements: - @SQLITEDIR@ - absolute path to /sqlite/ directory - build-ops.sample (rename it to build-ops [no ext]) - @PHP@ - path to the PHP executable file -- @GITDIR@ - absolute path to dir where scripts will clone SVN repos to and then use them and then use it for generating data +- @GITDIR@ - absolute path to dir where scripts will clone GIT repos to and then use them and then use it for generating data - @DOCWEB@ - absolute path to /www/ directory - @PHDDIR@ - absolute path to directory with PhD installed from Git master - @SCRIPTSDIR@- absolute path to /scripts/ directory @@ -40,77 +40,10 @@ Requirements: <Directory /path/to/docweb/www> Allowoverride FileInfo Options Limit - Options -Indexes +ExecCGI - <Files gitweb.cgi> - SetHandler cgi-script - </Files> + Options -Indexes </Directory> </VirtualHost> ``` -8. Create /etc/httpd/conf/extra/gitweb.conf -``` -<IfModule mod_alias.c> - <IfModule mod_mime.c> - <IfModule mod_cgi.c> - Define ENABLE_GITWEB - </IfModule> - <IfModule mod_cgid.c> - Define ENABLE_GITWEB - </IfModule> - </IfModule> -</IfModule> - -<IfDefine ENABLE_GITWEB> - Alias /gitweb /usr/share/gitweb - - <Directory /usr/share/gitweb> - DirectoryIndex gitweb.cgi - Options +FollowSymLinks +ExecCGI - <Files gitweb.cgi> - SetHandler cgi-script - </Files> - AddHandler cgi-script .cgi - AllowOverride None - SetEnv GITWEB_CONFIG /etc/gitweb.conf - </Directory> -</IfDefine> -``` -9. Add the following line to /etc/httpd/conf/httpd.conf (cgi.load) -``` -LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so -``` -10. Next we need to make a gitweb config file. Open (or create if it does not exist) the file /etc/gitweb.conf and place this in it: -``` -# path to git projects (<project>.git) -$projectroot = "/path/to/docweb/www"; - -# directory to use for temp files -$git_temp = "/tmp"; - -# Base URLs for links displayed in the web interface. -our @git_base_url_list = qw(git://git.php.net:); - -$feature{'highlight'}{'default'} = [1]; -$omit_owner = "true"; -$projects_list_description_width = "36"; -``` -11. Restart apache -``` -# systemctl restart apache2 -``` -12. Create symbolic links for gitweb -``` -$ cd /path/to/docweb/www -$ mkdir doc -$ cd doc -``` -repeat lines like these for other languages -``` -$ ln -s ../../git/de/.git de.git -$ echo "German PHP documentation" > de.git/description -``` -11. If there is no problem, open browser and go: http://doc.php.net/docweb/ -12. Or: http://doc.php.net/revcheck.php ## TODO - add more cowbell

« previous php.doc.web (#2480) next »