Yeah it depends how things are configured, for instance I need to start
uwsgi service in order to allow web2py to work, just start/restart nginx is
not controlling web2py instance... Also you mention about rocket server, so
I am a bit puzzled on how your server is configured...

But, replacing (with the new generated one) the parameters.py file that you
have in the web2py/ directory should allow you to access you the web2py
admin app... If it not working with restarting apache service restart your
computer and cross your finger :)

Good luck

Richard



On Thu, Feb 16, 2017 at 1:20 PM, Ian W. Scott <scotti...@gmail.com> wrote:

> Also, in the command you give above, what is the "www-data" argument? Is
> that the path to the directory set up in apache to hold web content?
>
> I appreciate your help with these very basic questions. As you can tell,
> I'm stuck trying to run a server without any experience or training. So
> when things go properly I'm okay, but I don't understand anything under the
> hood.
>
> Ian
>
> On Thursday, February 16, 2017 at 11:46:44 AM UTC-5, Richard wrote:
>>
>> Hello Ian,
>>
>> Not sure I understand your exact problem, but you can reset admin
>> password like this :
>>
>> sudo -u www-data python -c "from gluon.main import save_password;
>> save_password('123456',443)"
>>
>> Where 123456 is you pass phrase.
>>
>> 443 is the port for which the password apply
>>
>> This will create parameters_443.py file that you drop/replace in the
>> web2py/ folder and then restart web2py instance and the new generated
>> password should work.
>>
>> Richard
>>
>> On Thu, Feb 16, 2017 at 11:29 AM, Ian W. Scott <scot...@gmail.com> wrote:
>>
>>> I seem to have forgotten the admin password for my web2py installation,
>>> so I need to change it. Looking at posts here, the recommendation was:
>>>
>>> 1 - stop apache server
>>> 2 - restart web2py
>>> 3 - enter new password
>>> 4 - restart apache server
>>>
>>> I'm getting stuck at 2. The only way I know how to "restart" web2py is
>>> to run web2py.py from the base web2py directory. But when I do that I get
>>> web2py running on the rocket server. I can change the admin password for
>>> the rocket server session, but when I stop the rocket server and restart
>>> apache the new password I entered doesn't work.
>>>
>>> The other command someone recommended here to "restart web2py" was
>>> 'python web2py'. But when I just run that command from my home directory I
>>> get this error:
>>>
>>> /usr/bin/python: can't find '__main__' module in 'web2py'
>>>
>>> I'm really confused.
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to web2py+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to