Instalasi Apache bermodul php dan mysql
by: Winarno Sugeng <[email protected] >
Intinya :
//////////////////////////////////////////////////////////////////////////////
1. Install Apache <
apache_1.3.4.tar.gz
>
a) Ekstark file pada /usr/local
% gunzip < apache_1.3.4.tar.gz | tar xvf -
b) Tahapan Instalasi
% cd apache_1.3.4
% ./configure --prefix=/usr/local/apache
% make
% make install
c) Start Apache pertama
d) Untuk selanjutnya dapat dibuat script agar di load mesin pada saat awal% /usr/local/apache/bin/apachectl start
2. Install MySQL <
mysql-3.22.22.tar.gz
>
a) Ekstark file pada /usr/local
% gunzip < mysql-3.22.22.tar.gz | tar xvf -
b) Tahapan Instalasi
% cd mysql-3.22.22
% ./configure --prefix=/usr/local/mysql
% make
% make install
% scripts/mysql_install_db
c) Start mysql pertama
% /usr/local/mysql/bin/safe_mysqld &
d) Untuk selanjutnya dapat dibuat script agar di load mesin pada
saat awal
3. Install PHP <
php-4.2.2.tar.gz
>
a) Ekstark file /usr/local
% gunzip < php-4.2.2.tar.gz | tar xvf -
b) Tapahan Instalasi php ( dengan apache dan mysql)
% cd php-4.2.2
% ./configure --with-apache=/usr/local/apache_1.3.4 --with-mysql=/usr/local/mysql
% make
% make install
c) Tapahan Instalasi apache bermodul php
% cd ../apache_1.3.4
% ./configure --prefix=/usr/local/apache
--activate-module=src/modules/php4/libphp4.a
% make
% make install
% edit httpd.conf untuk mengaktifkan file .phtml & .phps dan menambahkan index.phtml pada Directory Index
DirectoryIndex index.htm index.html index.phtml
% /usr/local/apache/bin/apachectl stop
% /usr/local/apache/bin/apachectl start
//////////////////////////////////////////////////////////////////////////////