0

Ubuntu 16.04, Drupal 8 managed through ISPConfig 3.1

I'm trying to log in at mysite.com/index.php/user/login and I get bad username or password. I have copied and pasted from the settings.php file and everything.

This is a box that was setup for me by someone else who, when asked for the credentials, directed me to just get them from settings.php.

The only thing I can think of is that I'm somehow getting a site-login instead? But it's a fresh Drupal 8 install with no config. Is there any other source for the password or alternate password for it?

I've tried going through ISPConfig and changing the database password there but it just breaks the whole site:

“The website encountered an unexpected error. Please try again later.”

So I just revert to the snapshot.

1
  • The administrator user account credentials are not the same as the database credentials used by the Drupal software. If you are in control of the email address of the administrator user account you can use the Forgot Password functionality to get a one-time login URL with which so set your password. If you have drush as part of your Drupal 8 install, then you can run ./vendor/bin/drush uli to do the same thing.
    – mradcliffe
    Commented Jul 12, 2017 at 14:01

1 Answer 1

0

Okay I see what happened now.

I was trying to login to Drupal and not to the database, but I was getting the DB password from settings.php.

On the Drupal sites I setup in the past I used the database user and password as the Site Maintenance Account’s credentials, so I’m used to them always correlating. Since someone else set this one up they put the user and pw to something different. It's probably a security hole to do it the way I was doing it so I guess I need to fix that.

2
  • 1
    On the Drupal sites I setup in the past I used the database user and password as the Site Maintenance Account’s credentials - this is not good practice.
    – Kevin
    Commented Jul 11, 2017 at 17:03
  • yeah I'm going through now and changing them all :) Commented Jul 11, 2017 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.