[웹서버] apm source 설치

아래 내용은 여러 문서들을 참고하고, 또한 제가 직접 설치해본 경험을 토대로 간략하게

설치 과정을 메모한것입니다. 혹시 APM등에 GD 설치등때문에 골치 아프신 분들은 참고하세

요..^^

다음엔 초보자를 대상으로 자세한 설명을 곁들인 문서를 올리도록 하겠습니다.

1. RPM을 지운다  (다음중 자신에게 설치된 항목만 지우면됩니다. )

우선 apache, mysql, php 관련 RPM을 모두 삭제한후.. 다음 항목을 참고하여.. 삭제합니다

.

shell>rpm -qa|grep apache

shell>rpm -qa|grep mysql // 본 문서에는 mysql 설치 부분은 생략했습니다. 이미 설치된

rpm을 이용하셔도 됩니다.^^

shell>rpm -qa|grep php // 이상의 명령을 통해 자신의 서버에 설치된 항목들을 알수 있음

.

rpm -e –nodeps zlib

rpm -e –nodeps zlib-devel

rpm -e –nodeps curl

rpm -e –nodeps curl-devel

rpm -e –nodeps freetype

rpm -e –nodeps freetype-devel

rpm -e –nodeps freetype-utils

rpm -e –nodeps gd

rpm -e –nodeps gd-devel

rpm -e –nodeps libjpeg

rpm -e –nodeps libjpeg-devel

rpm -e –nodeps mm

rpm -e –nodeps mm-devel

rpm -e –nodeps libpng

rpm -e –nodeps libpng-devel

rpm -e –nodeps libjpegxx // xx 부분은 libjpeg의 버전임, 필자의 경우 6a

rpm -e –nodeps libjpegxx-devel // xx 부분은 libjpeg의 버전임

rpm -e –nodeps libjpegxx // xx 부분은 libjpeg의 버전임, 필자의 경우 6a

rpm -e –nodeps libungif

rpm -e –nodeps libungif-devel

rpm -e –nodeps libtiff

rpm -e –nodeps libtiff-devel

2. http://www.gzip.org/zlib/ 에서 zlib 을 다운 받는다.

3.

shell>tar -xvzf zlib-1.1.4.tar.gz

shell>mv zlib-1.1.4 zlib

shell>cd zlib

shell>./configure -s // libz.so 관련모듈생성

shell>make

shell>./configure // libz.a 생성

shell>make test

shell>make install

shell>cp libz.so* /usr/local/lib

shell>cd /usr/local/lib

shell>rm -rf libz.so

shell>rm -rf libz.so.1

shell>ln -s libz.so.1.1.4 libz.so

shell>ln -s libz.so.1.1.4 libz.so.1

shell>vi /etc/ld.so.conf

/usr/local/lib추가

shell>ldconfig 적용명령

4. http://curl.haxx.se/download.html 에서 curl 을 다운 받는다.

5. curl 설치

shell>tar -xvzf curl-7.10.3.tar.gz

shell>cd curl-7.10.3

shell>./configure

shell>make

shell>make install

※curl 라이브러리는 /usr/local/lib 나머지 헤더는/usr/local/include/curl 로 들어간다

6. http://mhash.sourceforge.net/dl 에서 mhash의 최신 버전을 다운 받는다.

7. mhash 설치

shell>tar -xvzf mhash-0.8.13.tar.gz

shell>cd mhash-0.8.13

shell>./configure

shell>make

shell>make install

8. ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/libmcrypt/  에서 libmcrypt의 최신 버전을

다운 받는다.

9. libmcrpyt 설치

shell>tar -xvzf libmcrypt-2.5.6.tar.gz

shell>cd libmcrypt-2.5.6

shell>./configure

shell>make

shell>make install

10. http://www.fastio.com 에서 clibpdf의 최신 버전을 다운 받는다.

11. clibpdf 설치

shell>tar xvzf clibpdf202r1.tar.gz

shell>cd ClibPDF

shell>cd source

shell>cp Makefile Makefile.orig

shell>cp Makefile.Linux Makefile

shell>make lib

shell>make install

12. http://www.opaque.net/ming/ 에서 ming의 최신 버전을 다운 받는다.

13. ming 설치

shell>tar -xvzf ming-0.2a.tgz

shell>cd ming-0.2a

shell>make

shell>make install

14. http://www.pdflib.com  에서 pdflib의 최신 버전을 다운 받는다.

15. pdflib 설치

shell>tar -xvzf pdflib-4.0.3.tar.gz

shell>cd pdflib-4.0.3

shell>./configure

shell>make

shell>make install

shell>vi /etc/ld.so.conf

/usr/lib/tcl8.3/pdflib 추가

shell>ldconfig

16. ftp://ftp.sgi.com/sgi/graphics/grafica/flash 에서 swf의 최신 버전을 다운 받는다.

17. swf 설치

shell>tar -xvzf dist.99.linux.tar.Z

shell>mkdir /usr/local/swf

shell>cd dist

shell>mkdir /usr/local/swf/include

shell>mkdir /usr/local/swf/lib

shell>mkdir /usr/local/swf/fonts

shell>mkdir /usr/local/swf/psfonts

shell>mkdir /usr/local/swf/bin

shell>cp swf.h /usr/local/swf/include

shell>cp libswf.a /usr/local/swf/lib

shell>cp bin/* /usr/local/swf/bin

shell>cp fonts/* /usr/local/swf/fonts

shell>cp psfonts/* /usr/local/swf/psfonts

18. http://www.engelschall.com/sw/mm/ 에서 mm의 최신 버전을 다운 받는다.

19. mm 설치

shell>tar -xvzf mm-1.2.2.tar.gz

shell>cd mm-1.2.2

shell>./configure –disable-shared

shell>make

shell>make install

20. http://www.libpng.org/pub/png/libpng.html 에서 libpng의 최신 버전을 다운 받는다.

21. libpng 설치

shell>tar -xvzf libpng-1.2.5.tar.gz

shell>cd libpng-1.2.5

shell>cp scripts/makefile.linux Makefile

shell>make test

shell>make install

22. http://freetype.sourceforge.net/ 에서 freetype 의 최신 버전을 다운 받는다.

23. freetype 설치

shell>tar -xvzf freetype-2.1.3.tar.gz

shell>cd freetype-2.1.3

shell>./configure

shell>make

shell>make install

24. ftp://ftp.uu.net/graphics/jpeg/ 에서 jpeg의 최신 버전을 다운 받는다.

25. jpeg 설치

shell>tar -xvzf jpegsrc.v6b.tar.gz

shell>cd jpeg-6b

shell>./configure –enable-shared –enable-static

shell>make

shell>make test

shell>make install

26. ftp://sunsite.unc.edu/pub/Linux/libs/graphics/ 에서 libungif를 다운 받는다

26. libungif 설치

shell>tar -xvzf libungif-4.1.0.tar.gz

shell>cd libungif-4.1.0

shell>./configure

shell>make

shell>make install

27. ftp://ftp.remotesensing.org/pub/libtiff/ 에서 libtiff의 최신 버전을 다운 받는다.

28. libtiff 설치

shell>tar -xvzf tiff-v3.5.7.tar.gz

shell>cd tiff-v3.5.7

shell>./configure

…중간에 설치하다 물어보면

yes한다

shell>make

shell>make install

29. ftp://sunsite.unc.edu/pub/Linux/libs/graphics/ 에서 t1lib을 다운 받는다.

30. t1lib 설치

shell>tar -xvzf t1lib-1.3.1.tar.gz

shell>cd t1lib-1.3.1

shell>./configure

configure finished!

Do:  ‘make’               to compile the t1lib-package.

Do:  ‘make without_doc’   to compile if you do not have LaTeX.

Do:  ‘make install’       to install the t1lib-package.

shell>make without_doc // 위의 내용그대로 필자는 LaTeX가 없기때문에 make하지 않고 make without_doc로 했습니다.

shell>make install

31. http://www.boutell.com/gd/http/ 에서 gd 2.0.7을 다운 받는다.

32. gd 설치

shell>tar xvzf gd-2.0.9.tar.gz

shell>cd gd-2.0.9

shell>./configure

만일 ttf(트루타입폰트 부분)에서 에러가 계속 발생한다면 Makefile에서 -lttf 제거하거나

rpm으로 ttf 패키지를 설치하면 됨.

shell>make

shell>make install

33. 아파치 설정

shell>./configure –prefix=/usr/local/apache

34. PHP 설정

35. PHP설치

shell>./configure \\

–with-apache=../apache_1.3.27 \\

–with-config-file-path=/usr/local/apache/conf \\

–with-mysql=/usr/local/mysql \\

–with-jpeg-dir=/usr/local/lib \\

–with-png-dir=/usr/local/lib \\

–with-gif-dir=/usr/local/lib \\

–with-zlib-dir=/usr/local/lib \\

–with-gd=/usr/local/gd \\

–with-freetype-dir=/usr/local/include/freetype2 \\

–with-zlib \\

–with-ming=/usr/lib \\

–with-tiff-dir=/usr/local/lib \\

–with-pdflib=/usr/local \\

–with-cpdflib \\

–with-openssl \\

–with-gettext \\

–with-kerberos \\

–with-swf=/usr/local/swf \\

–with-mm \\

–with-mhash=/usr/local/lib \\

–with-mcrypt=/usr/local/lib \\

–with-mod_charset \\

–with-language=korean \\

–with-charset=euc_kr \\

–with-regex=php \\

–with-curl \\

–with-ldap \\

–with-xml \\

–enable-gd-native-ttf \\

–enable-ftp \\

–enable-sockets \\

–disable-debug \\

–enable-sysvsem \\

–enable-sysvshm \\

–enable-shmop \\

–enable-track-vars \\

–enable-freetype-4bit-antialias-hack \\

–enable-calendar \\

–enable-sigchild \\

–enable-magic-quotes \\

–enable-trans-sid \\

–enable-inline-optimization \\

–enable-bcmath

shell>make

shell>make install

36. 아파치 설치

shell>./configure \\

–prefix=/usr/local/apache \\

–activate-module=src/modules/php4/libphp4.a \\

–enable-module=php4 \\

–enable-shared=max \\

–enable-rule=SHARED_CORE \\

–enable-module=so

shell>make

shell>make install

37. Zend Optimizer 설치

과거에는 php.ini 파일을 수정했으나 현재는 압축을 푼후 설치 스크립트를 이용해 바로 설

치가 가능하다.

38. 아파치 환경설정

shell>vi /usr/local/apache/conf/httpd.conf  //환경설정파일 편집

39. 부팅시 실행되게 설정

shell>cp -p /usr/local/apache/bin/apachectl /etc/rc.d/init.d/httpd

shell>cp -p /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld

shell>cd /etc/rc.d/rc3.d

shell>ln -s /etc/rc.d/init.d/httpd S85httpd

shell>ln -s /etc/rc.d/init.d/mysqld S97mysqld

shell>ntsysv 명령으로 mysql, httpd 활성화

기타사항 : 위 다운로드 사이트들은 모두 제가 직접 확인해보고, 다운로드 가능한 사이트>

들로만 올렸습니다.

내용을 최대한 간단히 했는데, 초보자분들을 위해 좀더 자세한 메뉴얼을 준비중입니다.

기타 문의사항은 아래 홈페이지로 해주십시오.

~                                                

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

1 Response

  1. Nice article inspiring thanks. Hello Administ .

페이스북/트위트/구글 계정으로 댓글 가능합니다.