Blogger news

Home » » cara menginstal web server

cara menginstal web server

Written By Unknown on Senin, 03 Agustus 2009 | 17.36


Melanjutkan dari artikel yang sebelumnya Install Web Server Di Fedora 6 Part1 yang membahas cara menginstal MySQL 5.0.51 dan di artikel Instal Web Server Di Fedora Part2 ini aku akan membuat tutorial bagaimana cara untuk mengaktifkan & menginstall Apache 2.2.8 beserta tool pendukungnya dan di lanjutkan dengan konfigurasi & install PHP 5.2.5 di linux fedora 6. Selamat ngoprek linux kamu.INSTALASI APACHE 2.2.8Sekarang masuklah di direktori Source Apache 2.2.8[root@yustian src]#cd /usr/src/httpd-2.2.8Konfigurasi dan kompilasi Source Apache.[root@yustian httpd-2.2.8]#./configure –prefix=/webserver/apache \>–with-apxs2=/webserver/apache/bin/apxs \>–with-mysql=/webserver/mysql \>–enable-mods-shared=all \>–enable-so \>–enable-rewrite \>–enable-headers \>–enable-mime \>–enable-auth-digest[root@yustian httpd-2.2.8]#make[root@yustian httpd-2.2.8]#make installAgar apache-nya berjalan pada saat start-up masuk pada file rc.local.[root@yustian httpd-2.2.8]#vi /etc/rc.localTambahkan perintah /webserver/apache/bin/apachectl start dalam file rc.local kemudian simpanlah dengan perintah :wq.Sebaiknya apache nya belum dijalankan dulu yah.Sekarang kamu menginstal Source PHP-nyaINSTALASI PHP 5.25Sekarang masuklah di direktori Source PHP 5.25[root@yustian src]#cd /usr/src/php-5.2.5Konfigurasi dan kompilasi Source PHP-nya.[root@yustian php-5.2.5]#./configure –prefix=/webserver/php \>–with-apxs2=/webserver/apache/bin/apxs \>–with-mysql=/webserver/mysql \>–with-mysqli=/webserver/mysql/bin/mysql_config \>–with-sqlite \>–enable-sqlite-utf8 \>–with-zlib \>–with-zlib-dir \>–with-bz2 \>–with-gd \>–enable-gd \>–enable-gd-native-ttf \>–with-ttf \>–enable-track-vars \>–with-config-file-path=/webserver/apache/conf \>–enable-mbstring[root@yustian php-5.2.5]#make[root@yustian php-5.2.5]#make installSelanjutnya agar file php dapat dijalankan silahkan edit file httpd.conf-nya.[root@yustian php-5.2.5]#vi /webserver/conf/httpd.confLalu tambahkan perintah dibawah ini dan simpan.DirectoryIndex index.html index.htm index.phpAddType application/x-httpd-php .phpAddType application/x-httpd-php-source .phpsJika ingin menentukan letak dari dokumen web kamu silahkan edit tag berikut.DocumentRoot “Letak file dan dokumen home page Web server”Sekarang jalankan Apache-nya.[root@yustian php-5.2.5]#/webserver/apache/bin/apachectl startSelanjutnya Cek apakah apache sudah jalan apa belum![root@yustian php-5.2.5]#telnet localhost 80Trying 127.0.0.1…Connected to localhost.localdomain (127.0.0.1).Escape character is ‘^]’.HEAD GET [Enter 2x] dan mucul keterangannyaTahap berikutnya testing , dengan membuat file index.php di /webserver/htdocs/ yang isi-nya:Hapus file index.html di /webserver/htdocs dan buka browser kamu ketik di URL http://yustian.web.id/jaringan/ maka akan tampil seperti gambar dibawah ini. Sampai disini kamu telah membuat Webserver
Share this article :

0 komentar:

Posting Komentar

Template information

Website counter


 
Support : Your Link | Your Link | Your Link
Copyright © 2013. Langkah - Langkah Sederhana NEWBIE - All Rights Reserved
Template Created by Creating Website Modified by CaraGampang.Com
Proudly powered by Blogger