Install Pagekit CMS on an Ubuntu VPS

Today we will go through the process of installing Pagekit CMS on an Ubuntu VPS with Nginx and MariaDB. Pagekit is a modern CMS, written in PHP on top of Symfony components and modern open source libraries. Pagekit uses its own templating engine called Razr and Markdown formatting.
This should work on other Linux VPS systems as well but was tested and written for Ubuntu 14.04.