When you set a wrong domain name in WordPress setting page, it is possible that your website may not be accessible and there is only one blank page in front of you. So what can we do? Reload WordPress? Absolutely not. Here is a method to solve the problem.

  • Install phpmyAdmin
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum -y update
yum install phpmyadmin

restart apache service

service httpd restart

Enter this URL to access phpmyAdmin : http://Your_IP/phpmyadmin

Then you should edit the "wordpress" database -> "wp_options sheet" -> "siteurl" & "home" and change the URL to http://Your_IP . And reset the domain name in WordPress setting page.

  • Error: You don't have permission to access /phpmyadmin on this server.
nano /etc/httpd/conf.d/phpMyAdmin.conf 

Replace the "Require ip xxxx" and "Allow from xxxx" to "Require all granted" and "Allow from all",respectively.

  <IfModule mod_authz_core.c>
     # Apache 2.4
      # Require ip
      # Require ip ::1
        Require all granted
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     #Deny from All
     #Allow from
     #Allow from ::1
      Allow from all

Restart the apache service:

service httpd restart
Last modified: 2020年3月30日


Write a Reply or Comment

Your email address will not be published.