Install And Configure Nginx, PHP, MySQL On Ubuntu

Nginx is simple webserver yet powerful. It is widely know for stable webserver. If it is well configured, nginx rarely have spike in the cpu load and have low memory consumption. Nginx is known for its stability, rich feature set, simple configuration, and low resource consumption.In this article i want to share how to install and configure your Ubuntu server to use Nginx as web server, PHP5 support (using fastcgi) and MySQL support.Open your ssh terminal. Install … Read more...

Solve Nginx Error 413: Request Entity Too Large

Nginx default maximum accepted body size of client request, or maximum file size that you can upload to the server which have Nginx is 1M. And when i try to upload more than 1M i got Nginx error 403: Request entity too large. This happen because Nginx refuse it. And please keep in mind that the browsers do not know how to correctly show this error.To correct this error is easy, you just need to give client_max_body_size a value. Follow the steps below to solve Nginx Error 413: Request entity … Read more...

504 Gateway Timeout With Nginx And Apache

Well these couple days i spent a lot of my time debugging the nginx 504 gateway timeout error. As far as my understanding this error 504 caused by proxy timeout, or nginx wait too long for apche response. By the way i installed nginx as reverse proxy with Apache to server my static files. You can refer to my previous post: Install nginx as Reverse Proxy With Apache.As i’m digging with Google, there are lot of possibilities of this problem. Some says because of fastcgi_read_timeout, but … Read more...

Upgrade Nginx Without Downtime

It’s been more than 2 months now i have been using Nginx (read: Engine X) as reverse proxy server with Apache to server static files such as javascripts, css, images, etc. You can refer to my previous post about how to install nginx as reverse proxy in your web server. The result is, my website loading time is much faster.Well at first installation i used nginx v0.7.63 and the latest stable as i write this post is v0.8.53. There are lot of changes and bug fixes. So i decided to upgrade it … Read more...

Install nginx as Reverse Proxy With Apache

Install nginx as reverse proxy is one way to improve your sever performance and so your website performance too. This is the serial post of “Improve Your Server Performance With Nginx” from my previous post. You can read why you should install nginx aside with apache to improve your server performance in that post. But here we will talk how technically we do it.Install nginx as reverse proxy with ApacheDownload and install the requirementsDownoad mod_rpafDownload PCRE (erl … Read more...

Improve Your Server Performance With Nginx

Apache is one of the best well known web server, that run in all platform, but usually on Linux in production mode. Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. Both static files (css, js, html, image files) and dynamic files (php, pl, py, etc.) are served equally using same amount of resources. Which will cause bottleneck in system performance when your website have lot of static files and lot of traffic.To prevent this, we … Read more...