How to install Contao on an Ubuntu 14.04 VPS

Contao is a popular web-based open source content management system which allows you to develop search engine friendly web sites.
To install Contao on an Ubuntu VPS follow the very easy steps described below.

This install guide assumes that Apache, MySQL and PHP are already installed and configured on your Linux VPS. At the time of writing this tutorial, the latest stable version of Contao is 3.4.0 and it requires:

PHP = 5.2 with GD graphics library, SOAP, mbstring and mcrypt PHP extensions enabled.
Apache Web Server = 2.x+ compiled with mod_rewrite module in order to use search engine friendly URLs.
MySQL = 5.x installed on your Linux virtual server.

Download the latest version of Contao available at https://contao.org/en/download.html to the server and extract it using the following commands: