Download Games dan software Gratis Zulmi's Blog: Setting Web Server Pada Fedora Core 7 Download Games dan software Gratis

Minggu, 12 Desember 2010

Setting Web Server Pada Fedora Core 7

Ketentuan

Server:

IP ADDRESS 192.168.30.1

NETMSK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

Client:

IP ADDRESS 192.168.30.10

NETMASK 255.255.255.0 (/24)

GATEWAY 192.168.30.254

DNS 192.168.30.1

  1. Siapkan PC yang sudah terinstall system operasi Fedora Core 7
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# vi /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket httpd,php5,mysql

# yum -y httpd-2.0.40-21.rpm

  1. konfigurasi httpd.conf

# vi /etc/httpd/conf/httpd.conf

DirectoryIndex index.php index.html index.html.var

192.168.30.1>

DocumentRoot /var/www/html

ServerName www.zulmi.net

  1. buat file index.php pada directory /var/www/html

# vi /var/www/html/index.php

<?

phpinfo();

?>

  1. hidupkan service httpd

# service httpd start

  1. cek pada client


  1. jika muncul tampilan php info seperti gambar diatas maka web server sudah bisa digunakan

Tidak ada komentar:

Posting Komentar