On Tue, 28 Apr 2009 14:22:39 +0200 (CEST) jan.sjastad@q-free.com wrote:
Hi, I have recently tried to install NAV on a computer running Ubuntu Linux. Seems like I hav an issue with the Apache/Python configuration, if I try to enter the NAV web interfac (click on index.py) I get this responce:
[snip]
DocumentRoot: '/var/www/'
URI: '/nav' Location: None Directory: '/var/www/nav/' Filename: '/var/www/nav' PathInfo: ''
Phase: 'PythonHeaderParserHandler' Handler: 'nav.web'
[snip]
ImportError: No module named nav.web
Have you seen this before/any idea where the problem might be?
Hi Jan,
Which version of NAV is this, and did you install from a package or from source?
It looks like something is wrong with your Apache setup. NAV (unfortunately) requires being accessible directly from the DocumentRoot, often meaning it needs its own virtualhost. Your NAV web interface seems to be installed in /var/www/nav/, while your Apache DocumentRoot is set to /var/www/. You need to set the DocumentRoot to /var/www/nav, or create a virtualhost with this DocumentRoot.
If you were using Morten Werner Forsbring's Debian package, it installs a virtualhost example config file (somewhere in /usr/share/doc/nav, I believe). There's also a wiki page on installing NAV from source on Debian, which might be useful if you're stuck (though most of this is taken care of if you are using the deb package): http://metanav.uninett.no/installing_from_source_on_debian#configuring_apach...