| minggu |
Senin |
Selasa |
Rabu |
Kamis |
Jum`at |
Sabtu |
|
| 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 10 | 11 | 12 | | 13 | 14 | 15 | 16 | 17 | 18 | 19 | | 20 | 21 | 22 | 23 | 24 | 25 | 26 | | 27 | 28 | 29 | 30 | 31 | |
|
Komentar Pengunjung>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INSTALASI APACHE v1.3.12:
1. Download Apache v1.3.12 dari sini: http://www.pangsit.com/files/apache_1.3.12.tar.gz, dan copy-kan ke /usr/local/download
2. Ketikkan perintah-perintah berikut ini:
tar xzf apache_1.3.12.tar.gz -C ../etc
cd ../etc
ln -s apache_1.3.12 httpd
mkdir /www
cd /www
mkdir conf logs servers
cd /usr/local/etc/httpd
./configure --prefix=/usr/local/etc/httpd --sysconfdir=/www/conf
make
make install
killall httpd
cd bin
./apachectl start
3. Selamat, Apache sudah terpasang!
Untuk membuktikannya, silahkan ketikkan http://[ip_address_server_linux] di browser
4. Tapi masih ada satu lagi yg perlu dikerjakan, yaitu men-set agar Apache dijalankan secara automatis setiap kali server Linux kita dihidupkan. Caranya adalah:
cd /etc/rc.d/init.d/
mv httpd httpd.bak
pico httpd
5. Kemudian, copy baris-baris berikut ini:
#!/bin/sh
# Startup script for the Apache Web Server
# processname: httpd
# pidfile: /usr/local/etc/httpd/logs/httpd.pid
# config: /www/conf/access.conf
# config: /www/conf/httpd.conf
# config: /www/conf/srm.conf
# the location of the file that will be used to record the process
<# id of the running apache server
PIDFILE=/usr/local/etc/httpd/logs/httpd.pid
# the location of the apache daemon binary
BINFILE=/usr/local/etc/httpd/bin/httpd
# Source function library.
. /etc/rc.d/init.d/functions
# See how we were called.
case $1 in
start)
echo -n Starting httpd:
daemon $BINFILE
echo
touch /var/lock/subsys/httpd
;;
stop)
echo -n Shutting down http:
[ -f $PIDFILE ] && {
kill `cat $PIDFILE`
echo -n httpd
}
echo
rm -f /var/lock/subsys/httpd
rm -f $PIDFILE
;;
status)
status $BINFILE
;;
restart)
$0 stop
$0 start
;;
reload)
echo -n Reloading httpd:
[ -f $PIDFILE ] && {
kill -HUP `cat $PIDFILE`
vecho -n httpd
}
echo
;;
*)
echo Usage: $0 {start|stop|restart|reload|status}
vexit 1
esac
exit 0
6. File tsb perlu di-set attribut security-nya agar bisa di eksekusi, dengan mengikuti langkah2 berikut ini:
cd /etc/rc.d/init.d
chmod 755 httpd
7. Selesai !
Instalasi gagal? Tidak berjalan?
Pastikan lagi bahwa semua perintah diatas sudah diketikkan persis apa adanya, termasuk huruf besar dan kecilnya. 95% kesalahan adalah krn kesalahan mengetik, termasuk besar/kecilnya huruf.
|
Back |
|