When I try to access gitweb.cgi from a web browser I get the following error on page:
Software error: Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at gitweb.cgi line 1193.
My Apache2 error log shows:
[Thu Dec 08 09:58:46.557787 2016] [cgi:error] [pid 3872] [client 18.104.22.168:3533] AH01215: [Thu Dec 8 09:58:46 2016] gitweb.cgi: Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at gitweb.cgi line 1193.: /home/vcadmin/domains/pjc.domain.net/public_html/git/gitweb.cgi
I have included my gitweb.cgi (with domain renamed for security). It appears that all the paths are pointing to the correct locations. I have tried removing /usr/share/gitweb/gitweb.cgi (from a forum reply) but it did not have any effect. I have Git working with HTTPS and Smart HTTP, I have not been able to get gitweb.cgi to work since first installing Git on Virtualmin.