Install WEB Server pada Centos 6.4
[root@hilmi ~]# yum install -y httpd
atau Install full Web Server
[root@hilmi ~]# yum groupinstall -y "WEB Server"
Setting httpd.conf
[root@hilmi ~]# vi /etc/httpd/conf/httpd.conf
# line 44: change
ServerTokens Prod
# line 76: change to ON
KeepAlive On
# line 262: Admin's address
ServerAdmin root@hilmi.net
# line 276: change to your server's name
ServerName www.hilmi.net:80
# line 338: change
AllowOverride All
# line 402: add file name that it can access only with directory's name
DirectoryIndex index.html index.htm
# line 536: change
ServerSignature Off
# line 759: make it comment
#AddDefaultCharset UTF-8
Starting httpd: [ OK ]
[root@hilmi ~]# chkconfig httpd on
Bila kita inging hapus laman page bawaan apache Centos kita bisa ketikan perintah berikut ini :
# remove welcome page
[root@hilmi~]# rm -f /etc/httpd/conf.d/welcome.conf
# remove default error page
[root@hilmi~]# rm -f /var/www/error/noindex.htmlby : Muhammad Hilmi Ahadiat
0 Response to " Setting dasar Apache pada Centos 6.4 "
Post a Comment
Silahkan untuk berkomentar apabila ada yang tidak dimengerti!!
Tapi tetap jaga kesopanan.