How To Install LAMP Stack on Ubuntu 18.04 LTS

Install LAMP Stack on Ubuntu 18

LAMP represents a full featured stack containing the most popular web server known as Apache, the most popular database server MySQL and the most popular open-source web programming language known as PHP. All components are free and open-source software, and the combination is suitable for building dynamic web pages.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation LAMP (Linux Apache, MySQL and PHP) on Ubuntu 18.04 LTS Bionic Beaver server.

Install LAMP Stack on Ubuntu 18.04 LTS Bionic Beaver

Step 1. First make sure that all your system packages are up-to-date

apt-get update
apt-get upgrade

Step 2. Installing Apache web server on Ubuntu 18.04 LTS Bionic Beaver.

We will be installing Apache with apt-get, which is the default package manager for ubuntu:

apt-get install -y apache2 apache2-utils

After installing Apache2, the commands below can be used to stop, start and enable Apache2 service to always start up with the server boots:

systemctl enable apache2
systemctl start apache2
systemctl status apache2

Check Apache version:

apache2 -v

You can verify that Apache is really running by opening your favorite web browser and entering the URL http://your-server’s-address, if it is installed, then you will see this:

apache2-ubuntu-default-page

Step 3. Installing MariaDB on Ubuntu 18.04 LTS Bionic Beaver.

Now that we have our web server up and running, it is time to install MariaDB. MariaDB is a database management system. Basically, it will organize and provide access to databases where our site can store information:

apt-get install mariadb-server mariadb-client

After installing MariaDB, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots:

systemctl status mariadb
systemctl enable mariadb
systemctl start mariadb

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables

To log into MariaDB, use the following command (note that it’s the same command you would use to log into a MySQL database):

mysql -u root -p

Step 4. Installing PHP 7.2 on Ubuntu 18.04 Bionic Beaver.

At the the time of this writing, PHP7.2 is the latest stable version of PHP and has a minor performance edge over PHP7.0. Enter the following command to install PHP7.2:

apt-get install software-properties-common
add-apt-repository ppa:ondrej/php

Run the commands below to install PHP 7.2 FPM and related modules:

apt-get update
apt-get install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl

After install PHP and related modules, all you have to do is restart Apache2 to reload PHP configurations:

systemctl restart apache2

To test PHP, create a test file named info.php with he content below. Save the file, then browse to it to see if PHP is working:

nano /var/www/html/info.php

In this file, paste the following code:

<?php
phpinfo();
?>
1
2
3
	
<?php
phpinfo();
?>

Try to access it at http://your_server_ip/info.php . If the PHP info page is rendered in your browser then everything looks good and you are ready to proceed further.

php_ubuntu_test_18.04_LTS

Congratulation’s! You have successfully installed LAMP stack. Thanks for using this tutorial for installing LAMP (Linux Apache, MySQL and PHP) in Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official Apache, MySQL and PHP web site.

How To Install Notepad++ on Ubuntu 16.04 LTS

Install Notepad++ on Ubuntu 16

Notepad++ is a free source code editor and Notepad replacement that supports several languages. Running in the MS Windows environment, its use is governed by GPL License. For a while now there has been an alternative to Notepad++ called Notepadqq for Linux systems, including Ubuntu.. Notepadqq is not a bad editor, but probably not as feature-rich as Notepad++. In this tutorial we will show you how to install Notepad++ on Ubuntu 16.04 LTS.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Notepad++ on an Ubuntu 16.04 Xenial Xerus server.

Install Notepad++ on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Snapd.

Snap is a powerful package management system for Linux users, it probably the best and easiest way to install packages on Linux machine. To install Snap, run the commands below:

apt-get install snapd snapd-xdg-open

Step 3. Installing Notepad++ on Ubuntu.

To install Notepad++ run the commands below:

snap install notepad-plus-plus

Once installing the package, run the commands below to install a mandetory plugin:

snap connect notepad-plus-plus:process-control

And optional plugins below should probably be installed as well:

snap connect notepad-plus-plus:removable-media
snap connect notepad-plus-plus:hardware-observe
snap connect notepad-plus-plus:cups-control

Finally steps, next go to your Activities Overview and search for, the launch Notepad++.

Congratulation’s! You have successfully installed Notepad++. Thanks for using this tutorial for installing Notepad++ on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official Notepad++ web site.

How To Install Buddy on Ubuntu 16.04 LTS

Install Buddy on Ubuntu 16

Buddy is a continuous integration and delivery platform for GitHub, GitLab and Bitbucket with Docker-based builds and automatic deployments. In this tutorial we will show you how to install Buddy on Ubuntu 16.04 LTS.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Buddy on an Ubuntu 16.04 Xenial Xerus server.

Install Buddy on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Docker Engine.

Buddy requires the Docker Engine to run. Follow Docker installation instructions:

apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get -y update
apt-get -y install docker-ce

Step 3. Installing Docker Composer.

With the Engine installed, you can install Docker Compose which is also required by Buddy:

curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

Step 4. Installing Buddy on Ubuntu 16.04.

To install Buddy Enterprise, run the following in the terminal:

curl -sSL https://get.buddy.works | sh && buddy install

Buddy Enterprise uses ports 80, 443 and 22 on the installation server. You will be asked for an alternative port if one of the ports is unavailable. When asking for the terms, simply confirm with “Enter”. When the installation is complete, change to the next tab.

Step 5. Accessing Buddy.

Buddy will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com or http://server-ip and complete the required the steps to finish the installation.
buddy-web-interface

Congratulation’s! You have successfully installed Buddy. Thanks for using this tutorial for installing Buddy on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official Buddy web site.

How To Install Prometheus on Ubuntu 16.04 LTS

Install Prometheus on Ubuntu 16

Prometheus is an excellent open-source monitoring system which allows us to collect metrics from our applications and stores them in a database, especially a time-series based DB. The biggest advantage of Prometheus is the query language it provides for data processing.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Prometheus open-source monitoring on an Ubuntu 16.04 Xenial Xerus server.

Install Prometheus on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Nginx web server.

The first thing we must do is install NGINX on the system:

sudo apt-get install nginx
sudo systemctl start nginx
sudo systemctl enable nginx

Step 3. Installing Prometheus.

Prometheus has a Debian Package. To do this, import the package key into our machine:

GET https://s3-eu-west-1.amazonaws.com/deb.robustperception.io/41EFC99D.gpg | apt-key add -

Next, we’re ready to install all required packages in your system:

apt-get update
apt-get install prometheus prometheus-node-exporter prometheus-pushgateway prometheus-alertmanager

Once installed, you can confirm that the app is running by using this command:

service prometheus start
service prometheus status

Step 4. Accessing Prometheus.

Prometheus will be available on HTTP port 9090 by default. Open your favorite browser and navigate to http://yourdomain.com:9090 or http://server-ip:9090 and complete the required the steps to finish the installation.

prometheus-web-interface

Congratulation’s! You have successfully installed Prometheus. Thanks for using this tutorial for installing Prometheus open-source monitoring on your Ubuntu 16.04 LTS. For additional help or useful information, we recommend you to check the official Prometheus web site.

How To Install Angry IP Scanner on ubuntu 16.04 LTS

Install Angry IP Scanner on ubuntu 16

Angry IP Scanner is an open-source and cross-platform system scanner. It is very fast and simple to use platform that scans IP addresses and ports. TCP/IP(Angry IP) network scanner allows users to easily scan IP addresses within any range of your choice with a user friendly interface.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Angry IP Scanner on an Ubuntu 16.04 Xenial Xerus server.

Install Angry IP Scanner on ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gdebi

Step 2. Installing Angry IP Scanner.

Use the below commands to install Angry IP scanner on Linux Ubuntu:

wget http://github.com/angryziber/ipscan/releases/download/3.3.3/ipscan_3.3.3_amd64.deb

Next, the installation process by simply running the following command which triggers the installation:

gdebi ipscan_3.3.3_amd64.deb

Step 3. Accessing Angry IP Scanner.

Once the Angry IP Scanner installation is complete, You can launch the application straight from your Ubuntu dashboard. In the search field, you can type the application name and when the icon appears, you shall click on it to launch it.

Congratulation’s! You have successfully installed Angry IP Scanner. Thanks for using this tutorial for installing Angry IP Scanner on your Ubuntu 16.04 system. For additional help or useful information, we recommend you to check the official Angry IP Scanner web site.

How To Install Oracle Java on Ubuntu 17.10

Install Oracle Java on Ubuntu 17

Java is a programming language and computing platform. It was first released by Sun Microsystems in 1995. Many programs and scripts that require Java to run it, but usually Java are not installed by default on a VPS or Dedicated Server.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation JRE (Java Runtime Environment) and JDK (Java Development Kit) on Ubuntu 17.10 Artful Aardvark.

Install Oracle Java on Ubuntu 17.10 Artful Aardvark

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Oracle Java on Ubuntu 17.10.
Run the following commands to install the Oracle JDK by Oracle:

sudo apt-get update
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install java-common oracle-java8-installer

Please note that during the Java installation process, you will have to accept the Oracle License agreement in order to complete the installation.
Verify Installed Java version.

java -version

Result:

java version "1.8.1_74"
Java(TM) SE Runtime Environment (build 1.8.1_74-b02)
Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)

Congratulation’s! You have successfully installed Java. Thanks for using this tutorial for installing Oracle Java (JRE or JDK) on Ubuntu 17.10 Artful Aardvark system. For additional help or useful information, we recommend you to check the official Java web site.

How To Install Firefox Quantum on Ubuntu 16.04 LTS

Install Firefox Quantum on Ubuntu 16

In this tutorial we will show you how to install and configure Firefox Quantum on Ubuntu 16.04 LTS. Mozilla today released Firefox 57 a.k.a Firefox Quantum. According to a Completely overhauled heart along with a revamped layout, Firefox Quantum has been built from the ground up to deliver a quick browsing experience while swallowing a limited amount of resources. Mozilla is calling Quantum the biggest update to the browser since its original release in 2004.

The browser now also comes with a new CSS engine Named Stylo which Takes better advantage of today’s devices featuring multi-core Processors to deliver a faster and simpler browsing experience. Firefox Will automatically prioritize busy tabs over inactive ones for better resource management. Mozilla claims that its approach to multiple Processes is exceptional and different from that of Chrome.

This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Firefox Quantum web browser on a Ubuntu 16.04 (Xenial Xerus) server.

Install Firefox Quantum on Ubuntu 16.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Firefox Quantum.

First, add a repository for download Mozilla Firefox Quantum. Just follow this command:

sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt update
sudo apt upgrade
sudo apt install firefox

Once installed, open the Firefox Quantum from Ubuntu Dash.

Alternative Another Method:

cd /opt
sudo wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/57.0/linux-x86_64/en-US/firefox-57.0.tar.bz2
sudo tar xfj firefox-57.0.tar.bz2

Start Firefox 57 from the CLI:

/opt/firefox/firefox

In order to create a quick launch icon in your desktop applications menu, issue the following commands in terminal:

cd /usr/share/applications/
sudo cp firefox.desktop firefox-quantum.desktop

Congratulation’s! You have successfully installed Firefox Quantum. Thanks for using this tutorial for installing Firefox Quantum web browser on Ubuntu 16.04 LTS (Xenial Xerus) system. For additional help or useful information, we recommend you to check the official Firefox web site.