Once you’ve entered your password, apt will tell you which packages it plans to install and how much extra disk space they’ll take up. It will ask you for your regular user’s password to verify your intentions. Since we are using a sudo command, these operations get executed with root privileges.
You can learn more about how to use apt here.įor our purposes, we can get started by typing these commands: A package manager allows us to install most software pain-free from a repository maintained by Ubuntu. We can install Apache easily using Ubuntu’s package manager, apt. It’s well-documented, and has been in wide use for much of the history of the web, which makes it a great default choice for hosting a website. The Apache web server is among the most popular web servers in the world. Step 1 - Installing Apache and Adjusting the Firewall You can learn how to do this by completing steps 1–4 in our initial server setup for Ubuntu 16.04 tutorial. Prerequisitesīefore you begin with this guide, you should have a separate, non- root user account with sudo privileges set up on your server.
Ubuntu will fulfill our first requirement: a Linux operating system. In this guide, we’ll get a LAMP stack installed on an Ubuntu 16.04 server.
The site data is stored in a MySQL database, and dynamic content is processed by PHP.
This term is an acronym which represents the Linux operating system, with the Apache web server. The LAMP stack is a set of open source software that is typically installed together to enable a server to host dynamic websites and web apps.