1. 개요
APM source 설치
Apache : 2.2.24 / PHP : 5.2.16 / MYSQL : 5.1.69
– httpd 2.2.24
– php 5.2.16
– mysql 5.1.69
yum install expat-devel ncurses ncurses-devel openssl-devel libxml2-devel curl-devel gdbm-devel libc-client-devel krb5-devel libjpeg-devel bzip2-devel openssl-devel libpng-devel freetype-devel ncurses-devel libc-client-devel gdbm-devel pcre-devel gcc enchant-devel libXpm-devel libicu-devel openldap-devel readline-devel libtidy libtidy-devel libxslt-devel
yum install gcc gcc-c++ cmake
yum install pcre-devel lua-devel libxml2-devel ncurses-devel zlib zlib-devel curl openssl openssl-devel libtermcap-devel libc-client-devel bison gcc g++ cpp gcc-c++ freetype freetype-devel freetype-utils gd gd-devel libjpeg libjpeg-devel libpng libpng-devel curl-devel flex php-mbstring libexif-devel cmake bzip2-devel make libmcrypt libmcrypt-devel libtool gdbm-devel cmake
* 모든 소스는 /usr/local/src 하단에 받아 설치.
======================= MYSQL =======================
1. 소스 다운로드 파일 압축 풀기 및 이동
cd /usr/local/src
tar zxvf mysql-5.1.69.tar.gz
echo ‘/* Linuxthreads */’ >> /usr/include/pthread.h
cd mysql-5.1.69
./configure –prefix=/usr/local/mysql –with-extra-charsets=all –localstatedir=/data/
./configure –prefix=/usr/local/mysql –with-charset=euckr –with-extra-charsets=all –localstatedir=/data
make
make install
useradd -s /bin/bash mysql
/usr/local/mysql/bin/mysql_install_db
chown -R mysql.mysql /data
echo “/usr/local/mysql/lib/mysql” >> /etc/id.so.conf && ldconfig
echo “PATH=$PATH:/usr/local/mysql/bin:/usr/local/apache/bin:/usr/local/php/bin” >> /etc/profile && source /etc/profile