Results 1 to 2 of 2
I am trying to install viewvc in my linux box, I followed the instructions was able to install ,then I configured apache httpd.conf file to include cgi scripts from viewvc
...
- 03-25-2011 #1Just Joined!
- Join Date
- Mar 2011
- Posts
- 1
new bee trying to install viewvc
I am trying to install viewvc in my linux box, I followed the instructions was able to install ,then I configured apache httpd.conf file to include cgi scripts from viewvc
I added the following lines to httpd.conf
when I try to open viewvc I get http 404 not found error , please advice me how to trouble shoot this ?Code:ScriptAlias /viewvc/ "/usr/local/viewvc-1.2-dev/bin/cgi/viewvc.cgi" ScriptAlias /queryvc/ "/usr/local/viewvc-1.2-dev/bin/cgi/query.cgi"
- 03-29-2011 #2Linux Newbie
- Join Date
- Nov 2008
- Location
- Tokyo, Japan
- Posts
- 243
This really isn't enough information for us to diagnose your problem. But here are a few things you can try (I assume you are using Apache 2.2 httpd):
First, try pointing the "ScriptAlias" directive to a directory containing scripts, not to the script itself, so do:
/usr/local/viewvc-1.2-dev/bin/cgiinstead of
/usr/local/viewvc-1.2-dev/bin/cgi/viewvc.cgi
Check to make sure you have the "LoadModule cgi_module" directive in your "httpd.conf" file:After modifying "httpd.conf", did you reset your appache server?Code:# Make sure you the path to the module is correct: LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so <IfModule cgi_module>
ScriptAlias /viewvc/ "/usr/local/viewvc-1.2-dev/bin/cgi"</IfModule>When you test it, make sure you have the right URL. Start by using the local loopback IP address:Code:apache2ctl restart
http://127.0.0.1/viewvc/viewvc.cgi
http://127.0.0.1/viewvc/queryvc.cgi
If that doesn't work, you have a configuration problem. If it does work, but you get a 404 not found when using a different URL to the same script, then you have a problem with your network, DNS or HTTP proxy, or something.
For more information, check the apache documentation, and this tutorial.


Reply With Quote