Install web server in my FreeBSD


freebsd

core# uname -a

FreeBSD core.lukis.or.id 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Thu Feb 23 12:13:07 WIT 2006 petrix@core.lukis.or.id:/usr/obj/usr/src/sys/PETRIX i386

1. perl5.8

cd /usr/ports/lang/perl5.8

make

make install

make clean

rehash

2. MYSQL

/cd /usr/ports/database/mysql41-server

make

make install

make clean

rehash

trus masukin mysql_enable=”YES” di /etc/rc.conf

/usr/local/etc/rc.d/mysql-server.sh start

pkg_info | grep mysql

mysql-client-4.1.11_1 Multithreaded SQL database (client)

mysql-server-4.1.11_1 Multithreaded SQL database (server)

chmod +x /usr/local/etc/rc.d/mysql-server.sh

hmod +x /usr/local/etc/rc.d/mysql-server.sh <—jalanin buat supaya bisa exsekusi

CREATE DATABASE lukisganteng;

3. APACHE

cd /usr/ports/www/apache13

make instal clean

edit ee /usr/local/etc/rc.d/apache.sh

apache_enable=${apache_enable-“YES”}

apache_flags=${apache_flags-“”}

apache_pidfile=${apache_pidfile-“/var/run/httpd.pid”} di YES in

save dan jalankan apachenya

/usr/local/etc/rc.d/apache.sh start

4. MOD_PERL

cd /usr/ports/www/mod_perl

make instal clean

perl = bahasa pemograman

5. MOD_PHP

cd /usr/ports/www/mod_php4

make all install clean

/usr/ports/lang/php4-extensions

make install

nstall module2x php

ns# pkg_info |grep php4

mod_php4-4.3.11_1,1 PHP Apache Module

php4-calendar-4.3.11_1 The calendar shared extension for php

php4-cgi-4.3.11_1 PHP Common Gateway Interface

php4-curl-4.3.11_1 The curl shared extension for php

php4-dbase-4.3.11_1 The dbase shared extension for php

php4-gd-4.3.11_1 The gd shared extension for php

php4-imap-4.3.11_1 The imap shared extension for php

php4-mcrypt-4.3.11_1 The mcrypt shared extension for php

php4-mysql-4.3.11_1 The mysql shared extension for php

php4-openssl-4.3.11_1 The openssl shared extension for php

php4-overload-4.3.11_1 The overload shared extension for php

php4-pcre-4.3.11_1 The pcre shared extension for php — ini diperlukan untuk squirell

php4-posix-4.3.11_1 The posix shared extension for php

php4-session-4.3.11_1 The session shared extension for php

php4-sockets-4.3.11_1 The sockets shared extension for php

php4-tokenizer-4.3.11_1 The tokenizer shared extension for php

php4-zlib-4.3.11_1 The zlib shared extension for php

php-gettext

FINISH

setelah selesai coba edit di ee /home/petrix/public_html/test.php

tulis :

<?php

phpinfo();

?>

save

semoga bermanfaat🙂

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: