#!/bin/bash #----------------------------------- # MySQL + PHP + Apache Installer #----------------------------------- # Root Directory ROOT_DIR=`pwd`/ # Source Directory MYSQL_DIR="mysql-5.0.51" HTTPD_DIR="httpd-2.2.6" PHP_DIR="php-5.2.5" # Install Directory MYSQL_INSTALL_DIR="/usr/local/mysql-5.0.51" HTTPD_INSTALL_DIR="/usr/local/httpd-2.2.6" PHP_INSTALL_DIR="/usr/local/php-5.2.5" echo started... #----------------------------------- # MySQL Install #----------------------------------- cd ${ROOT_DIR}${MYSQL_DIR} ./configure --prefix=${MYSQL_INSTALL_DIR} --with-charset=utf8 --with-extra-charsets=all --with-mysqld-user=mysql make make install #----------------------------------- # Apache Install #----------------------------------- cd ${ROOT_DIR}${HTTPD_DIR} ./configure --prefix=${HTTPD_INSTALL_DIR} make make install #----------------------------------- # PHP Install #----------------------------------- cd ${ROOT_DIR}${PHP_DIR} ./configure --prefix=${PHP_INSTALL_DIR} --with-apxs2=${HTTPD_INSTALL_DIR}/bin/apxs --enable-mbstring --enable-mbregex --enable-zend-multibyte --with-mysql=${MYSQL_INSTALL_DIR} make make install echo done.