Can't Log Into Wordpress

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.4
Webmin version 2.202
Virtualmin version 7.20.2
Webserver version Apache 2.4.52

I am using Cloudflare Tunnels to get to the web server, I was able to set up the domain fqdm for the Virtualmin Server and the Website I want, I installed Wordpress on the website.

When I go to the domain.com, I reach the default wordpress web page with no issues:

If I go to domain.com/wp-admin/install.php, I get the following page:

But when I try to go to log in, I get an error:
image

This are the Records that I have going through the tunnel:
image

Any help is appreciated!

If you use the WP script in Virtualmin you don’t run install.php, just login at /wp-admin

the too many redirects is a ssl issue I think, prob due to cloundflare, I don’t know what Tunnels is.

Did you have a SSL installed before you ran the wp installed script?

Seeing its a new install, run uninstall then reinstall again.

I only put the wp-admin/install.php to show that the Wordpress pages are working. When I go to /wp-admin I get the DNS error.

Yes the SSL cert was set up before installing Wordpress.

Its not a dns error its a redirect error.

Thank you for the link, sadly I tried all the options listed in that website and none of them worked.

Just for future reference and in case anyone else has this issue, this is what fixed it:

1.) Disable the plugins temporarily:

I.) Rename wp-contents/plugins directory to something like wp-contents/plugins_old

II.) Visit example.com/wp-admin/plugins.php file in your web browser, this will disable any plug-in that is “missing”.

2.) Edit wp-config.php

II.) Add the following code at the top:

define('FORCE_SSL_ADMIN', true);

if( strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false )
   $_SERVER['HTTPS'] = 'on';
else
   $_SERVER['HTTPS'] = 'off';

Where did you find that solution?

Here, it’s the third comment from the bottom.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.