On Sep 9, 9:05 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 9, 2008 at 10:53 AM, AZMel <[EMAIL PROTECTED]> wrote:
>
> > On Sep 9, 8:15 am, "Lukasz Szybalski" <[EMAIL PROTECTED]> wrote:
> >> > I followed the directions for the 1.0 deployment but get a 404 error.
> >> > The path '/' was not found.
>
> >> > [Tue Sep 09 07:14:42 2008] [notice] Apache/2.2.4 (Ubuntu) PHP/
> >> > 5.2.3-1ubuntu6.4 proxy_html/2.5 mod_ssl/2.2.4 OpenSSL/0.9.8e mod_wsgi/
> >> > 2.0 mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal
> >> > operations
> >> > [Tue Sep 09 07:15:04 2008] [warn] mod_wsgi (pid=31143): Callback
> >> > registration for signal 15 ignored.
> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/local/turbogears/myapp/
> >> > apache/myapp.wsgi", line 9, in <module>
> >> > [Tue Sep 09 07:15:04 2008] [warn]     import cherrypy
> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/lib/python2.5/site-
> >> > packages/CherryPy-2.3.0-py2.5.egg/cherrypy/__init__.py", line 20, in
> >> > <module>
> >> > [Tue Sep 09 07:15:04 2008] [warn]     import _cpserver
> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/lib/python2.5/site-
> >> > packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cpserver.py", line 10, in
> >> > <module>
> >> > [Tue Sep 09 07:15:04 2008] [warn]     from cherrypy._cpengine import
> >> > Engine, STOPPED, STARTING, STARTED
> >> > [Tue Sep 09 07:15:04 2008] [warn]   File "/usr/lib/python2.5/site-
> >> > packages/CherryPy-2.3.0-py2.5.egg/cherrypy/_cpengine.py", line 25, in
> >> > <module>
> >> > [Tue Sep 09 07:15:04 2008] [warn]     signal.signal(signal.SIGTERM,
> >> > SIGTERM)
> >> > [Tue Sep 09 07:15:06 2008] [error] Identity starting
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.User"
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.Group"
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.Permission"
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.VisitIdentity"
> >> > [Tue Sep 09 07:15:06 2008] [error] Identity visit plugin initialised
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.User"
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.Group"
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.Permission"
> >> > [Tue Sep 09 07:15:06 2008] [error] Succesfully loaded
> >> > "stumbaugh.model.VisitIdentity"
> >> > [Tue Sep 09 07:15:06 2008] [error]  - - "GET / HTTP/1.1" 404 714 ""
> >> > "Links (1.00pre12; Linux 2.6.22-14-server i686; 207x56) (Debian pkg
> >> > 0.99+1.00pre12-1.2)"
>
> >> > my wsgi file is the same as the one in the 1.0 deployment doc with the
> >> > exception of myapp being used where needed.
>
> >> > I will say the guide was extremely easy to follow.  Nice work.  Now if
> >> > I can get the page to serve.....
>
> >> is you application called myapp? You have to change that to what ever
> >> you app name is.
> >> Did you put it in right folders?
> >> Is the permission set properly?
>
> >> Lucas
>
> > Everything seems correct in regards to permissions and folders.  What
> > I did figure out is that I can get pages served when I goto
> >http://192.168.1.9/myapp/myapprather thanhttp://192.168.1.9/myapp.
> > However I cannot follow links because that all refer to /myapp.  I
> > know its a configuration issue, just not sure where to look.
>
> Do you want to serve you app in / or /myapp/
>
> Read the myapp.wsgi configuration file which tells you what to comment
> and uncomment to get / or /myapp/ as base.
> Play around with it and it should work.
> Lucas

Well I have tested both dev and prod extensively and they both work
fine if server.webpath is not set.  When I run the app through wsgi
and leave the webpath things go awry where I force the front page to
display but any links (login, subcontrollers,etc) all resolve to
http://192.168.1.9/ and not http://192.168.1.9/myapp/.  Also If I
reconfigure to run root mounted I get this error:
[Tue Sep 09 13:01:50 2008] [error] [client 192.168.1.5] mod_wsgi
(pid=5299): Target WSGI script '/usr/local/turbogears/myapp/apache/
myapp.wsgi' cannot be loaded as Python module.
[Tue Sep 09 13:01:50 2008] [error] [client 192.168.1.5] mod_wsgi
(pid=5299): Exception occurred processing WSGI script '/usr/local/
turbogears/myapp/apache/myapp.wsgi'.
[Tue Sep 09 13:01:50 2008] [error] [client 192.168.1.5] Traceback
(most recent call last):
[Tue Sep 09 13:01:50 2008] [error] [client 192.168.1.5]   File "/usr/
local/turbogears/myapp/apache/myapp.wsgi", line 30, in <module>
[Tue Sep 09 13:01:50 2008] [error] [client 192.168.1.5]
application = cherrypy._cpwsgi.wsgiAppi
[Tue Sep 09 13:01:50 2008] [error] [client 192.168.1.5]
AttributeError: 'module' object has no attribute 'wsgiAppi'

If I point my browser to 192.168.1.9 I get a directory listing of /var/
www

Are there other server variables that I need to set?

Not sure how to proceed.

Mel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to