Install NginX and PHP with PHP-FPM, MySQL and APC

*** This entire article is also provided as a script, available on GitHub. Check the README file for instructions on how to run the installer.

In this tutorial I will compile the latest NginX and PHP with FPM, MySQL, Suhosin and APC on Ubuntu 11.04 (All the steps and dependencies should be the same for Ubuntu 10.04 and 10.10).

Please bear in mind that this method is intended for development and testing purposes only. If you care about stability and security you should use the packages provided by your distribution.

I will not explain how to configure NginX here. You can find a lot of resources about that on the nginx wiki.

In order to compile these programs you will need the following dependencies (most of them should already be installed):

Nagios with NginX in Ubuntu

In this article I will show you how I installed the latest version of the Nagios from sources, and how to serve it with NginX. Nagios is an open-source monitoring application with a very strong community and a huge set of plugins that can help you monitor every aspect of your servers. At the time of writing this article the latest version is 3.2.3. The platform used is Ubuntu 10.10, but except dependencies, it should be the same for older distributions. It doesn't hurt to check them first.

We will start by installing the dependencies:

Varnish and Apache in Ubuntu 10.04

This article is not related in any way with the others in this series, and it represents only another option instead of having NginX. Varnish is an HTTP accelerator, which serves static content from disk or RAM memory. Unlike Squid or other similar software that was created to be mainly a proxy, Varnish has resolved the problems of having data in the virtual memory, and was created from ground up as an HTTP accelerator. It is also very configurable allowing a multitude of uses.

Jetty Powered MultiCore Apache Solr

Installing the latest version of Apache Solr search engine on a Jetty powered server is very straightforward. You simply copy the packages in the right place, change a few lines to customize it and you are done. This tutorial is meant for Ubuntu users but it can be easily adapted for other distributions.

Assuming you are root (you can become by running "sudo -i" command), the first thing you need to do is get the dependencies:

Recent comments