Instalasi dan Konfigurasi Web Server Apache 2.4 di Linux CentOS 7.
1. INSTALLATION
yum -y install httpd
rm -f /etc/httpd/conf.d/welcome.conf
vi /etc/httpd/conf/httpd.conf
line 86: ubah email admin
ServerAdmin [email protected]
line 95: ubah nama server
ServerName www.local.kkt:80
line 151: ubah option untuk .htaccess
AllowOverride All
line 164: tambahkan extensi cgi dan php untuk file index
DirectoryIndex index.html index.cgi index.php
add tambahkan baris berikut di baris terakhir
ServerTokens Prod
KeepAlive On
2. START SERVICE
systemctl start httpd
systemctl enable httpd
3. ENABLE FIREWALL
firewall-cmd --add-service=http --permanent
firewall-cmd --reload