메뉴 건너뛰기

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
번호 제목 날짜 조회 수
217 Apache 동시접속자수 확인 2019.02.14 1929
216 사용자 관리, 사용자 생성 file 2018.09.21 1988
215 메인 도메인으로 이동하기 2018.09.28 2108
214 CentOS 7에 Owncloud 10 설치 file 2020.12.21 3149
213 user 계정관리 (useradd, userdel, groupadd, groupdel, usermod etc..) file 2017.11.22 5312
» php_fpm 관련 자료 2017.09.20 5318
211 웹서버(Nginx+FastCGI PHP)구축 및 성능 시험 2017.09.20 5530
210 rdate명령어 사용법과 옵션 file 2017.11.22 6300
209 [CentOS 6.5] Virtual Box를 이용한 CentOS 6.5 설치 file 2017.03.11 6600
208 bitnami Redmine stack 업그레이드기 (1.2.x -> 2.0.x) 2017.07.05 6835
207 centos 4.x 데몬 2014.02.27 6875
206 apache에서 전송 속도 제한하기 2014.02.27 6940
205 Apache 웹서버 server-status 모니터링 file 2014.03.26 6954
204 URL 포워딩 하는 방법 2014.02.27 6958
203 telnet 설정하기 2014.02.27 7021
202 Proftp 설치 2014.03.26 7022
201 ZendOptimizer 3.3.9 설치하기 2014.03.26 7051
200 apachec rewrite 사용하기 // www 강제 사용 // HTTP to HTTPS // 특정경로만 HTTP 2016.12.30 7081
199 tmp 보안 셋팅 2014.02.27 7086
198 bind , 네임서버 구축 ( CentOS 6.x) file 2016.04.22 7089
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 12 Next
/ 12

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved