Settting up a LAMP Stack on Ubuntu 16.04 LTS

From Thom's wiki
Jump to navigation Jump to search

Installing Ubuntu

Install a Mailagent

To make your website to be able to send e-mails, you most likely have to install an mailagent

 sudo apt install postfix

Install apache

 sudo apt install apache2

Installing MariaDB or MySQL

There is a battle which one is better MySQL or MariaDB. I do prefer MariaDB, because it is 100% open source.

To download and install mariaDB follow the instructions at MariaDB Repositories Setup Tool

Installing PHP

At the moment of this writing PHP 5.6 is depreciated. PHP 7.0 means a huge performance upgrade from PHP 5.6. PHP 7.1 will also deliver a major performance boost over PHP 7.0. And PHP 7.2 will again deliver a performance boost over PHP 7.1.

PHP 7.0 can be installed as follows:

 sudo apt install php7.0 libapache2-mod-php7.0 php7.0-opcache php7.0-mysql php7.0-gd php7.0-intl php7.0-mbstring