php 설치 스크립트

web 2007. 12. 4. 20:19

 #!/bin/csh

set WWW_HOME="/home/www"
set SRC_HOME="${WWW_HOME}/src"
set SCRIPT_HOME="${WWW_HOME}/script"
set PHP_VERSION="5.1.0"
set APACHE_HOME="/usr/local/apache2"
set MYSQL = "$1"

wget http://xmlsoft.org/sources/libxml2-2.6.13-1.i386.rpm
wget http://xmlsoft.org/sources/libxml2-devel-2.6.13-1.i386.rpm
wget http://xmlsoft.org/sources/libxml2-python-2.6.13-1.i386.rpm

rpm -Uvh ./libxml2-*

echo ">> Install PHP ${PHP_VERSION}"
cd ${SRC_HOME}
\rm -rf php-${PHP_VERSION}
tar zxf php-${PHP_VERSION}.tar.gz
cd php-${PHP_VERSION}
chmod 755 configure
./configure --prefix=/usr/local/php --with-regex=php --with-apxs2=/usr/local/apache/bin/apxs --with-exec-dir=/usr/local/apache/bin --with-config-file-path=/usr/local/apache/conf --with-language=korea --with-charset=euc_kr --enable-track-vars=yes --enable-ftp  --with-zlib --with-gd
make
sleep 1
make install

Posted by 김용환 '김용환'

댓글을 달아 주세요