Professional Documents
Culture Documents
Starting
ting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2006
2006-07-29
29 16:13 WIT
Interesting ports on localhost (127.0.0.1):
(The 1653 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
37/tcp open time
113/tcp open auth
587/tcp open submission
6000/tcp open X11
ow, ternyata service httpd belom berjalan. So mari kita mulai. apache terletak di direktori
/etc/apache terus edit file httpd.conf
root@c1c4x_lab:~# cd /etc/apache
root@c1c4x_lab:/etc/apache# pico httpd.conf
Untuk mengaktifkan modul PHP, agar apache bisa mengeksekusi .php maka aktifkan baris
Include /etc/apache/mod_php.conf dengan menghapus tanda # (pagar), biasanya terletak di
bawah sendiri. Kalo pengen apache--nya
nya mendukung SSL (Secure Socket Layer), maka aktifkan
juga modul SSL-nya.
Jalankan servicenya:
Lho koq denied? Oh iya lupa, file permissionnya belom execute. Kalo gak percaya mari kita lihat
dan buktikan Pergi ke drektori /etc/rc.d
root@c1c4x_lab:~# cd /etc/rc.d
root@c1c4x_lab:/etc/rc.d# ls -al rc.httpd
-rw-r--r-- 1 root root 401 2003
2003-03-06 04:28 rc.httpd
Tuh kan, permissionnya masih default yaitu 6644,
44, so perlu diganti dulu permissionnya.
root@c1c4x_lab:/etc/rc.d#
tc/rc.d# /etc/rc.d/rc.httpd start
/usr/sbin/apachectl start: httpd started
root@c1c4x_lab:/etc/rc.d# nmap -sS localhost
Direktori htdocs, secara default terletak di /var/www/htdocs.. Direktory bisa diubah dengan
melakukan edit di httpd.conf
Sekarang kita cek di browser, apakah service telah berjalan dengan baik. Dan apakah web server
telah mendukung php. Bwat file phpin
phpinfo.php,
fo.php, untuk menguji apakah web server bisa
menjalankan .php
http://localhost == telah berjalan dengan semestinya