LAMP Stack (Linux, Apache, MariaDB/MySQL and PHP) with phpMyAdmin on Ubuntu 18.04 LTS Server. These open source applications are used by most of the hosting companies, developers, bloggers etc. A LAMP is used for hosting dynamic websites and popular application like WordPress and MediaWiki and more.
- Ubuntu 18.04 LTS Server running Instance.
- root or sudo access.
- Internet to download applications.
Read Also: Installation of Ubuntu 18.04 LTS Server.
Our IP Address of Ubuntu 18.04 LTS Server is:
Update your Ubuntu 18.04 LTS Server.
$ sudo apt update && sudo apt upgrade
1. Apache Web Server Installation
Once your system is updated, execute below command to install Apache Web Server (Click on picture to enlarge it).
$ sudo apt install -y apache2 apache2-utils
Now, open web browser of Ubuntu 18.04 LTS Server and type IP address of your Ubuntu 18.04 LTS Server in address bar. It should show you the Apache2 Ubuntu default page as show below screenshot (Click on picture to enlarge it).
2. MySQL installation
Read also: Installation of MySQL on Ubuntu 18.04 LTS Server.
3. PHP Installation
PHP is widely used server side scripting language to generated dynamic websites. Use below command to install PHP (Click on picture to enlarge it).
$ sudo apt install php php-common php-mysql php-gd php-cli
Once PHP is installed, create a sample info.php page in your document root directory (/var/www/html) (Click on picture to enlarge it).
Test working of PHP.
Open Web Browser and enter IP Address with info.php (192.168.56.110/info.php) in browser address bar as shown below.
Note: This may be vary on your setup (Click on picture to enlarge it).
5. Installation of phpMyAdmin on Ubuntu 18.04 LTS Server.
phpMyAdmin is a free and open source MySQL and MariaDB administration Graphical User Interface (GUI) tool, especially used for web hosting services. phpMyAdmin is written in PHP and one of the most popular web-based MySQL & MariaDB management tools and commonly used operations like browsing, dropping, creating, altering databases, tables, fields and indexes.This post will describe step-by-step instructions to install and configure phpMyAdmin on Linux Ubuntu 18.04 LTS Server distributions. Before installing phpMyAdmin make sure that you have install Apache, PHP and MySQL is installed on server.
Once installation is done, restart apache2 service to take changes effect.
$ sudo systemctl restart apache2
That’s it! In this article, we have seen LAMP Installation on Ubuntu 18.04 LTS Server with phpMyAdmin. Please share it with others and use comment box below to raise query if any. Also follow us on tecluesdotcom Facebook Official Page.