Installation Installation of Apache Web Server
Installation of Apache Web Server
Install through yum:
[root@localhost ~]# yum -y install httpd mod_sslor
[root@localhost ~]# yum -y update httpd mod_ssl
Install through apt-get:
[root@localhost ~]# apt-get install apache2Configuration:
If your Apache web server configuration directory is not /etc/httpd/, then it is necessary to copy /stats/vpnttg/etc/vpnttg.conf file to the appropriate folder.
For example in Debian or Ubuntu Linux distribution Apache web server configuration directory is /etc/apache2/
[root@localhost ~]# cp /stats/vpnttg/etc/vpnttg.conf /etc/apache2/sites-available/vpnttg.confInitialization:
[root@localhost ~]# chkconfig httpd onor
[root@localhost ~]# systemctl enable httpdor
[root@localhost ~]# a2enmod ssl [root@localhost ~]# a2ensite default-ssl [root@localhost ~]# a2enmod rewrite [root@localhost ~]# a2enmod cgi [root@localhost ~]# a2ensite vpnttg.conf
Restart the web server:
[root@localhost ~]# service httpd restartor
[root@localhost ~]# systemctl restart httpdor
[root@localhost ~]# service apache2 reload