Introduction
Recently I was in the process of setting up a LEMP virtual server. The idea was to have a private web server that I could play around and test with. Since I didn't have a spare computer to host my server, I decided to go with a virtual server. A LEMP server consists of:
- Linux Operating System
- NginX Web Server
- MySQL Database
- PHP5 dynamic webpage scripting
For those familiar with the more common LAMP server, the LEMP server is a slight modification. It uses the NginX Web Server instead of the Apache Web Server.
There are a few key benefits of using NginX over Apache. The primary claimed benefit is that NginX scales better to large server loads.
I haven't verified this claim myself yet, but there are various benchmarks online which seem to back this claim.
The great thing about the setup I have is I could easily setup a LAMP server as well and compare the two.
In this part I'm going to go over the various setup required on the host machine and Virtual Box settings, as well as installing the Ubuntu operating system.
Here's a few of the details for the virtual server I'm setting up:
- Virtual Box for the virtual machine software.
- Ubuntu 12.04 LTS 64-bit Server OS. Note that at the time of this writing the latest version of Ubuntu is 12.10.
I'm not entirely sure what the technical differences between the two are. Ubuntu 12.10 is advertised to have the latest technology, but it isn't a LTS (Long Time Support) version of Ubuntu, which Ubuntu 12.04 is.
The LTS versions are supported for 5.5 years vs. the 2.5 years for non-LTS versions. This isn't a major factor for a private test server, but may be a deal breaker for production-quality/public servers.
- Putty Telnet/SSH client for Windows. Note that for people using a Linux OS or any OS with good SSH support via the terminal you won't need a separate client.
- MySQL Workbench for managing the MySQL database on my host machine.