• canercelik

    (@canercelik)


    Hello there,

    My web site is working well for the readers. All modules are working, multi language is working, there’s no problem on the surface.

    But when I try to reach wp-admin page, I got

    This page isn’t working.
    bilimneguzellan.net redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    error.

    When I try refreshing the page, error changes.

    Warning: mysqli_query(): MySQL server has gone away in /var/www/html/wp-includes/wp-db.php on line 2026

    Warning: mysqli_query(): Error reading result set’s header in /var/www/html/wp-includes/wp-db.php on line 2026

    Warning: mysqli_real_connect(): (HY000/2002): Connection refused in /var/www/html/wp-includes/wp-db.php on line 1626
    Connection refused

    Error reconnecting to the database
    This means that we lost contact with the database server at 127.0.0.1. This could mean your host’s database server is down.

    Are you sure the database server is running?
    Are you sure the database server is not under particularly heavy load?
    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    I have been searching for a solution for manys days, at the end, I decided to ask you about it.

    PS : There’s no problem with the MariaDB response time and no conflict about version.

    When you visit the website, you can clearly reach all the content.

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • corrinarusso

    (@corrinarusso)

    Ask your host, and look at the apache logs.

    Check your htaccess file :

    htaccess

    Check with all your plugins disabled. Especially WordFence.

    Install an SSL on your site.

    Fix these errors :

    View post on imgur.com

    Check your site_url and site_home settings :
    https://www.inmotionhosting.com/support/edu/wordpress/wordpress-changing-the-site-url-and-home-settings/

    a2hostingrj

    (@a2hostingrj)

    Do you remember when it started to happen? Did you install a plugin lately?

    Thread Starter canercelik

    (@canercelik)

    I remember it very vell 🙂
    It happened after the migration from Digital Ocean VPS to Vultr.

    corrinarusso

    (@corrinarusso)

    Thread Starter canercelik

    (@canercelik)

    Apache Status results as below :

    Jun 02 18:12:42 bngl phpMyAdmin[8089]: user denied: root (mysql-denied) from 172.69.10.198
    Jun 02 18:16:03 bngl phpMyAdmin[8089]: user denied: phpmyadmin (no-activity) from 46.196.94.166
    Jun 02 18:25:13 bngl phpMyAdmin[8153]: user denied: root (mysql-denied) from 162.158.165.12
    Jun 02 18:38:07 bngl phpMyAdmin[8550]: user denied: root (mysql-denied) from 172.68.102.136
    Jun 02 19:01:40 bngl phpMyAdmin[9441]: user denied: root (mysql-denied) from 172.68.244.80
    Jun 02 19:15:06 bngl phpMyAdmin[9711]: user denied: root (mysql-denied) from 162.158.7.181
    Jun 02 19:27:27 bngl phpMyAdmin[9875]: user denied: root (mysql-denied) from 172.69.134.125
    Jun 02 19:28:18 bngl phpMyAdmin[9878]: user denied: root (mysql-denied) from 162.158.183.121
    Jun 02 19:40:44 bngl phpMyAdmin[10452]: user denied: root (mysql-denied) from 162.158.183.229
    Jun 02 20:39:24 bngl phpMyAdmin[13483]: user denied: marcio.map.roots (mysql-denied) from 172.68.246.124

    Also, I changed plugins folder’s name to the plugins_old. So, all the plugins are inactive now.

    .htaccess as below :

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    SSL side : I installed and enabled SSL via sudo certbot --apache command.

    Errors caused by xlith.net are not related to the issue. It was an open source analytics software.

    Edits on wp-config.php and DataBase didn’t solve the issue (which referred : https://www.inmotionhosting.com/support/edu/wordpress/wordpress-changing-the-site-url-and-home-settings/

    corrinarusso

    (@corrinarusso)

    root and this guy marcio.map.roots are denied.
    Connect your db using mysql with the credentials from your wp-config file.
    Make sure that user is GRANTed all access privileges to your db.
    https://www.vultr.com/docs/troubleshooting-wordpress-database-errors

    Thread Starter canercelik

    (@canercelik)

    After reinstallation of ssl certificate, somehow the site is completely gone 🙂

    I tried the database repair method, problem is not related to database, at least when I put define( 'WP_ALLOW_REPAIR', true ); in wp-config.php file and run the address, WordPress couldn’t find DB related issue.

    corrinarusso

    (@corrinarusso)

    Ask Vultr how to force redirect on the SSL settings. Or put it in your htaccess file.

    Thread Starter canercelik

    (@canercelik)

    I created a ticket, hope this works. ^_^

    Thread Starter canercelik

    (@canercelik)

    I deactivated Cloudflare, I will use Vultr’s DNS services first then I will change htaccess content according to my needs.

    corrinarusso

    (@corrinarusso)

    Great.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Cannot Reach wp-admin’ is closed to new replies.