본문 바로가기
Server&OS/Linux

CentOS 에서 APM 설치 방법

by 백룡화검 2010. 4. 24.

CentOS 에서 APM 설치 방법

# 아파치 설치
wget http://ftp.kaist.ac.kr/pub/Apache/httpd/httpd-2.2.4.tar.gz
zcat httpd-2.2.4.tar.gz | tar xvf -
cd httpd-2.2.4
CFLAGS=" -DHARD_SERVER_LIMIT=1024 -DDEFAULT_SERVER_LIMIT=1024 -DHARD_SERVER_LIMIT=1024 -DDEFAULT_SERVER_LIMIT=1024"; export CFLAGS
"./configure" \
"--prefix=/usr/local/apache2" \
"--enable-expires" \
"--enable-rewrite" \
"--enable-mods-shared=most" \
"--enable-module=so" \
"--with-included-apr" \
"$@"

make  ; make install

#mysql 설치
wget http://dev.mysql.com/get/Downloads/MySQL-5.0/mysql-5.0.37.tar.gz/from/http://mysql.new21.com/
zcat mysql-5.0.37.tar.gz | tar xvf -
cd mysql-5.0.37

CFLAGS="-O3 -mpentiumpro" CXX=gcc CXXFLAGS="-O3 -mpentiumpro \
 -felide-constructors -fno-exceptions -fno-rtti" ./configure \
 --prefix=/usr/local/mysql-5.0.37 --localstatedir=/usr/local/mysql-5.0.37/var \
 --enable-assembler \
 --with-mysql-user=mysql --without-debug \
 --with-charset=utf8 --with-extra-charsets=all \
 --disable-shared --with-mysqld-ldflags=-all-static

make ; make install

# php 설치를 위한 라이브러리
yum install flex
yum install openssl*
yum install libxml2-devel

# libjpeg 설치
wget http://ftp.superuser.co.kr/pub/etc/jpegsrc.v6b.tar.gz
zcat jpegsrc.v6b.tar.gz | tar xvf -
cd jpeg-6b
./configure --enable-shared --enable-static
mkdir /usr/local/man ; mkdir /usr/local/man/man1/
make ; make test ; make install ; make install-lib ; make install-headers

#libpng 설치
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.18.tar.gz
zcat libpng-1.2.18.tar.gz | tar xvf -
cd libpng-1.2.18
cp scripts/makefile.linux makefile
make test ; make install

#freetype2 설치
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.3.2.tar.gz
zcat freetype-2.3.2.tar.gz | tar xvf -
cd freetype-2.3.2
./configure ; make ; make install

#libiconv 설치
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.11.tar.gz
zcat libiconv-1.11.tar.gz | tar xvf -
cd libiconv-1.11
./configure --prefix=/usr/local
make ; make install
ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

#mcrypt 설치
wget http://heanet.dl.sourceforge.net/mcrypt/libmcrypt-2.5.8.tar.gz
zcat libmcrypt-2.5.8.tar.gz | tar xvf -
cd libmcrypt-2.5.8
./configure
make ; make check ; make install

#Zend 설치
wget http://titi.entermate.com/package/ZendOptimizer-3.2.4-linux-glibc21-i386.tar.gz
zcat ZendOptimizer-3.2.4-linux-glibc21-i386.tar.gz | tar xvf -
cd ZendOptimizer-3.2.4-linux-glibc21-i386
install.sh

# Apache Config
httpd.conf

// 아래를 추가
   # And for PHP 5.x, use:
    AddType application/x-httpd-php .php .php3
    AddType application/x-httpd-php-source .phps

// 주석제거
  # AddHandler cgi-script .cgi

'Server&OS > Linux' 카테고리의 다른 글

[본문스크랩] 치킨의 단짝~ 치킨무..  (0) 2010.04.24
html에서 PHP 인식 시키기  (0) 2010.04.24
centos 5 설정  (0) 2010.04.24
중국 IP막기  (0) 2010.04.24
[CentOS] DNS 네임서버 설정 (BIND 9)  (0) 2010.04.24