Setting WEB SERVER
1. Cek httpd
# rpm –qa | grep httpd
2. Restart apache (httpd)
# service httpd restart# /etc/init.d/httpd restart
3. Lihat port 80
# netstat –tan | grep 8
4. Buka Browser
http://localhosthttp://127.0.0.1
5. Konfigurasi Apache
Bukalah file httpd.conf pd file # vi /etc/httpd/conf/httpd.conf
1. Aktifkan Servername
Server Name new.host.name : 80
# service httpd restart (restart ulang) 2. Web Hostinga. Konfigurasi pd Document Root
- Buka kembali file # vi /etc/httpd/conf/httpd.conf
- Cari data DocumentsRoot “/var/www/html”- Masuk ke dir # cd /var/www/html
- #vi index.html
- Restart Apache
- Buka Browser http://localhost
# cd /var/www/hml
# mkdir keu; #cd keu; # vi index.html
# mkdir sdm; #cd sdm; # vi index.html
# mkdir /var/web
* Buka file httpd.conf
* ————————
# DocumentRoot “/var/www/html”
DocumentRoot “/var/web”
* —————————–
* buat file pd /var/web
#cd /var/web
#vi index.html
*Restart Apache
*Buka Browser http://localhost
Pendukung :
# vi /etc/httpd/http.conf letak html
# /var/www/html
Direktori PHP
# /etc/php.ini
mysqld
a. UserDir
Buka httpd.conf, cari UserDir
#User Dir disable
UserDir Public_html
* Beri ijin akses pd home directory
# chmod 755 /home/wanda
#su wanda
#cd
#ls
#mkdir public_html
#cd Public_html
#vi index.html
b. VirtualHost
Buka httpd.conf
Cari
* ——————————
#Name Virtual Host
ganti
Name Virtual Host 192.168.0.
<Virtual Host 192.168.0. >
Server Admin root@localhost
DocumentRoot /home/wanda
Server name www.hotelbumiwiyata.oke
</Virtual Host>
* —————————————–
*Restart Apache
* Buka Browser http://www.hotelbumiwiyata.oke
3. Directory Index
Index.html index.php main.html
Pendelegasian pada server
$TTL 86400
$ORIGIN oke.
@ IN SOA ns.oke. root (
-
-
-
@ IN NS ns.oke.
@ IN MX 10 mail.oye.oke
ns IN A 19.168.0.113
melati IN NS ns.melati.oye
ns.melati IN A 192.168.0.118
mawar IN NS ns.mawar.oye
ns.melati IN A 192.168.0.119
sakura IN NS ns.melati.oye
ns.melati IN A 192.168.0.120
1 Comment »
Leave a comment
-
Archives
- November 2008 (5)
- October 2008 (2)
- August 2008 (1)
- February 2008 (4)
- January 2008 (1)
- July 2007 (19)
-
Categories
-
RSS
Entries RSS
Comments RSS

kalo mau setting biar web-nya online dijam-jam tertemtu caranya gimana? misal online cuma dari jam 11.00 – 14.00, jam 18.30 – 19.00 caranya gimana..??