In this video we review the steps required to install Apache, PHP and MariaDB/(MySQL) on Ubuntu Server 18.04. 

On a Linux system, this is known as a LAMP stack (Linux, Apache, MySQL, PHP).  Linux being the operating sytem, Apache being the webserver, PHP the scripting language and MariaDB the database. This combination of packages makes for a strong foundation for a web server however depending on what you are hosting you may need additional packages like mcrypt, mbstring, gd, gettext, etc. It is worth noting that you can install either MariaDB or MySQL the main differences being that MariaDB is open source, it doesn't support data masking and dynamic columns but is faster than MySQL whereas MySQL is less open source in its enterprise edition but does support data masking and dynamic columns.  This guide is intended for a local network but can be expanded upon for internet access so long as security measures like firewalls and such are in place.  After following this tutorial on your Ubuntu server you will, from within your local area network (LAN), be able to go to your server in a web browser (http://server-host-ip-or-name).  You can create sub-folders here for a nice local development space.  More advanced users may prefer to configure the Apache virtual hosts file and manage DNS but for a local dev environment, this is a good start.

Prerequisites:

  • You have an Ubuntu server built and patched with ssh(optional) installed.

In this video we use the following commands:

To prepare our system by upgrading packages that are ready for upgrades and then to upgrade them.

sudo apt-get update
sudo apt-get upgrade

To install our applications

sudo apt-get install apache2 php mariadb-server

Verify installation

sudo mysql
     exit;
sudo apache2 -v
sudo php -v

http://server-host-ip-or-name  (from a web browser)

For access from outside the LAN you will need a domain name or static IP as well as properly configured DNS and firewall ports.

Most Popular

Install Ubuntu Server - (18.04---64bit)

We use the traditonal installer to install Ubuntu server 18.04 in this video. You will need to download Ubuntu server from the Ubuntu repository using the link below or by going to their website and downloading it


Editors Pick

Install a guest OS in Virtualbox

In this video we review the basic settings required to install a guest operating system in virtualbox.  You will need to have already downloaded and installed virtualbox as well as have downloaded an iso for the gust OS.

Trending

Connect Remotely to Ubuntu Server

In this video we review the necessary steps to set up an Ubuntu server for a remote ssh connection and how to connect to it remotely. We look at 2 different methods of connecting remotely.  WSL (Windows Sub System For Linux) and Putty.  From a Linux host you can just launch the terminal.


Copyright © 2025 Aaron Nursoo. All Rights Reserved.
Joomla! is Free Software released under the GNU General Public License.