Upgrading MySQL 5.5 to 5.7 in Debian

I know, MySQL 5.5 is quite old, let’s get an upgrade then.

First of all, let’s backup the databases:

mysqldump --all-databases > all_databases.sql

Download the latest APT package repository

wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb

How to set posts redirect to a new domain

I'm moving out a blog to a new domain, and redirect all posts specifically to a new domain. http://olddomain.com/category/postname should go to http://newdomain.com/category/postname Apache Server On Apache that allows .htaccess,…

What You Have Todo if a Brute Force Attacking Your WordPress Sites

One of my server had cpu outage last week because of a script repeating to access wp-login.php file with hundreds of request per minute.

if you do tail -f access.log it will return repeating requests
[shell]
146.0.79.23 – – [22/Aug/09:31:14:11 +0000] “GET /wp-login.php HTTP/1.1” 200 3327 “-” “Mozilla/4.0”
[/shell]

I will share my steps to recover it;

Increase PHP Upload Size Limitation

Every server running has limitations including file upload, If you need to upload bigger file, you need to adjust PHP settings. If you are running web server on Linux, mostly…

Protecting Your WordPress Admin with htaccess

Everyone can easily guess how to enter your WordPress Admin Dashboard, yes by default it's www.yoursite.com/wp-admin. Someone with evil-minded can easily target that login url using a brute-force software to…