Hi Petros!
the location of my web2py installation: "/project/test_site/"
# config snippet
ServerName test_site.com
### alias the location of applications (for static files)
#Alias / /projects/test_site/applications/
### setup WSGI
WSGIScriptAlias / /projects/test_site/wsgihandler.py
WSGIDaemonProcess web2py user=www-data group=www-data home=/projects/
test_site/ processes=10 maximum-requests=500
Apache version : 2.2.4
Error:
Wed Jan 21 11:56:16 2009] [error] [client 195.145.60.19] ImportError:
No module named gluon.main
[Wed Jan 21 11:56:16 2009] [info] [client 195.145.60.19] mod_wsgi
(pid=744, process='web2py', application='test_site.com|'): Loading
WSGI script '/projects/test_site/wsgihandler.py'.
[Wed Jan 21 11:56:16 2009] [error] [client 195.145.60.19] mod_wsgi
(pid=744): Target WSGI script '/projects/test_site/wsgihandler.py'
cannot be loaded as Python module.
[Wed Jan 21 11:56:16 2009] [error] [client 195.145.60.19] mod_wsgi
(pid=744): Exception occurred processing WSGI script '/projects/
test_site/wsgihandler.py'.
[Wed Jan 21 11:56:16 2009] [error] [client 195.145.60.19] Traceback
(most recent call last):
[Wed Jan 21 11:56:16 2009] [error] [client 195.145.60.19] File "/
projects/test_site/wsgihandler.py", line 22, in <module>
Thanks
On Jan 21, 2:24 pm, Petros Diveris <[email protected]> wrote:
> Hi,
>
> Can you paste in a message the relevant lines from your httpd.conf?
> Also, what is the location of your web2py installation?
> Finally, what version of Apache?
>
> Cheers
>
> On Jan 21, 10:35 am, voltron <[email protected]> wrote:
>
> > Hi Massimo!
>
> > thanks for your help. Sadly, that did not work either , another idea?
>
> > Thanks
>
> > On Jan 21, 11:31 am, mdipierro <[email protected]> wrote:
>
> > > try edit wsgihandler.py and replace this line
>
> > > path=os.path.dirname(os.path.abspath(__file__))
>
> > > with
>
> > > path='/bla/bla/bla'
>
> > > where
>
> > > '/bla/bla/bla' should be the absolute path to your web2py folder '/.../
> > > web2py/'
>
> > > and make sure you have the folder gluon in there.
>
> > > Massimo
>
> > > On Jan 21, 4:09 am, voltron <[email protected]> wrote:
>
> > > > I cannot get my site to work using WSGI, this is the error I see in
> > > > the Apache configs:
>
> > > > [Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] mod_wsgi
> > > > (pid=31101): Target WSGI script '/projects/test_site/wsgihandler.py'
> > > > cannot be loaded as Python module.
> > > > [Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] mod_wsgi
> > > > (pid=31101): Exception occurred processing WSGI script '/projects/
> > > > test_site/wsgihandler.py'.
> > > > [Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] Traceback
> > > > (most recent call last):
> > > > [Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] File "/
> > > > projects/test_site/wsgihandler.py", line 19, in <module>
> > > > [Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] import
> > > > gluon.main
> > > > [Wed Jan 21 10:57:11 2009] [error] [client 195.145.60.19] ImportError:
> > > > No module named gluon.main
>
> > > > I tried to easy_install web2py, that did not work(easy install fails),
> > > > I also tried placing the Web2py source in the "usr/lib/python2.5"
> > > > folder, that did not help either
>
> > > > Does anyone have any idea what I have missed?
>
> > > > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---