메뉴 건너뛰기

2017.09.20 04:10

php_fpm 관련 자료

조회 수 5318 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

php 5.2.17 설치시 해야할 작업
- 검색 키워드 : 
1. multiple php version on centos  2. nginx php-fpm , 3. nginx php-fpm 연동     등등.. 

- multiple php 사전 패치 준비 (지금 안해도되지만 나중에 컴파일 시 오류 나는 경우 계속 찾아서 yum install 해주어야 함)
yum install libxml2-devel libXpm-devel gmp-devel libicu-devel t1lib-devel aspell-devel openssl-devel bzip2-devel libcurl-devel libjpeg-devel libvpx-devel libpng-devel freetype-devel readline-devel libtidy-devel libxslt-devel libmcrypt-devel pcre-devel curl-devel mysql-devel ncurses-devel gettext-devel net-snmp-devel libevent-devel libtool-ltdl-devel libc-client-devel postgresql-devel


- phpinfo(); 를 통해 php 버전 확인 시 문서에서 Server API 에서 FPM/FastCGI 가 적혀있는지 확인해야됨.


1. php 5.2.17 압축해제
2. wget 을 통한 php-fpm diff 파일 받아서 php 압축해제 폴더에 patch 명령어를 통해 patch

3. php 압축해제폴더 로 들어가서

./configure --prefix=/usr/local/php52fpm --enable-fastcgi --enable-fpm --enable-cli \
--with-mcrypt \
--with-zlib \
--enable-mbstring \
--with-openssl \
--with-gd \
--with-jpeg-dir=/usr/lib64 \
--enable-gd-native-ttf \
--without-sqlite \
--disable-pdo \
--with-libdir=lib64 \
--with-xpm-dir=/usr/lib64 \
--enable-gd-jis-conv \
--with-fpm-user=nginx \
--with-fpm-group=nginx \
--enable-shared

입력. (이때 --prefix 는 make, make install 하게 되면 컴파일 된 후 설치된 php폴더 경로지정임.)
(configure 옵션은 다양하나 필수적으로는 --enable-fastcgi --enable-fpm --enable-cli 이 들어가야됨
*configure 시 오류 중 하나인 [ext/dom/node.lo]오류는
http://www.joshi.co.kr/index.php?document_srl=1156&mid=board_Szhe52 참조

4. make 입력 (예상 소요시간 3~5분, make 시 오류 나는 것들은 대부분 구글링으로 해결)

5. make install 입력

6.나머지는 밑의 페이지를 참조하여 설치하였었음.
(php.ini 파일로 복사할 때 php.ini-dist 파일을 복사해서 사용하였었음)




* 또다른 참조 페이지 ( 확실하게 NGINX + php5.2.17 + mysql 페이지는 딱히 없음. 설치시 참조 페이지로 이용함.)
-https://www.sitepoint.com/run-multiple-versions-php-one-server/
-http://www.atblog.co.kr/?p=6287
-http://www.x83.net/nginx-php-5-2-17-php-fpm/
-http://www.oss.kr/?mid=oss_repository9&sort_index=voted_count&order_type=asc&listStyle=webzine&document_srl=7699
-https://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-centos-6.3-p2
-http://itscom.org/archives/5870 <---- 이건 yum 설치를 통한 5.2.17 버전이 아닌 상위버전의 php 임
-http://itraveler.tistory.com/28
-http://blog.naver.com/PostView.nhn?blogId=nforce7050&logNo=140191140331
-https://gist.github.com/deanet/1055952
-http://konn.tistory.com/31
-http://sencha.tistory.com/entry/nginxmysql-php-fpm-%EC%97%B0%EB%8F%99-%EC%84%A4%EC%B9%98-%EB%B0%8F-nginxconf-%EC%84%A4%EC%A0%95
-http://bjcomm.co.kr/41

  1. No Image

    ZendOptimizer 3.3.9 설치하기

    Date2014.03.26 Views7052
    Read More
  2. No Image

    Proftp 설치

    Date2014.03.26 Views7022
    Read More
  3. No Image

    telnet 설정하기

    Date2014.02.27 Views7021
    Read More
  4. No Image

    URL 포워딩 하는 방법

    Date2014.02.27 Views6958
    Read More
  5. Apache 웹서버 server-status 모니터링

    Date2014.03.26 Views6954
    Read More
  6. No Image

    apache에서 전송 속도 제한하기

    Date2014.02.27 Views6940
    Read More
  7. No Image

    centos 4.x 데몬

    Date2014.02.27 Views6875
    Read More
  8. No Image

    bitnami Redmine stack 업그레이드기 (1.2.x -> 2.0.x)

    Date2017.07.05 Views6836
    Read More
  9. [CentOS 6.5] Virtual Box를 이용한 CentOS 6.5 설치

    Date2017.03.11 Views6600
    Read More
  10. rdate명령어 사용법과 옵션

    Date2017.11.22 Views6300
    Read More
  11. No Image

    웹서버(Nginx+FastCGI PHP)구축 및 성능 시험

    Date2017.09.20 Views5530
    Read More
  12. user 계정관리 (useradd, userdel, groupadd, groupdel, usermod etc..)

    Date2017.11.22 Views5319
    Read More
  13. No Image

    php_fpm 관련 자료

    Date2017.09.20 Views5318
    Read More
  14. CentOS 7에 Owncloud 10 설치

    Date2020.12.21 Views3184
    Read More
  15. No Image

    메인 도메인으로 이동하기

    Date2018.09.28 Views2108
    Read More
  16. 사용자 관리, 사용자 생성

    Date2018.09.21 Views1993
    Read More
  17. No Image

    Apache 동시접속자수 확인

    Date2019.02.14 Views1932
    Read More
  18. No Image

    php_screw를 이용한 php 소스 암호화 하기

    Date2019.02.14 Views1420
    Read More
  19. No Image

    이미지 및 파일 무단링크 방지책

    Date2019.02.14 Views1137
    Read More
  20. No Image

    apache2 트래픽 모듈 mod_cband 사용법

    Date2019.02.14 Views1129
    Read More
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next
/ 12

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved