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 <scotti...@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+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