Feeds:
Pos
Komentar

Archive for the ‘Instalasi WebServer’ Category

installasi WebServer (Apache, PHP, MySQL) di FreeBSDTulisan ini di buat karena temen2x saya ingin meng-install webserver di mesin FreeBSD dengan Apache, PHP dan MySQL mengalami banyak kendala. Oleh karena itu saya memberikan sedikit tulisan mengenai installasi webserver di mesin FreeBSD. di sini penulis menggunakan mesin FreeBSD 5.4-RELEASE

okey… Langsung aja kita mulai :

A. Apache
#wget http://apache.cbn.net.id/httpd/httpd-2.0.53.tar.gz
#tar -zxvf httpd-2.0.53.tar.gz
#cd httpd-2.0.53
#./configure –prefix=/var/www –enable-module=so
#make
#make install
#/var/www/bin/apachectl start
#echo “/var/www/bin/apachectl start” >> /etc/rc.local
– Folder index = /var/www/htdocs/

B. MySQL
#pw useradd mysql
#wget http://ftp.yars.free.net/pub/software/unix/util/database/mysql/mysql-4.1.11.tar.gz
#tar zxvf mysql-4.1.11.tar.gz
#cd mysql-4.1.11
#./configure –prefix=/usr/local/mysql
#make
#make install
#cd /usr/local/mysql
#mkdir var
#/usr/local/mysql/bin/mysql_install_db
#chown -R mysql:mysql /usr/local/mysql/var/
#/usr/local/mysql/bin/mysqld_safe &
#echo “/usr/local/mysql/bin/mysqld_safe &” >> /etc/rc.local
C. PHP :
#wget http://id.php.net/get/php-5.0.3.tar.gz/from/this/mirror
#tar -zxvf php-5.0.3.tar.gz
#cd cd php-5.0.3
#./configure –with-apxs2=/var/www/bin/apxs –with-mysql=/usr/local/mysql –enable-debug=no –enable-track-vars –with-zlib –with-xml –enable-force-cgi-redirect –with-bz2 –enable-gd-native-ttf –with-iconv –with-openssl –with-png –with-imap-ssl –enable-calendar –with-gettext=/usr/local/share/gettext –with-freetype-dir=/usr –with-png-dir=/usr –with-gd –enable-gd-native-ttf –without-gdbm –with-jpeg-dir=/usr –with-png
#make
#- make install
NB : apabila ada masalah dengan configure PHP

Anda lakukan langkah : D,E,F,G
baru anda ulangi configure PHP

D. libxml2 :
#wget http://xmlsoft.org/sources/libxml2-2.6.18.tar.gz
#cd libxml2-2.6.18
#./configure
#make
#make install

E. libiconv
#wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.9.1.tar.gz
#cd libiconv-1.9.1
#./configure
#make
#make install
F. ld-elf.so.1
#cd /usr/ports/sysutils/libchk
#make
#make install

G. gd
#cd /usr/ports/graphics/gd
#make
#make install

Packet tambahan :
1. nmap = port scanning
#cd /usr/ports/security/nmap
#make
#make install
2. php.ini
#cp php.ini-dist /usr/local/lib/php.ini
3. gettext
#wget http://ftp.gnu.org/pub/gnu/gettext/gettext-0.14.5.tar.gz
#./configure

# make

#make install

supaya webserver kita support terhadap php maka tambahkan baris berikut ini di httpd.conf
———————-httpd.conf——————–
AddType application/x-httpd-php .php
AddType application/x-httpd-phps .phps

——————————————————–
semoga tulisan ini dapat membantu temen2x……

Read Full Post »