php-4.4.9 fpm설치
- 공유 링크 만들기
- 이메일
- 기타 앱
php-4.4.9 fpm설치
fpm기능은 기본적으로 php-5.3.3부터 제공합니다.
php-4x인경우는 패치가 필요합니다.
https://php-fpm.org/접속하여 해당 php버전을 다운받습니다
https://php-fpm.org/downloads/php-4.4.9-fpm-0.5.10.diff.gz
php설치 폴더안에 다운받아 압축해제 후 패치
# gzip -cd php-4.4.9-fpm-0.5.10.diff.gz | patch -d php-4.4.9 -p1
패치가 완료되면 아래와 같이 확인이 가능합니다.
# ./configure --help | grep fpm
--enable-fpm CGI: If this is enabled, the fastcgi support
--with-fpm-conf=PATH Set the path for php-fpm configuration file [PREFIX/etc/php-fpm.conf]
--with-fpm-log=PATH Set the path for php-fpm log file [PREFIX/logs/php-fpm.log]
--with-fpm-pid=PATH Set the path for php-fpm pid file [PREFIX/logs/php-fpm.pid]
그리고 configure실행
./configure \
--prefix=/usr/local/php-4.4.9 \
--with-config-file-path=/usr/local/php-4.4.9/etc \
--with-mysql=/usr/local/mysql-4.1.22 \
--with-ttf \
--with-tiff \
--with-t1lib=/usr/lib \
--with-iconv \
--with-gd \
--with-zlib \
--with-freetype-dir=/usr/include/freetype2 \
--with-freetype \
--with-jpeg-dir=/usr/lib \
--with-png \
--with-xml \
--with-language=korean \
--with-charset=euc_kr \
--with-openssl \
--enable-track-vars \
--enable-ftp \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-fpm \
--enable-fastcgi \
--disable-debug
virtualhost에 아래와 같이 설정
ScriptAlias /php-fastcgi/ /usr/local/php-4.4.9/bin/
AddHandler php-fastcgi .php .html .htm
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .phtm
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action php-fastcgi /php-fastcgi/php-cgi
참고 :
https://www.oss.kr/info_install/show/1bc0072b-01a9-4e0f-9ba8-2a238a6b4dfe
https://cwiki.apache.org/confluence/display/HTTPD/PHP4AndPHP5
from http://darksharavim.tistory.com/415 by ccl(A) rewrite - 2020-03-06 13:54:13
- 공유 링크 만들기
- 이메일
- 기타 앱
댓글
댓글 쓰기