Setup Django server with Apache virtual host and Python virtual environment

It took me a while to get everything works together, so I would like to document some of the steps and save you some time in the future. First of all, assuming that you already have your CentOS / Ubuntu instance running and python already available. Then create a folder for your project with corresponding… Continue reading Setup Django server with Apache virtual host and Python virtual environment

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