Apache Web server is one of the popular webservers to host your websites in an easy way. Our team will guide you to install Apache2 in Ubuntu 19.04 Disco Dingo with simple 7 steps. Before proceeding, we need to create new Droplet or Instances in your cloud console.

This method of installing Apache in Ubuntu 19.04 is a common installation in cloud service providers like Digital Ocean, Amazon, Linode, Google Cloud, and Etc. Once created your Droplet/Instance, log as a root user using Putty software.

Follow below-mentioned steps in your Ubuntu command prompt

Step 1: Update and install packages in ubuntu server : sudo apt-get update

Step 2: Upgrade the packages using the dist-upgrade command: sudo apt-get dist-upgrade

Step 3: Allowing UFW firewall with OpenSSH: sudo ufw allow OpenSSH

Step 4: Enable ufw firewall in Ubuntu: sudo ufw enable

Step 5: Once enabled, check the status of UFW firewall status: sudo ufw status

Step 6: Installing the Nginx Web Server on Ubuntu 19.04: sudo apt install apache2

Step 7: To allow HTTPS traffic, we need to allow Nginx Full profile using below command and check Ufw status: sudo ufw allow in “Apache Full”

Step 8: Apache installation is properly done, check your server ip address: http://server_ip_address

Once you complete installing Apache2 in Ubuntu 19.04 server, install PHP, MySql and PhpMyadmin packages to run your PHP based website script from WordPress or custom scripts.