Find the answer to your Linux question:
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 ...
  1. #1
    Just 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


    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"
    when I try to open viewvc I get http 404 not found error , please advice me how to trouble shoot this ?

  2. #2
    Linux 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/cgi
    instead 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:
    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>
    After modifying "httpd.conf", did you reset your appache server?
    Code:
    apache2ctl restart
    When you test it, make sure you have the right URL. Start by using the local loopback IP address:
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...