【Life】從網站被駭學到的幾件事

首先說聲抱歉,因為自己的疏忽導致網站掛了三天才發現。

昨天早上想要在自己的Blog查一下之前寫的資料,才赫然發現打開Blog連結之後會被導到另外一個奇怪的網址。一開始沒有意識到是網站被駭,還以為是瀏覽器的問題,幾分鐘之後才恍然大悟原來網站被駭客動過手腳,這也是這個網站架設四年多來第一次被駭客入侵。

首先立刻遠端登入主機確認狀態,我不確定被導過去的網頁有沒有問題,總之把/var/www/html檔案夾先改名成/var/www/html_copy,避免使用者繼續連到我們的網站。網站伺服器(Apache)看起來一切都正常,只有網站本身被駭客登入竄改了首頁連結。如果是這樣就非常好處理了,只要把資料庫跟wordpress的檔案全部恢復到『案發』前的時間即可。

閱讀更多【Life】從網站被駭學到的幾件事

(Visited 62 times, 1 visits today)

[WP] How to Add SSL and HTTPS in WordPress?

SSL plays an important role in website, because in the last year Google announced that they will be using HTTPS and SSL as a ranking signal in their search results. This means that using HTTPS and SSL will help improve your site’s SEO.

Using an SSL certificate for your WordPress site means that your data, as well as your users’ data, remains safe from prying eyes. Since WordPress is a particularly large target for hackers due to its popularity and transparency, it’s important to take all the appropriate steps toward securing your site.

If you host a wordpress website by yourself, you may need to install SSL certificate on your website. I found a simple way to install SSL certificate through commands and the most important thing is this SSL certificate is free. Oh yes, you need to have the basic knowledge of SSH, Linux and Bash.

閱讀更多[WP] How to Add SSL and HTTPS in WordPress?

(Visited 79 times, 1 visits today)

[Python] Use python boto3 and crontab to backup MySQL to AWS S3

I wrote a python script to backup MySQL and upload to AWS S3. I will show you these steps in the following. First of all, you need to create a user in AWS IAM.

閱讀更多[Python] Use python boto3 and crontab to backup MySQL to AWS S3

(Visited 803 times, 1 visits today)

[Ubuntu] Using Amazon RDS with WordPress

In order to improve efficiency and elasticity of EC2 instance, we need to use a database that is installed on a separate machine. A good solution is using AWS RDS. Before we create a database RDS instance, we need to make a dump of the existing database on our WordPress server.

In the following, I will list these instructions.

閱讀更多[Ubuntu] Using Amazon RDS with WordPress

(Visited 99 times, 1 visits today)

[Ubuntu] Install WordPress on AWS EC2 Ubuntu 14.04

I change my blog from google blogger to wordpress recently. First of all, I got an Amazon Web Service account, then I created 2 instances(EC2 and RDS), finally, I installed wordpress on EC2. I will list instructions in the following steps.

1. Create AWS EC2 instance
2. Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 14.04
3. Install WordPress on Ubuntu 14.04
4. Setup FTP server for wordpress
5. (Option) Create AWS RDS instance and connect to WordPress

閱讀更多[Ubuntu] Install WordPress on AWS EC2 Ubuntu 14.04

(Visited 217 times, 1 visits today)