Jump to content
Sign in to follow this  

Accidentally deleted config.php! Don't know userAuthSalt, Now what...!?

Recommended Posts


Developing a site and really stupidly deleted the site/config.php file. Don't ask me how, I'm not quite sure.

Anyway, I don't have a log of the userAuthSalt. I guess I need to generate a new one and also new passwords?

Any advice much, much appreciated.

Share this post

Link to post
Share on other sites

Hi douglas81,

I'm not an expert on this, but i think what I might try in this case would be to:

1.) rebuild your config.php - maybe from a vanilla install, or another site;

2.) change the password of the superadmin from the API, which would then presumably use the new userAuthSalt;

$admin = $users->get('admin'); // username of superadmin
$admin->pass = 'yo12345'; // put in your new password
  • Like 3

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...