Progress report:

Sean of Webfaction support pointed out 2 things:

[1]  I cannot change the assigned port for my app (restored to what
they assigned);
[2]  wsgihandler.py needs to change:

---------------------------------------------------------------------------
*** wsgihandler.py.new  Sat Feb 14 14:53:14 2009
--- wsgihandler.py      Sat Feb 14 14:55:24 2009
***************
*** 13,31 ****
  """

  import sys
  import os
- import gluon.main
-
- from gluon.contrib.wsgihooks import ExecuteOnCompletion2, callback

  sys.path.insert(0, '')
  path = os.path.dirname(os.path.abspath(__file__))

  if not path in sys.path:
      sys.path.append(path)

  os.chdir(path)

  application = ExecuteOnCompletion2(gluon.main.wsgibase, callback)
  # # or
  # application=gluon.main.wsgibase_with_logging
--- 13,35 ----
  """

  import sys
  import os

  sys.path.insert(0, '')
  path = os.path.dirname(os.path.abspath(__file__))

  if not path in sys.path:
      sys.path.append(path)

  os.chdir(path)
+
+ # import these only after we're sure that we're at the root web2py
directory;
+ #  i.e. after we chdir() to the path of wsgihandler.py
+
+ import gluon.main
+ from gluon.contrib.wsgihooks import ExecuteOnCompletion2, callback
+

-------------------------------------------------------------------------------------

With the current setup, admin doesn't seem to work; will look at that
more later;

Yarko

On Feb 14, 11:55 am, yarko <yark...@gmail.com> wrote:
> Well, I'm trying this and having trouble:
>
> First:
> ------------------------
> LoadModule access_module modules/mod_access.so
> ------------------------
>
> mod_access module has been renamed, so as of today, I needed to change
> this to:
> ------------------------
> LoadModule authz_host_module modules/mod_authz_host.so
> ------------------------
>
> Second:
>
> I'm getting these tracebacks;
>
> [error] mod_wsgi (pid=27880):
> Exception occurred processing WSGI script '/home/yarkot/webapps/
> mod_wsgi/web2py
> /wsgihandler.py'.
> [error] Traceback (most recent call last):
>    File "/home/yarko/webapps/mod_wsgi/web2py/wsgihandler.py", line 17,
> in <module>
>      import gluon.main
>    ImportError: No module named gluon.main
>
> Anybody have any ideas?
>
> Thanks,
> Yarko
>
> -------
>
> On Feb 4, 7:56 am, dhmorgan <dharrimanmor...@gmail.com> wrote:
>
> > Martin: confirm that NNNN is consistent across parameters__.py, -p
> > flag, and httpd.conf; confirm that password is not 'None' in
> > parameters file; no risk in removing the parameters_NNNN.py file and
> > repeating the 'Create admin password' step in instructions; let me
> > know how it goes
>
> > Baron: you're welcome; thank you for the thanking me
>
> > Massimo: absolutely
>
> > Danny
>
> > On Feb 3, 5:22 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > Can you please post an AlterEgo Entry about this? let me know when
> > > done and I will approve it.
>
> > > Massimo
>
> > > On Feb 3, 4:38 pm, Baron <richar...@gmail.com> wrote:
>
> > > > I followed these instructions to get my site working onWebfaction,
> > > > including the admin login.
> > > > Thanks Danny!
>
> > > > On Feb 4, 6:58 am, rfx_labs <l...@reproflex.de> wrote:
>
> > > > > > yes, and it appears to be working fine; you are welcome to click on
> > > > > > the following link, though it is currently just the standard 
> > > > > > welcome/
>
> > > > > hello dhmorgan,
>
> > > > > I've followed your instructions and welcome works fine. But if I
> > > > > access admin:
> > > > > "admin disabled because unable to access password file"
>
> > > > > The parameter_NNNN.py file is still there.
>
> > > > > Do you have any ideas?
>
> > > > > Martin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to