오늘은 대한입니다.
sun's longitude:299 44 13.19 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
148 번 글: [php] php4/5 cli/cgi install
글쓴이: 산이 [홈페이지] 글쓴날: 2009년 03월 10일 19:23:32 화(저녁) 조회: 5527
[php] php4/5 cli/cgi install 

on RH7.3

wget http://kr.php.net/get/php-5.1.4.tar.bz2/from/kr2.php.net/mirror

wget http://kr.php.net/get/php-4.4.2.tar.bz2/from/kr2.php.net/mirror

*주)
--enable-fastcgi => sapi/cgi/php => php-fcgi
이옵션이 없다면  => sapi/cgi/php => php-cgi

*팁)
shell> grep -v '^#' foobar | tr "\n" " " | sh

-- php4 -------------------------------
./configure --prefix=/usr/local/php
--disable-xml
--disable-libxml
--disable-dom
--disable-simplexml
--disable-xmlreader
--disable-xmlwriter
--without-pear
--disable-ipv6
--enable-force-cgi-redirect
--enable-discard-path
--enable-fastcgi
--enable-magic-quotes
--with-zlib
--enable-bcmath
--with-curl
--enable-dba
--enable-ftp
#--with-gd
--enable-mbstring
--with-mysql
--with-ncurses
--enable-pcntl
--enable-shmop
--enable-sockets
--with-regex=php
--enable-sysvmsg
--enable-sysvse
--enable-sysvshm
--------------------------------------

-- php5 -------------------------------
./configure --prefix=/usr/local/php
--disable-xml
--disable-libxml
--disable-dom
--disable-simplexml
--disable-xmlreader
--disable-xmlwriter
--without-pear
--disable-ipv6
--enable-force-cgi-redirect
--enable-discard-path
--enable-fastcgi
--enable-magic-quotes
--enable-fd-setsize=16384
--with-zlib
--enable-bcmath
#--with-curl
--enable-dba
--enable-ftp
--with-gd
--enable-mbstring
--with-mysql
--with-ncurses
--enable-pcntl
--enable-shmop
--enable-sockets
--with-regex=php
--enable-sysvmsg
--enable-sysvse
--enable-sysvshm
--------------------------------------

make
make install

## overwrite
##
install -m 755 sapi/cli/php  /usr/local/php/bin/php

--enable-fastcgi 옵션이 있다면,
install -m 755 sapi/cgi/php /usr/local/php/bin/php-fcgi
or
install -m 755 sapi/cgi/php-cgi /usr/local/php/bin/php-fcgi

없다면,
install -m 755 sapi/cgi/php /usr/local/php/bin/php-cgi

## 마무리
##
(cd /usr/local/bin && ln -sf ../php/bin/* .)

 
이전글 : [shell] trap
다음글 : [MISC] 윤년과 컴퓨터 달력  
 from 114.111.62.248
JS(Redhands)Board 0.4 +@

|글쓰기| |답장쓰기| |수정| |삭제|
|이전글| |다음글| |목록보기|
인쇄용 

apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds