Mysql Version : 8.0.23
PHP version : 5.6.40
CentOS Linux release 7.9.2009 (Core)
Take a backup of /etc/my.cnf
[mysqld]
default_authentication_plugin= mysql_native_password
Restart Mysql service
systemctl restart mysqld
Automation, Cloud, Bots,AI, ML
Mysql Version : 8.0.23
PHP version : 5.6.40
CentOS Linux release 7.9.2009 (Core)
Take a backup of /etc/my.cnf
[mysqld]
default_authentication_plugin= mysql_native_password
Restart Mysql service
systemctl restart mysqld
Mysql Version : 8.0.23
PHP version : 5.6.40
CentOS Linux release 7.9.2009 (Core)
Take a backup of /etc/my.cnf
[mysqld] character-set-server=utf8
Restart Mysql service
systemctl restart mysqld
How to restrict wp-admin access from one IP
As you know, wordpress is a easy to hack content management system. If you want to restric the admin area of your wordress (wp-admin), you can easily do this by adding the below line in .htaccess
Go to the folder where your blog hosts
vi .htaccess
<IfModule mod_rewrite.c>
<Files wp-login.php>
order deny,allow
deny from all
allow from 121.15.102.0/255.255.255.0 (Add your IP or range here)
</Files>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Save the file and test.