CentOS 7, 최신버전 APM(Apache+PHP+MySQL) 소스설치 및 Openssl 설치하기
1. CentOS 7 설치
2. MySQL 소스설치(5.7.13)
3. Openssl 소스설치(1.0.2h)
4. 아파치(Apache) 소스설치(2.4.23)
5. PHP 소스설치(5.6.24)
6. APM+OpenSSL 연동하기
아파치 홈페이지에서 소스파일 다운로드, 설치
[root@divweb7 src]# tar xvzf httpd-2.4.23.tar.gz
[root@divweb7 src]# cd httpd-2.2.21
[root@divweb7 httpd-2.4.23]# ./configure --prefix=/usr/local/apache --enable-module=so --enable-mods-shared=ssl --with-ssl=/usr/local/ssl --enable-ssl=shared --enable-rewrite
checking for APR... no
configure: error: APR not found. Please read the documentation.
* 아파치 2.4 이상에서는 apr, apr-util이 없기 때문에 별도 설치해야 함
1) apr 설치
[root@divweb7 src]# wget http://mirror.apache-kr.org/apr/apr-1.5.2.tar.gz
-- 압축해제 후, ./configure 시 아래와 같은 에러 발생
rm: cannot remove 'libtoolT': No such file or directory
xml 오류, xml 관련 lib 설치
[root@divweb7 apr-1.5.2]# yum -y install libxml*
[root@divweb7 apr-1.5.2]# ./configure
계속 오류가 발생 아래와 같이 실행한다
cp -arp libtool libtoolT
[root@divweb7 apr-1.5.2]# ./configure
[root@divweb7 apr-1.5.2]# make && make install
2) apr-util 설치
[root@divweb7 src]# wget http://mirror.apache-kr.org/apr/apr-util-1.5.4.tar.gz
[root@divweb7 apr-util-1.5.4]# ./configure --with-apr=/usr/local/apr
[root@divweb7 apr-util-1.5.4]# make && make install
아파치 ./configure 시, pcre 오류
checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is required and available from http://pcre.org/
3) pcre 설치
[root@divweb7 src]# yum -y install bzip2*
[root@divweb7 src]# tar xjvf pcre-8.33.tar.bz2
[root@divweb7 src]# cd pcre-8.33
[root@divweb7 pcre-8.33]# ./configure
[root@divweb7 pcre-8.33]# make && make install
* apr, apr-util, pcre 설치 후, 아파치 configure -> make -> make install 실행
[root@divweb7 httpd-2.4.23]# ./configure --prefix=/usr/local/apache --enable-module=so --enable-mods-shared=ssl --with-ssl=/usr/local/ssl --enable-ssl=shared --enable-rewrite
[root@divweb7 httpd-2.4.23]# make
[root@divweb7 httpd-2.4.23]# make install

