Download Games dan software Gratis Zulmi's Blog: Buat Web Server Pada Slackware Download Games dan software Gratis

Minggu, 12 Desember 2010

Buat Web Server Pada Slackware

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 Slackware
  2. Pastikan DNS Server sudah siap digunakan
  3. Setting file resolv.conf

# nano /etc/resolv.conf

search zulmi.net

nameserver 192.168.30.1

  1. install paket httpd/apache,php4,mysql

# installpkg httpd-2.2.14-i486-1sms.txz

  1. konfigurasi httpd.conf

# nano /etc/httpd/httpd.conf

# Virtual hosts

#Include /etc/httpd/extra/httpd-vhosts.conf รจhilangkan tanda #

  1. konfigurasi httpd-vhosts.conf

# nano /etc/httpd/extra/httpd-vhosts.conf

NameVirtualHost 192.168.30.1

192.168.30.1>

DocumentRoot /srv/httpd/htdocs

ServerName www.zulmi.net

  1. buat file index.php pada directory /srv/httpd/htdocs

# nano /srv/httpd/htdocs/index.php

phpinfo();

?>

  1. hidupkan service httpd

# /etc/rc.d/rc.httpd restart

  1. cek pada client

Tidak ada komentar:

Posting Komentar