Question

Cant login in my Wordpress 5.8 Ubuntu 20.04.

After I set up my WordPress on Ubuntu 20.04 on the digital ocean in a droplet. I am not able to log in with my root password. The password is correct. How do I get access again? What do I need to set up? I can log in my normal WordPress-admin account and customize it. But I need access to my droplet to change the redirecting from non-www to www. Thanks in advance


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
December 27, 2022

Hello @neverdevelopment,

You can reset your root password for your account. Navigate to the control panel. From the project, the Droplet is in, or from the main navigation’s Droplets page, locate the Droplet. Click the Droplet’s name to open its detail page, then select Access in the left navigation.

Click Reset Root Password to reset the Droplet’s password. You will receive an email containing the Droplet’s temporary password.

Note: Some operating systems use internally-managed passwords, which means you cannot reset the root password from the control panel. In these cases, you’ll see the following message in the Reset root password section:

Once you have received your new password you can either ssh to the droplet using your ssh client or access the droplet using the DigitalOcean console:

https://www.digitalocean.com/docs/droplets/resources/console/

Log In with the Console

From the DigitalOcean Control Panel, first click the name of the Droplet you want to access, then select Access from the left navigation. Click the Launch Console button to open a web-based console session.

When the console opens, click the console screen and press ENTER to ensure that the login prompt has focus. At the login prompt, enter the user you want to log in as. This is typically the root user or a user configured with sudo privileges.

When prompted, enter the password associated with the account. For security purposes, your password will not be displayed on the screen as you type or paste it into the command line.

Once you’ve entered the password, press ENTER. If this is the first time you’ve logged in after resetting the root password through the control panel, you are prompted to enter the password again, then asked to choose a new password.

Once you’ve successfully entered your credentials you should be logged in to your Droplet.

Regards

KFSys
Site Moderator
Site Moderator badge
December 27, 2022

Hi @neverdevelopment,

If you need to enter into your Droplet, there are two ways to go about it.

Either use the Recovery Console:

https://docs.digitalocean.com/products/droplets/how-to/recovery/recovery-console/

The Recovery Console provides out-of-band access and is available regardless of your network settings. It emulates the access you would have if you were sitting down with a keyboard and monitor attached to the actual server. You can use this feature to log in and revert bad settings to regain normal access.

Or check this tutorial on how to recover your password:

https://docs.digitalocean.com/support/how-do-i-reset-my-droplets-root-password

The standard way to reset the root password for your Droplet is using the control panel.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.