logo       


integration viewvc/apache: msg#00011

Subject: integration viewvc/apache
hello;
i've installed viewvc 1.0.4 on windows and it works fine with cvsnt and the standalone built-in http-server. when trying to integrate
viewvc into apache i have a problem:
using
- apache_2.2.4-win32-x86-no_ssl.msi
- mod_python-3.3.1.win32-py2.5-Apache2.2.exe

when adding section

<Location /mpinfo>
  SetHandler mod_python
  PythonHandler mod_python.testhandler
</Location>

to the httpd.conf file everything works fine, request /mpinfo prints out

----------------------------------------------------------------------------------------------------------------------------------------------------------
Python sys.version2.5a2 (r25a2:45740, Apr 27 2006, 06:31:19) [MSC v.1310 32 bit (Intel)]
Python sys.path
C:\WINDOWS\system32\python25.zip
D:\apps\Python25\Lib
D:\apps\Python25\DLLs
D:\apps\Python25\Lib\lib-tk
C:\Program Files\Apache Software Foundation\Apache2.2
C:\Program Files\Apache Software Foundation\Apache2.2\bin
D:\apps\Python25
D:\apps\Python25\lib\site-packages
D:\apps\Python25\lib\site-packages\win32
D:\apps\Python25\lib\site-packages\win32\lib
D:\apps\Python25\lib\site-packages\Pythonwin
----------------------------------------------------------------------------------------------------------------------------------------------------------

But when i add this section to httpd.conf :

<location "/viewcvs">
   SetHandler mod_python
   AllowOverride All
   AddHandler python-program .py
   PythonPath "[r'd:\\apps\\viewcvs\\lib']+sys.path"
   PythonHandler apache
   PythonDebug On
   AddDefaultCharset UTF-8
</location>

the output of the request to '/viewcvs' is

----------------------------------------------------------------------------------------------------------------------------------------------------------
MOD_PYTHON ERROR

ProcessId: 4924
Interpreter: 'I63557.sbb.ch'

ServerName: 'I63557.sbb.ch'
DocumentRoot: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'

URI: '/viewcvs'
Location: '/viewcvs'
Directory: None
Filename: 'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/viewcvs'
PathInfo: ''

Phase: 'PythonHandler'
Handler: 'apache'

Traceback (most recent call last):

File "D:\apps\Python25\lib\site-packages\mod_python\importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)

File "D:\apps\Python25\lib\site-packages\mod_python\importer.py", line 1202, in _process_target
module = import_module(module_name, path=path)

File "D:\apps\Python25\lib\site-packages\mod_python\importer.py", line 304, in import_module
return __import__(module_name, {}, {}, ['*'])

ImportError: No module named apache
----------------------------------------------------------------------------------------------------------------------------------------------------------

Can you please help me?

Thanx for any ideas...

Ivo



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
Search:
Java, servers, webhosting, windows, cisco ...
more...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
encryption.gpg....    ietf.rfc822/199...    freebsd.devel.i...    lang.haskell.li...    mail.squirrelma...    web.zope.plone....    yellowdog.gener...    text.xml.xalan....    recreation.phot...    kde.devel.educa...    hardware.bus.ca...    printing.ghosts...    voip.peering/20...    assembly/2006-0...    org.user-groups...    culture.interne...    network.i2p/200...    boot-loaders.ya...    xfree86.render/...    qnx.openqnx.dev...    jakarta.velocit...    user-groups.pal...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe