minor correction:

On Mon, Feb 16, 2009 at 2:04 AM, Yarko Tymciurak <[email protected]> wrote:

> further progress:
> RE:[1]:  whatever my port number webfaction assigns me,  my request
> server_port is 80;
>
> When following the instructions for generating a parameters_NNNN.py file,
> you want to use port 80.
>
>
when setting your password / setting up your web2py parameters_*.py file;
use the port number assigned you by webfaction in your httpd.conf file.

I've summarized all this on webfaction:
http://forum.webfaction.com/viewtopic.php?pid=8844#p8844



>
>
> admin app checks  port = request.env.server_port;  what webfaction assigns
> you shows up in request.env.mod_wsgi_listener_port
>
> RE:[2]:  this has changed in current devel  (trunk);  in fact, BigBad*
>  pointed it out, and several files have taken on similar changes.
>
> All is well  ;-)
>
> Regards,
> Yarko
>
>
> On Sat, Feb 14, 2009 at 3:02 PM, yarko <[email protected]> wrote:
>
>>
>> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to