# MySQL 4.0.13 Install==========================================================
cd /root/src
tar xvzf mysql-4.0.13.tar.gz
cd /root/src/mysql-4.0.13
./configure --prefix=/usr/local/mysql --with-charset=euc_kr
make
make install
cd /usr/local/mysql
./bin/mysql_install_db
adduser mysql
cd /usr/local
chown -R root.mysql /usr/local/mysql/
chown -R mysql.mysql /usr/local/mysql/var/
cd /usr/local/mysql
./bin/mysqld_safe --language=korean &
echo "# MySQL Start" >> /etc/rc.d/rc.local
echo "/usr/local/mysql/bin/mysqld_safe --language=korean &" >> /etc/rc.d/rc.local
#================================================================================
#
# FreeType Install===============================================================
cd /root/src
tar xvzf freetype-2.1.3.tar.gz
mv freetype-2.1.3 /usr/local/freetype
cd /usr/local/freetype
./configure --prefix=/usr/local/freetype
make install
#================================================================================
#
# LibPNG Install=================================================================
cd /root/src
tar xvzf libpng-1.2.5.tar.gz
mv libpng-1.2.5 /usr/local/libpng
cd /usr/local/libpng/scripts
cp makefile.std ../makefile
cd /usr/local/libpng
make test
make install
#================================================================================
#
# GD Install=====================================================================
cd /root/src
tar xvzf gd-2.0.11.tar.gz
mv gd-2.0.11 /usr/local/gd
cd /usr/local/gd
./configure --prefix=/usr/local/gd
        --with-freetype=/usr/local/freetype
        --with-libpng=/usr/local/libpng
make install
#================================================================================
#
# Zlib Install===================================================================
cd /root/src
tar xvzf zlib-1.1.4.tar.gz
mv zlib-1.1.4 /usr/local/zlib
cd /usr/local/zlib
./configure --prefix=/usr/local/zlib
make install
#================================================================================
# Apache 1.3.28 & PHP 4.3.2 Install==============================================
cd /root/src
tar xvzf apache_1.3.28.tar.gz
cd apache_1.3.28
./configure --prefix=/usr/local/httpd
        --enable-rule=SHARED_CORE
        --enable-module=so
#
# PHP 4.3.2 Install
cd /root/src
tar xvzf php-4.3.2.tar.gz
mv /root/src/php-4.3.2 /usr/local/php
cd /usr/local/php
./configure --with-apache=/root/src/apache_1.3.28
        --with-mysql=/usr/local/mysql
        --with-gd=/usr/local/gd  
        --with-freetype-dir=/usr/local/freetype
        --with-zlib=/usr/local/zlib
        --enable-track-vars
make
make install
cp /usr/local/php/php.ini-dist /usr/local/lib/php.ini
#
# Apache 1.3.28 Install
cd /root/src/apache_1.3.28
./configure --prefix=/usr/local/httpd
        --activate-module=src/modules/php4/libphp4.a
        --enable-rule=SHARED_CORE
        --enable-module=so
make
make install
cd /root/src
/usr/local/httpd/bin/apachectl start
echo "# Apache Start" >> /etc/rc.d/rc.local
echo "/home/httpd/bin/apachectl start" >> /etc/rc.d/rc.local
#
# PHP Test file Create
echo "" >> /usr/local/httpd/htdocs/test.php
#================================================================================
#
# Zend Install===================================================================
cd /root/src
tar xvzf zend.tar.gz
cd ZendOptimizer-2.0.3-Linux_glibc21-i386/data/4_3_0_comp
mkdir /usr/local/Zend
mkdir /usr/local/Zend/lib
cp ZendOptimizer.so /usr/local/Zend/lib
echo "zend_optimizer.optimization_level=1" >> /usr/local/lib/php.ini
echo 'zend_extension="/usr/local/Zend/lib/ZendOptimizer.so"' >> /usr/local/lib/php.ini
/usr/local/httpd/bin/apachectl restart
#================================================================================
리눅스  |  05/03/07 16:44

'LINUX(리눅스)' 카테고리의 다른 글

리눅스 시간 동기화  (0) 2008.10.14
리눅스 한글 깨질때...[디폴트언어 변경]  (0) 2008.10.14
SSH 최신버전으로 설치하자.  (0) 2008.10.14
아파치 버텰호스티 설정  (0) 2008.10.14
DNS 셋팅 -레드햇 9.0-  (0) 2008.10.14
|

샹콤홍쓰's Blog is powered by Daum & tistory