1. 최신 패키지로 업데이트
# yum update -y
2. SELINUX 비활성화
# vi /etc/selinux/config
disabled
3. 서버 로케일 변경
# vi /etc/locale.conf
#LANG="ko_KR.UTF-8"
LANG="ko_KR.euckr"
4. 기본 패키지 설치 1
# yum install -y epel-release
5. 기본 패키지 설치 2
# yum install -y vim-enhanced net-tools psmisc wget git ntsysv unzip gcc gcc-c++ pcre-devel libxml2-devel libcurl-devel libjpeg* libpng* freetype* ImageMagick netpbm* libtool openssl openssl-devel libmcrypt libmcrypt-devel cmake ncurses-devel libtirpc gcc* libcurl jpeginfo curl curl-devel nfs-utils rpcbind rsync libnsl
6. 기본 패키지 설치 3
# yum groupinstall -y "Development tools"
7. firewalld 비활성화
# systemctl stop firewalld
# systemctl disable firewalld
8. apr 1.5.2 설치
# cd /usr/local
# wget https://archive.apache.org/dist/apr/apr-1.5.2.tar.gz
# tar zxvf apr-1.5.2.tar.gz
# cd apr-1.5.2
# ./configure --prefix=/usr/local/apr
# cp libtool libtoolT
# ./configure --prefix=/usr/local/apr
# make -j 4
# make install
9. apr-util 1.5.4 설치
# cd /usr/local
# wget https://archive.apache.org/dist/apr/apr-util-1.5.4.tar.gz
# tar zxvf apr-util-1.5.4.tar.gz
# cd apr-util-1.5.4
# ./configure --with-apr=/usr/local/apr
# make -j 4
# make install
10. pcre 설치
# cd /usr/local
# wget http://sourceforge.net/projects/pcre/files/pcre/8.36/pcre-8.36.tar.gz
# tar zxvf pcre-8.36.tar.gz
# cd pcre-8.36
# ./configure
# make -j 4
# make install
11. openssl 0.9.8 설치
# cd /usr/local
# wget https://github.com/openssl/openssl/releases/download/OpenSSL_0_9_8zh/openssl-0.9.8zh.tar.gz
# tar zxvf openssl-0.9.8zh.tar.gz
# cd openssl-0.9.8zh
# ./config --prefix=/usr/local/openssl shared
# make -j 4
# make install
12. apache 2.4.16 설치
# cd /usr/local
# wget https://archive.apache.org/dist/httpd/httpd-2.4.16.tar.gz
# tar zxvf httpd-2.4.16.tar.gz
# cd httpd-2.4.16
# ./configure --prefix=/usr/local/apache --with-apr=/usr/local/apr --enable-so --with-ssl=/usr/local/openssl --enable-ssl --enable-rewrite --with-pcre
# make -j 4
# make install
13. oracle client 10.2.0.5 설치
# cd /usr/local
# wget ${DOWNLOAD_ADDRESS}/oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm
# wget ${DOWNLOAD_ADDRESS}/oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm
# wget ${DOWNLOAD_ADDRESS}/oracle-instantclient-sqlplus-10.2.0.5-1.x86_64.rpm
# rpm -Uvh oracle-instantclient-basic-10.2.0.5-1.x86_64.rpm
# rpm -Uvh oracle-instantclient-devel-10.2.0.5-1.x86_64.rpm
# rpm -Uvh oracle-instantclient-sqlplus-10.2.0.5-1.x86_64.rpm
14. php 5.3.29 설치
# cd /usr/local
# wget https://www.php.net/distributions/php-5.3.29.tar.gz
# tar zxvf php-5.3.29.tar.gz
# cd php-5.3.29
# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-oci8=instantclient,/usr/lib/oracle/10.2.0.5/client64/lib --with-config-file-path=/usr/local/apache/conf --disable-debug --enable-sigchild --enable-ftp --with-gd --with-png-dir --with-zlib-dir --with-ttf --with-freetype-dir --with-jpeg-dir --enable-exif --with-curl --with-iconv --enable-mbstring --with-openssl=/usr/local/openssl
# make -j 4
# make install
15. apache, php 연동
# vi /usr/local/apche/conf/httpd.conf
AddType application/x-httpd-php .php .html .htm .inc
AddType application/x-httpd-php-source .phps
DirectoryIndex index.html index.php
*기타 설정은 생략