½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
ASP
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 108 | Á¶È¸¼ö 3,886 | µî·ÏÀÏ 2000-12-31 17:59:47

´Ð³×ÀÓ

HappyCGI

À̸ÞÀÏ

hero@happycgi.com

Á¦¸ñ

À©µµ¿ìÁî ¾ÆÆÄÄ¡À¥¼­¹ö/ÆÞ ¼³Ä¡¹ý
³»¿ë
¼³Ä¡¿ä±¸ »çÇ×
================

* Windows 95/98/2000, NT 3.5.1 ÀÌ»ó

* Windows Socket 2 (Winsock 2) - Windows 95 ÀÎ °æ¿ì
http://www.microsoft.com/windows95/downloads/contents/WUAdminTools/S_WUNetworkingTools/W95Sockets2/Default.asp

* ¿øµµ¿ìÁî ÀνºÅç·¯ 1.1 ÀÌ»ó (ActivePerl ¼³Ä¡½Ã ÇÊ¿äÇÕ´Ï´Ù) - Windows 95/98/NT
http://www.activestate.com/Products/ActivePerl/Download.html


´ÙÀ½ÀÇ ¼³Ä¡¹æ¹ýÀº Windows 98 Second Edition ±âÁØÀÔ´Ï´Ù.
À©µµ¿ìÁî ¹öÀü¿¡ µû¶ó Á¶±Ý¾¿ Â÷ÀÌ°¡ ÀÖÀ» ¼ö ÀÖÀ¸³ª À¯»çÇÕ´Ï´Ù.

À©µµ¿ìÁî¿ë ¾ÆÆÄÄ¡ À¥¼­¹ö
===========================

--- ¼ø¼­ ---------------------------
1. ´Ù¿î·Îµå
2. ¼³Ä¡Çϱâ
3. ȯ°æ¼³Á¤
4. ¾ÆÆÄÄ¡ ½ÃÀÛ/Á¾·áÇϱâ
5. °ü·Ã »çÀÌÆ® ¸µÅ©
------------------------------------


1. ´Ù¿î·Îµå

¾ÆÆÄÄ¡ À¥¼­¹ö À©µµ¿ìÁî ¼³Ä¡ ÆÄÀÏÀ» ¾Æ·¡ÀÇ ÁÖ¼Ò¿¡¼­ ´Ù¿î·Îµå ÇÕ´Ï´Ù.
http://www.apache.org/dist/binaries/win32/apache_1_3_12_win32.exe


2. ¼³Ä¡Çϱâ

*¸ðµç ÇÁ·Î±×·¥À» Á¾·áÇÑ ÈÄ ½ÃÀÛ¸Þ´º¿¡¼­ ½ÇÇà->ã¾Æº¸±â ¸¦ Ŭ¸¯Çؼ­ ´Ù¿î¹ÞÀº ÀνºÅç ÆÄÀÏÀ» ½ÇÇàÇÕ´Ï´Ù.

*¼³Ä¡ÇÒ µð·ºÅ丮¸¦ ¼±ÅÃÇÏ°í ÇÁ·Î±×·¥ ¼³Ä¡¸¦ ½ÃÀÛÇÕ´Ï´Ù. C:Program FilesApache GroupApache ¶Ç´Â ¿øÇÏ´Â µð·ºÅ丮¸¦ ¼±ÅÃÇÏ°í
Typical
¿É¼ÇÀ¸·Î ÇÏ¸é ¹«³­ÇÕ´Ï´Ù.


3. ȯ°æ¼³Á¤

¼º°øÀûÀ¸·Î ¼³Ä¡°¡ µÇ¾úÀ» °æ¿ì ¼³Ä¡µÈ µð·ºÅ丮(Apache) ³»¿¡
conf
µð·ºÅ丮°¡ ÀÖ´ÂÁö È®ÀÎÇÏ°í,
conf µð·ºÅ丮 ³»¿¡
httpd.conf
ÆÄÀÏÀ» ÅؽºÆ® ÆíÁý±â(¸Þ¸ðÀå, ¿öµåÆÐµå µîµî)¿¡¼­ ÆíÁýÇÕ´Ï´Ù.

*line 232¿¡¼­
#ServerName new.host.name
À̶ó´Â °÷¿¡ ´ÙÀ½°ú °°ÀÌ Àû¾îÁÝ´Ï´Ù.

#ServerName new.host.name
ServerName localhost (¶Ç´Â ServerName 127.0.0.1)

ºê¶ó¿ìÀú¿¡¼­ "http://localhost/" ¶Ç´Â "http://127.0.0.1/" ·Î Á¢¼ÓÀ» Çϸé
Apache
ÀÇ
ÇÏÀ§ µð·ºÅ丮ÀÎ
htdocs
¸¦ °¡¸®Åµ´Ï´Ù(line 265 Âü°í).

*633 ¶óÀο¡¼­
#AddHandler cgi-script .cgi
¿¡¼­ comment(#)¸¦ Á¦°ÅÇÕ´Ï´Ù
AddHandler cgi-script .cgi

*458 ¶óÀο¡¼­
ScriptAlias /cgi-bin/ "C:/Program Files/Apache/cgi-bin/"
¿¡¼­ ¸Ç¾Õ¿¡ comment(#)°¡ ¾ø´ÂÁö È®ÀÎÇÕ´Ï´Ù. ÀÖÀ» °æ¿ì Á¦°ÅÇÕ´Ï´Ù.

*465 ¶óÀο¡¼­ ´ÙÀ½°ú °°ÀÌ ÆíÁýÇÕ´Ï´Ù.

<Directory "C:/Program Files/Apache/cgi-bin">
AllowOverride None
Options ExecCGI
</Directory>

=>
ExecCGI
¿É¼ÇÀÌ ¼³Á¤ µð·ºÅ丮¿¡ CGI¸¦ °¡´ÉÇÏ°Ô ÇÏ´Â °ÍÀÔ´Ï´Ù.

*´Ù¸¥ µð·ºÅ丮¿¡ CGI ½ÇÇàÀ» ¿øÇÑ´Ù¸é ´ÙÀ½Ã³·³ Ãß°¡ÇÏ¸é µË´Ï´Ù.

<Directory "C:/Program Files/Apache/new_directory">
AllowOverride None
Options ExecCGI
</Directory>

*±âº»ÀûÀÎ ¼³Á¤Àº ³¡³µ½À´Ï´Ù.
httpd.conf
ÆÄÀÏÀ» ÀúÀåÇÏ°í Á¾·áÇÕ´Ï´Ù.


4. ¾ÆÆÄÄ¡ ½ÃÀÛ/Á¾·áÇϱâ

¾ÆÆÄÄ¡ À¥¼­¹ö´Â ½ÃÀÛ°ú Á¾·á¸¦ Á÷Á¢ ÇØÁÖ¾î¾ß ÇÕ´Ï´Ù.

*½ÃÀÛ¸Þ´º¿¡¼­
ÇÁ·Î±×·¥->Apache Web Server
¸¦ ¼±ÅÃÇؼ­
Start Apache
¸¦ ¼±ÅÃÇÏ¸é ¾ÆÆÄÄ¡°¡ ½ÃÀ۵˴ϴÙ.

*ºê¶ó¿ìÁ®¿¡¼­ ¼³Á¤ÇÑ ¼­¹öÀ̸§(http://localhost/)·Î Á¢¼ÓÀ» Çؼ­ ¾ÆÆÄÄ¡ Å×½ºÆ® ÆäÀÌÁö°¡ ¶ß¸é Á¦´ë·Î °¡µ¿µÇ´Â °ÍÀÔ´Ï´Ù.

*Á¾·áÇÒ ¶§¿¡´Â
Stop Apache
¸¦ ¼±ÅÃÇϰųª
ctrl+c
Å°¸¦ ´©¸¨´Ï´Ù.


5. °ü·Ã »çÀÌÆ®.

*Apache HTTP Server for Win32: http://www.apache.kr.net/documents/win32.html
*Getting Started with Apache 1.3: http://apachetoday.com/news_story.php3?ltsn=2000-06-1-001-01-NW-DP-LF
*Maximum Apache: http://builder.cnet.com/Servers/Apache/index.html



ActivePerl ¼³Ä¡Çϱâ
=======================

--- ¼ø¼­ ---------------------------
1. ´Ù¿î·Îµå
2. ¼³Ä¡Çϱâ
3. ȯ°æ¼³Á¤
------------------------------------


1. ActivePerl ´Ù¿î·Îµå

*À©µµ¿ìÁî 95/98/NTÀÎ °æ¿ì Windows Installer¸¦ ¸ÕÀú ¼³Ä¡ÇØ¾ß ÇÕ´Ï´Ù.

À©µµ¿ìÁî NT: http://www.activestate.com/download/contrib/Microsoft/NT/InstMsi.exe
À©µµ¿ìÁî 95/98: http://www.activestate.com/download/contrib/Microsoft/9x/InstMsi.exe

*´ÙÀ½ÀÇ À¥»çÀÌÆ®·ÎºÎÅÍ À©µµ¿ìÁî¿ë ¼³Ä¡ ÆÄÀÏÀ» ´Ù¿î·Îµå ÇÕ´Ï´Ù.
http://www.activestate.com/download/ActivePerl/Windows/5.6/ActivePerl-5.6.0.613.msi


2. ¼³Ä¡Çϱâ

*¸ðµç ÇÁ·Î±×·¥À» Á¾·áÇÑ ÈÄ ´Ù¿î·ÎµåÇÑ
ActivePerl.msi
¸¦ ½ÇÇà½Ãŵ´Ï´Ù.

*¼³Ä¡¸¦ ½ÃÀÛÇÏ¸é ¼³Ä¡ µð·ºÅ丮¸¦
c:Perl
·Î ¼³Á¤µÈ °ÍÀ»
c:usr
·Î º¯°æÇÏ°í ¼³Ä¡¸¦ °è¼Ó ÇÕ´Ï´Ù.

*±× ¿ÜÀÇ ¼³Ä¡ ÀýÂ÷´Â ÀϹÝÀûÀÎ À©µµ¿ìÁî ÇÁ·Î±×·¥ ¼³Ä¡ ¹æ¹ý°ú °°½À´Ï´Ù.


3. ȯ°æ¼³Á¤

¼³Ä¡°¡ ¼º°øÀûÀ¸·Î ¿Ï·áµÇ¸é µû·Î ¼³Á¤ÇÒ °ÍÀº ¾ø½À´Ï´Ù.


### Perl CGI Å×½ºÆ®###

*¾ÆÆÄÄ¡¸¦ ½ÃÀÛÇÕ´Ï´Ù.

*´ÙÀ½ÀÇ Äڵ带 º¹»çÇÏ¿© ÅؽºÆ® ÆíÁý±â¿¡ ºÙ¿©³Ö½À´Ï´Ù.

#!/usr/bin/perl
print "content-type:text/html

";
print <<END;
<html>
<head>
<title>Perl CGI Å×½ºÆ®</title>
</head>
<body>
<h2 align="center">ÃàÇÏÇÕ´Ï´Ù. ¼³Ä¡¿¡ ¼º°øÇϼ̽À´Ï´Ù!!</h2>
</body>
</html>
END
exit;

*
test.cgi
ÀÇ ÆÄÀÏ À̸§À¸·Î
Apache
ÇÏÀ§ µð·ºÅ丮ÀÎ cgi-bin µð·ºÅ丮¿¡ ÀúÀå ÇÕ´Ï´Ù.

*À¥ºê¶ó¿ìÁ® ÁÖ¼ÒÀÔ·Â ºÎºÐ¿¡ "http://localhost/cgi-bin/test.cgi"¸¦ ÀÔ·ÂÇÏ°í ¿£ÅÍÅ°¸¦ Ĩ´Ï´Ù.

*HTML ÆÄÀÏó·³ º¸¿©ÁÖ¸é Á¤»óÀûÀ¸·Î ¼³Ä¡°¡ µÈ °æ¿ìÀÔ´Ï´Ù.

============================================================

ÃàÇÏÇÕ´Ï´Ù. ÀÌÁ¦ À©µµ¿ìÁî¿¡¼­µµ Perl CGI¸¦ ½ÇÇà½Ãų ¼ö ÀÖ½À´Ï´Ù.

¼³Ä¡½Ã ¾î·Á¿î Á¡ÀÌ ÀÖÀ¸¸é Æ÷·³¿¡ ±ÛÀ» ¿Ã·ÁÁֽñ⠹ٶø´Ï´Ù.


### ¼ö°íÇϼ̽À´Ï´Ù ###
Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û commerce.cgi ¼îÇθô ¼³Ä¡¹ý 2000-12-31 17:59:11
´ÙÀ½°Ô½Ã±Û Çѱ۸µ½º 2.1 windows °è¿­¿¡ ¼³Ä¡Çغ¸±â 2000-12-31 18:00:05