오늘은 대한입니다.
sun's longitude:300 20 38.39 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/delete.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
 ★ 글 지우기 항목입니다. 한번 더 생각하시고 결정하십시오.!!!
제목 148 : [php] php4/5 cli/cgi install
 이름  산이 [홈]http://linuxchannel.net/
[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/* .)
2009년 03월 10일 19:23:32 화(저녁)  from 114.111.62.248
0
암호: 공용 보안 SSL 서버가 준비되기 전까지는 off 합니다

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

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