Thursday, August 28, 2025

Installation of Apache Web Server

Install through apt:

[root@localhost ~]# apt update
[root@localhost ~]# apt upgrade
[root@localhost ~]# apt install apache2
Configuration:
[root@localhost ~]# /sbin/a2enmod ssl
[root@localhost ~]# /sbin/a2enmod rewrite
[root@localhost ~]# /sbin/a2enmod cgi
[root@localhost ~]# /sbin/a2ensite default-ssl
[root@localhost ~]# /sbin/a2ensite vpnttg.conf
Enable and restart the web server:
[root@localhost ~]# systemctl enable apache2
[root@localhost ~]# systemctl restart apache2