메뉴 건너뛰기

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

    rsync 와 ssh 를 이용한 네트워크 백업하기

    Date2014.02.27 Views7747
    Read More
  2. No Image

    rsync ssh를 이용한 서버 백업

    Date2016.03.18 Views9006
    Read More
  3. No Image

    root 계정 su 명령 제한

    Date2023.01.20 Views138
    Read More
  4. No Image

    Root Disk를 Mirroring하는 방법

    Date2016.07.22 Views8418
    Read More
  5. Rocky Linux 8에 docker 설치하기

    Date2024.04.23 Views0
    Read More
  6. rdate명령어 사용법과 옵션

    Date2017.11.22 Views6300
    Read More
  7. No Image

    qmail 587 포트 추가

    Date2014.03.26 Views7388
    Read More
  8. No Image

    Proftp 설치

    Date2014.03.26 Views7022
    Read More
  9. No Image

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

    Date2019.02.14 Views1420
    Read More
  10. No Image

    php_fpm 관련 자료

    Date2017.09.20 Views5318
    Read More
  11. No Image

    PHPIZE를 이용한 openSSL PHP 확장 모듈 설치

    Date2016.09.11 Views8065
    Read More
  12. No Image

    php.ini 파일에서 timezone 설정

    Date2015.07.16 Views7759
    Read More
  13. No Image

    php-mbstring 설치

    Date2015.07.16 Views7776
    Read More
  14. No Image

    PHP-5.3 이상 Zend 설치

    Date2015.07.30 Views8703
    Read More
  15. No Image

    php-5.2.17 make시에 오류 발생 make: *** [ext/dom/node.lo] 오류 1

    Date2016.03.18 Views10746
    Read More
  16. No Image

    php 리다이렉트

    Date2016.03.18 Views8302
    Read More
  17. No Image

    php sockets 동적 모듈 설치 ( php socket )

    Date2016.03.18 Views8326
    Read More
  18. No Image

    php http include

    Date2016.03.18 Views7685
    Read More
  19. OpenSSH chroot 설정

    Date2014.02.27 Views8742
    Read More
  20. Nikto - 웹 취약점 스캐너 도구

    Date2016.04.22 Views9232
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 Next
/ 12

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved