# written by HENRY SAPTONO
# henry@henry.openware.or.id
# Depok, Margonda 21-11-2002
INSTALL APACHE
------------------
# Lakukan extraksi soruce apache-1-3-27
tar - xzvf apache_1_3_27.tar.gz
# pindah ke direktori apache_1_3_27
cd apache_1_3_27
#configure apache dengan mensupport dinamic share object
# hal ini dilakukan agar semua modul bersifat dinamic bukan bulit-in di apachenya
# sehingga apache lebih ramping tidak gendut modul terpasang
./configure --prefix=/opt/apache_1_3_27 --enable-module=all --enable-shared=max
#Lalu kompilasi dan install apache
make
make install
#Selesai silakan dicoba dengan cara aktifkan apache dan test sbb:
lynx localhost
SPECIAL NOTES :
should you need to add includes dir and pass it to Makefile,
just update src/apaci and add this line :
echo "-I/usr/blah/bleh/include"
INSTALL PHP4
------------------
# Lakukan extraksi source php-4_2_3.tar.gz
tar -xzvf php-4_2_3.tar.gz
# pindah ke direktori php-4_2_3
cd php-4_2_3
#configure php dengan mengenable mysql dan pgsql
./configure --prefix=/opt/php-4_2_3 --with-apxs=/opt/apache_1_3_27/bin/apxs --with-pgsql=shared --with-mysql=shared --enable-track-vars --enable-force-cgi-redirect --with-gettext
#Lalu kompilasi dan install php
make
make install
KONFIGURASI httpd.conf
-----------------------
#Karena apache baru belum disentuh file konfigurasinya, maka belum dapat mensuport eksekusi file php
# Untuk itu lakukan langkah-langkah berikut agar apache dapat mensupport php
# Edit file konfigurasi httpd.conf
vi /opt/apache_1_3_27/conf/httpd.conf
#Pastikan LoadModule php4_module tidak di pager( Uncomment )
LoadModule php4_module libexec/libphp4.so
#Pastikan AddModule mod_php4.c tidak di pager( Uncomment )
AddModule mod_php4.c
# Tambahkan/modifikasi directive DirectoryIndex sbb:
DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi
# Tambahkan/modifikasi directive AddType sbb:
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
KONFIGURASI php.ini
------------------------
# Pada saat awal install PHP file php.ini masih dgn konfigurasi standar
# Sehingga mungkin perlu di edit beberapa directive pada file php.ini
# Misal belum mengenable mysql dan pgsql
# Lakukan langkah2x sbb:
# copy file konfigurasi php.ini (biasanya dari php versi lama ada di /etc tetapi jika tidak ada biasanya
# php versi baru kita menyertakan file php.ini di direktori source phpnya yaitu
#/opt/php-4.2.3/php.ini-dist) ke direktori /opt/php-4_2_3/lib
# Pastikan directive extension_dir
# Directory in which the loadable extensions (modules) reside.
extension_dir = /opt/php-4_2_3/lib/php/extensions
# Pastikan directive extension pgsql.so dan mysql.so tidak di pager (Uncomment )
extension=pgsql.so
extension=mysql.so
### Nah sekarang coba lah buat file phpinfo() dan cobalah eksekusi ###########