How To Install Apache On Ubuntu Server 18.04
How to Install Apache 2 on Ubuntu 18.04
Posted on by
Justin Palmer | Updated:
Apache is the nigh pop spider web server software in use today. Its popularity is earned through its stability, speed, and security. Most likely if yous are edifice out a website or any public facing app, you lot'll be using Apache to brandish it. At the time of this writing, the most electric current offering of Apache is 2.iv.39, and information technology is the version nosotros will be using to install on our Ubuntu VPS server. Allow'south get started!
Footstep ane: Update and Upgrade the apt tool to ensure we are working with the latest and greatest.
sudo apt update && upgrade
Step ii: Install Apache and select Y when prompted.
sudo apt install apache2
Pace three: Now that we have installed Apache we have to first the service.
systemctl commencement apache2
Pace 4:Enabling Apache will automatically get-go the spider web server whenever the server is turned on.
systemctl enable apache2
Verify Apache by visiting the server's IP or hostname; you lot'll see Apache'due south default page.
Optional: Install and Enable PHP
Depending on your needs, say a website that has PHP code, you may likewise want to install and enable PHP.
apt install php libapache2-mod-php php-mysql
Spoiler warning, Ubuntu 18.04'south default is PHP is 7.two, the latest and greatest. You'll see this value reflected when using:
php --version
Output:
PHP 7.ii.15-0ubuntu0.xviii.04.2 (cli) (built: Mar 22 2022 17:05:14) ( NTS )
Copyright (c) 1997-2018 The PHP Grouping
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.two.15-0ubuntu0.eighteen.04.2, Copyright (c) 1999-2018, by Zend Technologies
Where Is Apache's Configuration Files?
So, what'south next? As stated earlier, Apache can exist a prerequisite for other applications or, information technology may be where you lot serve your website(southward) from. Some important files are located on Apache's default page; Here is a pocket-sized snippet of those file locations:
There are multiple ways to set up Apache to specifically meet your needs. Equally a Liquid Web client, you'll enjoy the 24/vii/365 support forth with knowledgeable technicians at your fingertips to reply any questions you may accept! Check out what we can exercise for you!
About the Author: Justin Palmer
Justin Palmer is a professional application developer with Liquid Web
Our Sales and Support teams are available 24 hours by phone or e-mail service to assist.
i.800.580.4985
1.517.322.0434
Source: https://www.liquidweb.com/kb/install-apache-2-ubuntu-18-04/
Posted by: campbellthisil.blogspot.com
0 Response to "How To Install Apache On Ubuntu Server 18.04"
Post a Comment