[go: up one dir, main page]

0% found this document useful (0 votes)
26 views1 page

Lpi Lpic202450 2 1 1 Installing The Apache Web Server

LInux lpi-lpic202450-2-1-1-installing-the-apache-web-server

Uploaded by

rico rodrigo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Lpi Lpic202450 2 1 1 Installing The Apache Web Server

LInux lpi-lpic202450-2-1-1-installing-the-apache-web-server

Uploaded by

rico rodrigo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Installing the Apache Web Server

LPIC-2: Linux Engineer (202-450)


Objectives:
At the end of this episode, I will be able to:
1. Describe the purpose and function of the Apache web server.
2. Install and configure the Apache web server on Ubuntu Linux.
Apache
The world's most popular web server
Frequently used with NginX
Serves up HTML content
Provides encrypted connections
Supports other features through a module system
PHP
CGI Gateway
Authentication
Installing Apache
Package name
httpd - RHEL-based distros
apache2 - Debian-based distros
Installing
sudo apt install apache2

Starting Apache
sudo systemctl enable --now apache2
sudo ufw allow http

Verifying Apache
Browse to http://<servername>
systemctl status apache2

Modifying the Apache configuration


Global config
sudoedit /etc/apache2/apache2.conf
Server name
ServerName "10.0.222.51"

Site config
sudoedit /etc/apache2/sites-available/000-default.conf
Content location
DocumentRoot "/var/www/html"

Default index files


DirectoryIndex index.html index.php

Checking your configuration


apachectl configtest

You might also like