How To Update PHP 7.0 to PHP 7.2 on Debian Easily

More than a year a go, I wrote about how to upgrade PHP 5.6 to PHP 7.0.

Now, PHP 7.0 will reached the end of its critical support through December 2018. After that date PHP community will no longer provides support for bugs. Following to PHP 7.0, PHP 7.1 will be put under discontinued support next year.

Also, since dotdeb dropped support for PHP 7.1 and later so we will use another package provided by Ondřej Surý’s. Continue reading “How To Update PHP 7.0 to PHP 7.2 on Debian Easily”

Linux, PHPLeave a comment

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:

Download the latest APT package repository

Continue reading “Upgrading MySQL 5.5 to 5.7 in Debian”

How To, Linux, , Leave a comment

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, you can add this line on top of the file:

Nginx Server

On Nginx, add this line on server block configuration file:

Reload or restart Nginx for the change to take effect.

 

Linux, snippet, Uncategorized, Wordpress, , , , , Leave a comment

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

I will share my steps to recover it;
Continue reading “What You Have Todo if a Brute Force Attacking Your WordPress Sites”

How To, Linux, WordpressLeave a comment