Cara Install apache di Linux

Untuk hari ini... saya akan memberi tahu anda bagaimana caranya menginstall apache di Lingkungan Unix/Linux..
Kebetulan di sini saya menggunakan salah satu distro Linux yakni Slackware
Langsung saja kita mulai, pertama download dulu apache di http://httpd.apache.org
Disini saya menggunakan httpd versi terbaru, yakni httpd.2.0.11.tar.gz

root@satelite@server:~# cd /usr/local/
root@satelite@server:/usr/local# cd src/
root@satelite@server:/usr/local/src# ls
httpd-2.2.10.tar.gz
root@satelite@server:/usr/local/src# tar zxf httpd-2.2.10.tar.gz == > ekstrak file .tar.gz

setelah itu akan muncul hasil ekstrakkannya...

root@satelite@server:/usr/local/src# ls
httpd-2.2.10.tar.gz httpd-2.2.10/

Lalu masuklah ke dalam direktori httpd-2.2.10

root@satelite@server: cd /usr/local/src/httpd-2.2.10

root@satelite@server:/usr/local/src/httpd-2.2.10# ls
ABOUT_APACHE LAYOUT README buildconf* configure.in include/ server/
Apache.dsw LICENSE README.platforms buildmark.o docs/ libhttpd.dsp srclib/
BuildAll.dsp Makefile ROADMAP config.layout emacs-style modules/ support/
BuildBin.dsp Makefile.in VERSIONING config.log httpd* modules.c test/
CHANGES Makefile.win acinclude.m4 config.nice* httpd-2.2.10.tar.gz modules.lo
INSTALL NOTICE apachenw.mcp.zip config.status* httpd.dsp modules.o
InstallBin.dsp NWGNUmakefile build/ configure* httpd.spec os/

root@satelite@server:/usr/local/src/httpd-2.2.10# ./configure --prefix=/usr/local/apache ; make all ; make install ==>> syntax untuk menkonfigurasi ,mengompile, menginstall, dan menempatkan dalam sebuah direktori

setelah itu kita jalankan saja web server / apache kita

root@satelite@server:/usr/local/src/httpd-2.2.10# cd /usr/local/apache/

root@satelite@server:/usr/local/apache# ls
bin/ build/ cgi-bin/ conf/ error/ htdocs/ icons/ include/ lib/ logs/ man/ manual/ modules/

root@satelite@server:/usr/local/apache# cd bin/

root@satelite@server:/usr/local/apache/bin# ls
ab* apr-1-config* apxs* dbmmanage* envvars-std htdbm* htpasswd* httxt2dbm* rotatelogs*
apachectl* apu-1-config* checkgid* envvars htcacheclean* htdigest* httpd* logresolve*

root@satelite@server:/usr/local/apache/bin#./httpd ==> jalankan apache

nah untuk setting startup untuk apache kita adalah terlebih dahulu kita masuk ke dalam direktori /etc/rc.d/

root@satelite@server:cd /etc/rc.d/

root@satelite@server:joe rc.local

lalu kita ketik di dalam file rc.local tersebut seperti ini :

/usr/local/apache/bin/httpd

lalu kita save dan reboot... Maka apache kita sudah jalan secara otomatis, dimana letak localhost kita terletak di direktori /usr/local/apache/htdocs

#Selesai#

5 komentar:

alfrina mengatakan...

peramax !!

ferdi_jagoan@satelite mengatakan...

peramax itu apa ya ... ?? hehehehe :D

alfrina mengatakan...
Komentar ini telah dihapus oleh pengarang.
alfrina mengatakan...

pertamax itu yg dijual di pom bensin ...

huu .. katrok !!

:p

ahmadfathihadi mengatakan...

fer, cara instal apache di windows gimana ?, ko nga ada tutorialnya si !
apa jangan2 di linux nga bisa next next trus finish yah ?