메뉴 건너뛰기

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

List of Articles
번호 제목 날짜 조회 수
37 CentOS 7 에 아파치(httpd) 설치 2015.07.16 10308
36 CentOS 7 에 php 설치하기 2015.07.16 7663
35 centos 7 계정추가 2015.07.16 8598
34 CentOS 7 Subversion(SVN) 2015.07.17 7648
33 CentOS 7 FTP Server 설치 2015.07.17 7701
32 centos 7 APM 최신버전 설치 ( mariadb 10.4 / apache 2.4.39 / php 7.3.8 ) file 2024.02.07 46
31 CentOS 5.1 + APM(apache 2.2.x + php 5.2.x + mysql5.0.x + Zend 3.0.x) 설치 2016.03.18 8686
30 centos 4.x 데몬 2014.02.27 6875
29 CentOS 32Bit 운영체제에서 메모리 4G인식 시키는 방법 2014.02.27 7103
28 cdrom 마운트 하기 2014.03.26 7102
27 bitnami Redmine stack 업그레이드기 (1.2.x -> 2.0.x) 2017.07.05 6836
26 bind , 네임서버 구축 ( CentOS 6.x) file 2016.04.22 7089
25 bash 스크립트에서 네트워크 정보 확인하기 2014.02.27 14284
24 APM 소스 설치 2014.02.27 7736
23 APM 소스 설치 2014.02.27 8068
22 apache에서 전송 속도 제한하기 2014.02.27 6940
21 apachec rewrite 사용하기 // www 강제 사용 // HTTP to HTTPS // 특정경로만 HTTP 2016.12.30 7081
20 apache2 트래픽 모듈 mod_cband 사용법 2019.02.14 1129
19 APACHE, OHS 400 웹로직 연동후 특정 작업에 400 error 2016.12.30 8646
18 apache, mod_ssl 설치 (apache 1.3.37버전) 2014.02.27 7667
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 Next
/ 12

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved