Question

can't access wordpress admin

Please could someone help me with my issue? My new website does not appear to be available, I have followed the one click wordpress installation on a droplet, and when it comes to set the admin password I follow the link and I get nothing. the IP address is 167.71.176.249. the domain name is starrysnapshots.com, and the nameservers are with cloudflare (moved from GoDaddy where I recently aquired the domain). I have tried clearing all local cache and purged DNS cache. my DNS ‘A’ record for starrysnapshots.com points to 167.71.176.249, and I have verified this on https://www.whatsmydns.net/ which is a propogation checker. I have successfully got HTTPS certificates for starrysnapshots.com, and www.starrysnapshots.com from letsencrypt via ssh into the droplet, and installed WP. 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.

KFSys
Site Moderator
Site Moderator badge
April 10, 2023
Accepted Answer

Hey @10002be05ea84cdbb9aa686305b637,

When I open your website, I get the page redirected you too many times.. The “redirected you too many times” error in WordPress is usually caused by a misconfiguration in your site’s settings or plugins.

If this is a new Installation and you did not add any new Plugins then it’s about misconfiguration of the site’s settings.

  • Check your .htaccess file: The issue may be caused by a misconfiguration in your site’s .htaccess file. Try renaming the file to .htaccess_old and see if that fixes the issue. If it does, you can regenerate a new .htaccess file by going to Settings > Permalinks in the WordPress dashboard and clicking the Save Changes button.
  • Disable plugins: I know I said it shouldn’t be a plugin but just to be a 100% sure. Sometimes, the issue is caused by a conflicting plugin. Try disabling all your plugins and see if that fixes the issue. If it does, you can enable your plugins one by one to identify the plugin causing the issue.
  • Use wp-cli to remove any https redirection if it’s in your database:

Install WP-CLI

  1. Open your terminal or command prompt.

  2. Install PHP on your system if it’s not already installed. You can verify if PHP is installed by running the following command:

php -v
  1. Download wp-cli by running the following command:
`curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar`
  1. Verify the integrity of the downloaded file by running the following command:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar.asc gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6 gpg --verify wp-cli.phar.asc wp-cli.phar`
  1. Make the wp-cli.phar file executable by running the following command:
`chmod +x wp-cli.phar`
  1. Move the wp-cli.phar file to the /usr/local/bin/ directory by running the following command:
`sudo mv wp-cli.phar /usr/local/bin/wp`

This will allow you to run the wp command from any directory on your system.

  1. Verify that wp-cli is installed by running the following command:
`wp --info`

This command will output the version of wp-cli that you have installed, as well as other system information.

Use WP-CLI to change your siteurl

  1. Open your terminal or command prompt and navigate to the root directory of your WordPress installation.
  2. Enter the following command to log in to your WordPress site using wp-cli:
 wp login

This will prompt you to enter your WordPress username and password.

  1. Once you are logged in, enter the following command to view the site’s current URL settings:
  1. wp option get siteurl

This command will output the current site URL, including the protocol (http or https).

  1. If the site URL includes https, enter the following command to change the site URL to http:
  1. wp option update siteurl http://example.com

Replace example.com with your site’s domain name.

alexdo
Site Moderator
Site Moderator badge
April 10, 2023

Hello @10002be05ea84cdbb9aa686305b637

The site is loading fine at the moment are you still experiencing the issue mentioned above?

If you have an issue to reset your admin password you can follow this article:

https://docs.digitalocean.com/support/how-do-i-reset-the-wordpress-admin-panel-password/

Regards

Try DigitalOcean for free

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

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

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

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

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