Fix WordPress plugin installation permission issue

Problem: When I try to install a plugin at WordPress, I hit an error: Installation failed: Download failed. Destination directory for file streaming does not exist or is not writable. This is due to some permission problem when the content folder. I was editing some files as a sudo su power user, but the install… Continue reading Fix WordPress plugin installation permission issue

Fix WordPress with all pages returning 404 not found

Problem: I encounter a weird problem in WordPress, where the homepage is able to load properly, but all the pages are failing to load. An error page display: Not Found The requested URL was not found on this server. However, since the files were migrated from the other server, all the pages should exist already.… Continue reading Fix WordPress with all pages returning 404 not found

Fix endless redirection with https setting at WordPress and using AWS load balancer

Problem: I set up a WordPress blog at 2 Amazon Web Service (AWS) EC2 instances at different availability zone. In front of them, a elastic load balancer (ELB) is set up, which redirect all HTTP port 80 requests to HTTPS port 443. Since the wp-config.php was not updated, the requests are still using HTTP instead.… Continue reading Fix endless redirection with https setting at WordPress and using AWS load balancer

Install php7.2 instead of php5.4 on Amazon Linux 2

Problem: When you start a new Amazon Linux 2 AMI server, and try to install php via command: After install successfully and check the version, you would see php -v PHP 5.4.16 (cli) (built: Oct 31 2019 18:34:05) However, the latest php version is 7.2 and you want to have a new version. Solution: You… Continue reading Install php7.2 instead of php5.4 on Amazon Linux 2

Migrate WordPress MySQL to AWS RDS

In this article, I am going to explain how to migrate your WordPress local MySQL database to Amazon Web Service (AWS) Relational Database Service (RDS). Why would you want to do this? Because of the following benefits: It increases the performance since your database is separate from the resources running in your EC2 instance. It… Continue reading Migrate WordPress MySQL to AWS RDS

Migrate blog from medium to ghost 3.0

Ghost 3.0 just released. (https://ghost.org/3/) I hate WordPress with PHP but love Ghost with Node.js. It is open source and the dark theme is pretty cool. So I decided to switch my blog from the medium platform. However, there is a homing cost and it’s not straight forward to migrate. Here are the steps to… Continue reading Migrate blog from medium to ghost 3.0