I wrote what i feel today.. but not everyday

kEtikA TuHan MembEri CoBAan kePada KIta, JanGaNlah menGeluh. KarEnA seSungguhnya Ia SedaNG mEmBENtuk KitA.JanGanlAh liHaT dAri CaRa MemBEntUknya, taPi lihatlah BetApA IndAhnyA Ia MeMbenTuk KiTa.

Wednesday, September 28, 2005

installasi webserver



# Instalasi Apache - Mysql - PHP - PostgreSQL # --

Untar Packet
-----------------
tar -zxvf apache_1.3.33.tar.gz
tar -zxvf mysql-4.1.10a.tar.gz
tar -zxvf zlib-1.2.1.tar.gz
tar -zxvf php-4.3.11.tar.gz
tar -zxvf libpng-1.2.5.tar.gz
tar -zxvf gd-2.0.22.tar.gz
tar -zxvf postgresql-7.4.2.tar.gz

Instalasi MySQL :
-----------------------
cd mysql-4.1.10a/
./configure --prefix=/usr/local/mysql --localstatedir=/var/lib/mysql --with-unix-socket-path=/var/lib/mysql/mysql.sock
make
make install
/usr/local/mysql/bin/mysql_install_db
chown -R mysql:mysql /usr/local/mysql/
cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/
chmod a+x /usr/local/mysql/share/mysql/mysql.server
chown -R mysql:mysql /var/lib/mysql/*

Instalasi Apache
----------------------
cd ../apache_1.3.33/
./configure --prefix=/usr/local/apache --enable-module=so --enable-module=log_agent --enable-module=log_referer --enable-module=proxy --enable-module=rewrite --enable-module=speling --enable-module=usertrack --enable-module=vhost_alias
make
make install

Instalasi Library
----------------------
cd ../libpng-1.2.5
cp scripts/makefile.linux makefile
make
make install
cd ../zlib-1.2.1
./configure
make
make install
cd ../gd-2.0.22
./configure
make
make install

Instalasi PHP
------------------
cd ../php-4.3.11
./configure --with-apxs=/usr/local/apache/bin/apxs --enable-versioning --with-mysql=/usr/local/mysql --enable-track-vars --with-gd --with-zlib --with-mime-magic --enable-dbase
make
make install
cp php.ini-dist /usr/local/lib/php.ini
echo AddType application/x-httpd-php .php >> /usr/local/apache/conf/httpd.conf
echo AddType application/x-httpd-php-source .phps >> /usr/local/apache/conf/httpd.conf

Add MySQL dan Apache in startup
---------------------------------------------
echo /etc/rc.d/init.d/mysql.server start >> /etc/rc.local
echo /usr/local/apache/bin/apachectl start >> /etc/rc.local

Startup Program
----------------------
/etc/rc.d/init.d/mysql.server start
/usr/local/apache/bin/apachectl start

Instalasi server postgre
--------------------------------
/usr/sbin/adduser postgres -d /usr/local/pgsql/
./configure --prefix=/usr/local/pgsql
make
make install

Configurasi apache
--------------------------
vi /usr/local/apache/conf/httpd.conf

writen by cronjoe

0 Comments:

Post a Comment

<< Home