2008/07/23 13:00

FastCGI 구동환경 구성하기

Windows FastCGI 설치

A. FastCGI 설치

IIS 버전에 맞는 FastCGI 핸들러를 다운로드 후 설치 합니다.

[ IIS6.0 & 5.1 (Windows 2003, Windows 2000, Windows XP) ]

1. IIS6.0 & 5.1 FastCGI 핸들러 설치 파일을 아래의 주소에서 다운로드 합니다.

http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1521

2. 다운로드한 파일을 실행하여 FastCGI 핸들러 설치를 완료 합니다.

clip_image002

[ IIS7.0 – Windows Server 2008 ]

1. 서버 관리자 -> 역할 -> 역할 서비스 추가

clip_image004

B. InnoFC 제품파일 설치

InnoFC 제품파일을 웹에서 액세스 가능한 디렉토리에 복사 합니다.

예) C:\Inetpub\wwwroot\FC

C. 웹서비스 설정

FastCGI 구동을 위한 IIS 환경을 설정 합니다.

[ Windows Server 2008 ]

1. 시작 -> 관리 도구 -> IIS(인터넷 정보 서비스) 관리자 -> 처리기 매핑

clip_image006

2. “모듈 매핑 추가…” 를 선택하여 아래와 같이 환경설정을 합니다.

clip_image008

- 요청 경로(P): *.fcgi

- 모듈(M): FastCgiModule

- 실행 파일(옵션)(E):: C:\Inetpub\wwwroot\FC\InnoFC.exe

- 이름(N): InnoFC via FastCGI

[ windows Server 2003, Windows Server 2000, Windows XP ]

1. 인터넷 정보 서비스(IIS) 관리 -> 해당 웹사이트 -> 속성(등록정보) -> 홈 디렉터리 탭 -> [구성(G)..]

clip_image010

2. 응용 프로그램 구성 -> [추가(D)…]

clip_image012

3. 응용 프로그램 확장 매핑 추가/편집

clip_image014

- 실행 파일 : C:\WINDOWS\system32\inetsrv\fcgiext.dll

- 확장명 : .fcgi

- 동사 – 다음으로 제한 : GET, HEAD, POST

- 스크립트 엔진 : 체크

- 파일이 있는지 확인 : 체크

4. fcgiext.ini 환경파일 설정

*** 환경파일 위치 C:\WINDOWS\system32\inetsrv\fcgiext.ini

### fcgiext.ini ###

[Types]

fcgi=FCGI

[FCGI]

ExePath=C:\Inetpub\wwwroot\FC\InnoFC.exe

D. InnoFC 구동 테스트

http://신청한 도메인 주소/FC/ index.html"에 InnoFC 구동을 확인 합니다.

Linux/Unix FastCGI 설치

A. FastCGI 컴파일 및 설치

FastCGI 배포 사이트에서 소스 파일을 다운로드 받아 FastCGI 구동에 필요한 라이브러리를 시스템에 설치 합니다.

1 FastCGI 다운로드 http://www.fastcgi.com/dist/fcgi.tar.gz

2 컴파일

[root@lamp ~]# ./configure --prefix=/usr/local

[root@lamp ~]# make

[root@lamp ~]# make install

B. InnoFC 제품파일 설치

InnoFC 제품파일을 웹에서 액세스 가능한 디렉토리에 복사 합니다.

[root@lamp ~]# mkdir -p /innorix/FC

[root@lamp ~]# cp -a * /innorix/FC

C. 웹서비스 설정

FastCGI 구동을 위한 웹서버 환경을 설정 합니다.

Apache HTTPD

아래의 파일을 환경파일에서 include 하거나 httpd.conf 파일에 직접입력 후 웹서버를 재기동 합니다.

### fastcgi.conf ###

LoadModule fastcgi_module modules/mod_fastcgi.so

ScriptAlias /FC-bin/ "/innorix/FC/"

FastCgiIpcDir /tmp/

<Directory "/innorix/FC/">

AllowOverride None

Options +ExecCGI

Order allow,deny

Allow from all

AddHandler fastcgi-script .fcgi

</Directory>

Lighttpd

웹서버 환경파일을 아래와 같이 설정후 재기동 합니다.

### lighttpd.conf ###

Server.modules = (

“ mod_fastcgi”,

fastcig.server = ( “.fcgi” =>

( “localhost” =>

(

“socket” => “/tmp/fastcgi.socket”,

“bin-path” => “/innorix/FC/InnoFC.fcgi”

)

)

)

D. InnoFC 구동 테스트

http://신청한 도메인 주소/FC/ index.html"에 InnoFC 구동을 확인 합니다.

보다 자세한 설정사항 및 벤더별 웹서버 설정방법은 아래의 링크를 참조하시기 바랍니다.

--------- 참조용 URL http://www.innorix.com/docs/fcgi-info.html -------------------------------------

# Apache

- Module mod_fastcgi Infomation

http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html

- Apache FastCGI Module Installation

http://www.fastcgi.com/mod_fastcgi/INSTALL

# Lighttpd

- The FastCGI Interface Docs

http://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI

# Netscape/iPlanet/SunOne

- Installing the FastCGI plug-in

http://docs.sun.com/app/docs/doc/820-0255/6nc0p43e6?l=ko&a=view#funbo

- Configuring the FastCGI plug-in

http://docs.sun.com/app/docs/doc/820-0255/6nc0p43e7?l=ko&a=view&q=fastcgi

# WebToB

- TmaxSoft 고객지원

http://www.tmax.co.kr/tmax/menu/contentView.do?menuCode=SPTN&menuCode=SP

# Zeus Server

- Support and Maintenance

http://www.zeus.com/support/index.html

# Etc...

- aXesW3 http://www.arterialsoftware.com/

- MyServer http://www.myserverproject.net/

- Pi3Web http://pi3web.sourceforge.net/

- Premium http://schumann.cx/premium-thttpd/

- thttpd http://schumann.cx/premium-thttpd/

- WebSTAR http://www.webstar.com/

"기타 유용한 기술정보" 카테고리의 다른 글

2008/07/23 13:00 2008/07/23 13:00
받은 트랙백이 없고 댓글이 없습니다.

Trackback : 이 글에는 트랙백을 보낼 수 없습니다