Setup Web Server

Written by

in

,

Install Apache2

Install Apache2 web server.

$ sudo apt install apache2
$ sudo systemctl start apache2
$ sudo systemctl enable apache2

Configure Firewall

$ sudo ufw http

Check the configuration

Visit

http://192.168.10.108

from a Web browser. The IP address should be modified to yours.

Enable User Directory

$ sudo a2enmod userdir

Make User Directory

$ mkdir /home/user/public_html
$ chmod o+rw /home/user/public_html

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *