yrglx Posted April 10, 2019 Share Posted April 10, 2019 Situtation: website has been running for years without problems. We are implementing changes and setup a "dev" subdomain to be able to compare old and new. What went wrong: the hoster makes it possible to change the MySQL dbUser password. Which I accidentally did. Now the new password is not the same as the one defined in the config.php file under "$config->dbPass = ..." and the CMS cannot access the DB anymore. Nothing is working anymore! Assumptions: in config.php under "$config->dbPass = " the string saved is the salted hashed password, i.e. "myFreaking$difficultPassword" would be saved as f.ex. "jfeime7??6$$3!2". Is that right? What I need to be able to do: how can I generate that salted hashed password from the plain text password I entered on the host's webinterface for the dbUser? Or: do I just need to set "$config->dbPass" to the plain text password I entered on the hoster's webinterface to change de dbUser Password? Link to comment Share on other sites More sharing options...
cstevensjr Posted April 10, 2019 Share Posted April 10, 2019 7 minutes ago, yrglx said: Or: do I just need to set "$config->dbPass" to the plain text password I entered on the hoster's webinterface to change de dbUser Password? Please give that a try. 1 Link to comment Share on other sites More sharing options...
yrglx Posted April 10, 2019 Author Share Posted April 10, 2019 9 minutes ago, cstevensjr said: Please give that a try. It worked, thanks! But isn't that a security issue? Link to comment Share on other sites More sharing options...
cstevensjr Posted April 10, 2019 Share Posted April 10, 2019 You will need to work that situation out with your hosting provider. Under normal circumstances, the application configuration file (config.php) is not accessible to the outside world. Good luck. 1 Link to comment Share on other sites More sharing options...
dragan Posted April 10, 2019 Share Posted April 10, 2019 @yrglx check out the docs: https://processwire.com/docs/security/file-permissions/#securing-your-site-config.php-file 1 Link to comment Share on other sites More sharing options...
yrglx Posted April 10, 2019 Author Share Posted April 10, 2019 6 minutes ago, dragan said: @yrglx check out the docs: https://processwire.com/docs/security/file-permissions/#securing-your-site-config.php-file thanx. That helps. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now