Fixing the PHP Blank Page Issue After Upgrading to Nginx 1.10

I hate upgrading, every time, something will break.

This time, it seems you need to add the following line to /etc/nginx/fastcgi_params

fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;

Read More

How to Migrate from Apache to Nginx

I migrated my LAMP site to LNMP.

“Although the Apache web server is currently the most popular web server in the world, Nginx is gaining ground at a rapid rate. This is unsurprising, considering that Nginx performs excellent while using few resources. For many websites, a migration to Nginx would improve performance.”

Here is a good tutorial: Click me

Read More

How to setup VPN server on Ubuntu VPS

Setup VPN on a Ubuntu VPS (I’m using Linode)

Read More

Where are Django source files?

Run the following command:

python -c "
import sys
sys.path = sys.path[1:]
import django

Read More

How to set up Amazon MySQL RDS security group with EC2

You don’t want others to access your data, so a separate database security group for RDS should be setup. Only desired EC2 instances and yourself should be able to access RDS instance.

Read More

How to set up Django, PHP and Apache on Amazon EC2

I just deployed an Apache server hosting both php-based WordPress blog and Django projects website, being visited from different domains/subdomains. Here is what I did.

Read More