Contents
When you have an account available, log in as your non-root user to begin.
- Step 1: Install Apache.
- Step 2: Adjust the Firewall.
- Step 3: Check your Web Server.
- Step 4: Manage the Apache Process.
- Step 5: Get Familiar with Important Apache Files and Directories.
How do I install and configure Apache Web server on Ubuntu?
How To Install the Apache Web Server on Ubuntu 18.04 [Quickstart]
- Step 1 — Installing Apache. Apache is available within Ubuntu’s default software repositories, so you can install it using conventional package management tools.
- Step 2 — Adjusting the Firewall. Check the available ufw application profiles:
- Step 3 — Checking your Web Server.
- Step 4 — Setting Up Virtual Hosts (Recommended)
How do I start Apache server on Linux?
systemctl command
- Start apache command: $ sudo systemctl start apache2.service.
- stop apache command : $ sudo systemctl stop apache2.service.
- restart apache command: $ sudo systemctl restart apache2.service.
- apache2ctl command can be used to stop or start apache web server under any Linux distribution or UNIX.