Skip to content

CHICPRO

  • Life Log
  • Cycling Log
  • Photo Log
    • Portrait
    • Landscape
    • Flower
    • Etc
  • Coding Log
  • Information

Apache 2.4.6 + PHP 5.4.17 + MySQL 5.5.32 설치

2013-08-21 by 편리

이 블로그가 운영되고 있넌 서버의 CentOS 5.9에 Apache 2.2.25 PHP 5.4.17 MySQL 5.5.32 소스 컴파일 설치를 진행했다. 소스 파일은 각각 아래 사이트에서 다운로드했다.

http://mirror.apache-kr.org/httpd/
http://php.net/downloads.php
ftp://ftp.sayclub.co.kr/mysql/Downloads
http://apr.apache.org/download.cgi
ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

Apache 2.4.6 설치를 위해 apr, apr-util, pcre 소스 파일을 다운로드해야한다.

0. 설치에 필요한 패키지 설치


# yum install cmake.x86_64
# yum install ncurses-devel.x86_64
# yum install gd-devel.x86_64
# yum install libxml2-devel.x86_64
# yum install curl-devel.x86_64
# yum install gdbm-devel.x86_64
# yum install libXpm-devel.x86_64
# yum install libmcrypt-devel.x86_64
# yum install pcre-devel.x86_64

서버에 설치된 CentOS 5.9가 64비트 버전이라 yum 으로 패키지를 64비트 버전으로 설치한다.

1. MySQL 5.5.32 설치


# cd /root/src
# tar xvfz mysql-5.5.32.tar.gz
# cd mysql-5.5.32
# cmake -DCMAKE_INSTALL_PREFIX=/home/mysql -DMYSQL_DATADIR=/home/mysql/data -DWITH_INNOBASE_STORAGE_ENGINE=1 -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DENABLED_LOCAL_INFILE=1 -DWITH_EXTRA_CHARSETS=all
# make; make install

2. Apache 2.4.6 설치


# tar xvfz httpd-2.4.6.tar.gz
# tar xvfz apr-1.4.8.tar.gz
# tar xvfz apr-util-1.5.2.tar.gz
# tar xvfz pcre-8.33.tar.gz
# mv apr-1.4.8/ httpd-2.4.6/srclib/apr
# mv apr-util-1.5.2/ httpd-2.4.6/srclib/apr-util/
# mv pcre-8.33/ httpd-2.4.6/srclib/pcre
# cd httpd-2.4.6
# ./configure --prefix=/home/apache --enable-mpms-shared=all --enable-headers=shared --enable-rewrite=shared --enable-mods-shared=most --with-ssl --enable-ssl --with-included-apr --with-included-pcre
# make; make install

3. PHP 5.4.17 설치


# tar xvfz php-5.4.17.tar.gz
# cd php-5.4.17
# ./configure --with-mysql=/home/mysql --with-mysqli=mysqlnd --with-apxs2=/home/apache/bin/apxs --with-gd --with-curl --with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr --with-zlib --with-zlib-dir=/usr --with-gdbm --with-gettext --with-iconv --with-openssl --enable-gd-native-ttf --enable-exif --enable-magic-quotes --enable-sockets --enable-soap --enable-mbstring=all --enable-bcmath --with-libxml-dir=/usr/lib --enable-ftp --with-mcrypt
# make; make install

 

아래는 이렇게 설치한 결과물.. 지난 밤에 새로 설치했는데 낮에 또 설치.. 왜 이러는지 모르겠다.

apm-version-130720-1

 Apache mpm 설정을 여러가지로 해보려고 이렇게 설치를 했는데 언제 테스트를 할지는 확실치 않다.

Post navigation

Previous Post:

유무선공유기 ZIO-9500GD 펌웨어 V1.0.9

Next Post:

Apache mod_deflate 압축 전송 체크

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • php 배열 연산에서 + 와 array_merge 의 차이
  • pcntl_fork 를 이용한 다중 프로세스 실행
  • 아이폰 단축어를 이용하여 주중 공휴일엔 알람 울리지 않게 하기
  • 구글 캘린더 전체일정 재동기화
  • OpenLiteSpeed 웹서버에 HTTP 인증 적용
  • OpenLiteSpeed 웹어드민 도메인 연결
  • WireGuard를 이용한 VPN 환경 구축
  • Ubuntu 22.04 서버에 OpenLiteSpeed 웹서버 세팅
  • 맥 vim 세팅
  • 우분투 시스템 터미널쉘 zsh 로 변경

Recent Comments

  • 편리 on 업무관리용 그누보드 게시판 스킨
  • 임종섭 on 업무관리용 그누보드 게시판 스킨
  • 캐논 5D 펌웨어 | Dslr 펌웨어 업그레이드 방법 82 개의 베스트 답변 on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • Top 5 캐논 5D 펌웨어 Top 89 Best Answers on 캐논 EOS 30D 펌웨어 Ver 1.0.6 , EOS 5D 펌웨어 Ver 1.1.1
  • 편리 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 임팀장 on 워드프레스 애니메이션 gif 파일을 mp4로 변환하여 출력하기
  • 편리 on Notepad++ NppFTP 플러그인 수동 설치
  • paul-j on Notepad++ NppFTP 플러그인 수동 설치
  • YS on Windows 10 iCloud 사진 저장 폴더 변경
  • 편리 on Docker를 이용한 Centos7 + httpd + php 5.4 개발환경 구축

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
© 2025 CHICPRO | Built using WordPress and SuperbThemes