Jump to:

23368 Posts in 18143 Topics by 2863 members

General Questions

SilverStripe Forums » General Questions » Lost password, but access to server

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1039 Views
  • Tigerpie
    Avatar
    Community Member
    10 Posts

    Lost password, but access to server Link to this post

    As title says, I have lost my password for my site.
    I also didnt set up a proper email address

    I can access the server for my site though, via cpanel, and I also have a fw exported db's for when i transfered the site from my computer to the proper server.
    I searched it and found where the password is stored but it is encrypted and i dont know how to decrypt it.

    I was wondering if there is anything i can do?

    Cheers
    Scott

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Lost password, but access to server Link to this post

    Add the following line to your mysite/_config.php (if you got access to the cpanel you should also to be able to get FTP access):

    Security::setDefaultAdmin("<username>", "<password>");

    Replace <username> and <password> with the desired username/password and login using these credentials. You should the be able to change the admin password in the CMS.
    After that, be sure to remove the previously added line from the _config.php

    Oh and btw.: Did you even bother to search for an answer for this problem? It has been answered a dozen times already.

  • Tigerpie
    Avatar
    Community Member
    10 Posts

    Re: Lost password, but access to server Link to this post

    Thanks for that Banal.
    I did do a quick search and got to reading about why passwords wouldnt work after a server move and diff versions of php etc etc......then i thought it might be easier to just ask the question...especially since i was knackered and about to go to bed.

    But yes, i know that was the lazy way and generally im not like that.....but somestimes I fall back to bad habits.

    Thanks again.

    1039 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.