CGI ¿¡·¯°¡...¤Ì¤Ì [1]
ȨÆäÀÌÁöºô´õ¸¦ ¼³Á¤ÇÏ·Á´Âµ¥ ¿¡·¯°¡ ³³´Ï´Ù.. (HTTP 500 - ÀϹÝÀûÀÎ ¼¹ö ³»ºÎ¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù. ) ¾Æ·¡´Â ºô´õȸ»ç°¡ ¿Ã·Á³õÀº ¿¡·¯´ëó¹ýÀ̱¸¿ä.. ºü¸¥Á¶Ä¡ ºÎŹµå¸±²²¿ä- (ȨÇÇ´Â http://kb108.cn ÀÔ´Ï´Ù.) ==================================================================== <div id="title" style="width: 550px; height: 25px">Åõ°Ô´õ ¿î¿µ¿¡ ¸Â´Â ¾ÆÆÄÄ¡ À¥¼¹ö ¼³Á¤ </div><div id="content_a" style="width: 550px; height: 25px"><div>¾Æ·¡ ¼³Á¤Àº ¸®´ª½º ¼¹öÀÇ °ü¸®ÀÚ(root±ÇÇÑÀÚ)°¡ Á÷Á¢ ó¸®ÇØ¾ß ÇÒ ¹®Á¦ ÀÔ´Ï´Ù. </div><div>À¥È£½ºÆÃÀ» ¹Þ°í ÀÖÀ¸½Å ºÐÀº Åõ°Ô´õ ¼³Ä¡ ÈÄ ÇÁ·Î±×·¥ÀÌ Á¤»óÀûÀ¸·Î ÀÛµ¿µÇÁö ¾ÊÀ» °æ¿ì ¼¹ö °ü¸®ÀÚ¿¡°Ô Á÷Á¢ ÀÌ ÆäÀÌÁö¸¦ º¸¿©ÁÖ¸é¼ CGI ÇÁ·Î±×·¥ÀÌ ÀÛµ¿µÉ ¼ö ÀÖµµ·Ï ¿äûÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù.</div><div>*******************************************************************************</div> <div>¾ÆÆÄÄ¡ ¼¹öÀÇ conf/httpd.conf ¿¡¼ ¾Æ·¡ 4°÷À» ã¾Æ¼ ¶È°°ÀÌ ÇØ ÁÖ¼¼¿ä. ±×·¯¸é CGI ÆÄÀÏÀÌ ½ÇÇàÀÌ µÉ °Ì´Ï´Ù. ÀÌ·¸°Ô ÇßÀ½¿¡µµ ½ÇÇàÀÌ µÇÁö ¾Ê´Â´Ù¸é ´Ù¸¥ ¿øÀÎÀ» ã¾ÆºÁ¾ß ÇÕ´Ï´Ù.</div><div> ¾ÆÆÄÄ¡ ¼¹ö µð·ºÅ丮 : /usr/local/apache/conf</div><div>¶Ç´Â /etc/httpd/conf</div> <div>¾Æ·¡ ÆÄÀÏ(httpd.conf)¿¡¼ ¼öÁ¤À» ÇÏ½Ã°í ¾ÆÆÄÄ¡ ¼¹ö¸¦ ´Ù½Ã ½ÃÀÛ(restart)ÇØ ÁÖ¼¼¿ä. /usr/local/apache/conf/httpd.conf</div> <div>[È®ÀÎ1] </div><div># # Each directory to which Apache has access, can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # permissions. ## ¾Æ·¡¿¡¼ ExecCGI°¡ ¹Ýµå½Ã Æ÷ÇԵǾî¾ß ÇÕ´Ï´Ù. </div><div># ÀÌ ¼³Á¤Àº ȨÆäÀÌÁö »ó¿¡¼ CGI ÇÁ·Î±×·¥À» »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. </div><div># AllowOverrideÀº All·Î ¼³Á¤ÇØ µÎ¼¼¿ä. </div><div>Options FollowSymLinks Includes ExecCGI AllowOverride All </div> <div>[È®ÀÎ2] </div><div># # This should be changed to whatever you set DocumentRoot to. # </div><div># # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. ## ¾Æ·¡¿¡¼ ExecCGI°¡ ¹Ýµå½Ã Æ÷ÇԵǾî¾ß ÇÕ´Ï´Ù. </div><div># ÀÌ ¼³Á¤Àº ȨÆäÀÌÁö »ó¿¡¼ CGI ÇÁ·Î±×·¥À» »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. Options Includes FollowSymLinks ExecCGI MultiViews</div><div> </div><div>[È®ÀÎ3] </div><div># # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. ## ¾Æ·¡¿¡¼ index.cgi°¡ ¹Ýµå½Ã Æ÷ÇԵǾî¾ß ÇÕ´Ï´Ù. </div><div># ÀÌ°ÍÀº ȨÆäÀÌÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇßÀ» ¶§ ÀÚµ¿À¸·Î index.cgi ÆÄÀÏÀ» ºÒ·¯¿Àµµ·Ï ÇÕ´Ï´Ù. </div><div># ȨÆäÀÌÁö¿¡¼ index.cgi ÆÄÀÏÀ» Á¦ÀÏ ¸ÕÀú ºÒ·¯¿Àµµ·Ï ÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ index.cgi ÆÄÀÏÀ» Á¦ÀÏ ¾Õ¿¡ µÎ½Ã¸é µË´Ï´Ù. </div><div>DirectoryIndex index.cgi index.html index.htm </div> <div>[È®ÀÎ4] </div><div># # AddHandler allows you to map certain file extensions to "handlers", # actions unrelated to filetype. These can be either built into the server # or added with the Action command (see below) # # If you want to use server side includes, or CGI outside # ScriptAliased directories, uncomment the following lines. # # To use CGI scripts: ## ¾Æ·¡ ÁÙ¿¡¼ ÁÖ¼®(#) 󸮸¦ »èÁ¦ÇØ ÁÖ¼¼¿ä. </div><div># ÀÌ ¼³Á¤Àº ȨÆäÀÌÁö »ó¿¡¼ CGI ÇÁ·Î±×·¥À» »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù. AddHandler cgi-script .cgi </div><div> </div><div>*************************************************************************** </div><div> </div><div>ÀÌ»ó°ú °°ÀÌ ¼³Á¤ÇϽøé ȨÆäÀÌÁö¿¡¼ Åõ°Ô´õ ȨÆäÀÌÁöºô´õ¸¦ »ç¿ëÇϴµ¥ ÇÊ¿äÇÑ È¯°æ¼³Á¤Àº ¸¶Ä¡°Ô µË´Ï´Ù. Åõ°Ô´õ¿¡¼ »ç¿ëÇÏ´Â ÇÁ·Î±×·¥Àº È®ÀåÀÚ°¡ ¸ðµÎ .cgi Çü½ÄÀ¸·Î µÇ¾î Àֱ⠶§¹®¿¡ CGI °ü·Ã °ü°æ¼³Á¤À» ÇØ µÎ¾î¾ß¸¸ Á¤»óÀûÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. </div><div>ÇÑ ¿¹·Î, ¿äÁò ¸¹ÀÌ »ç¿ëÇÏ°í ÀÖ´Â PHP ÇÁ·Î±×·¥µµ ÀÌó·³ ȯ°æ¼³Á¤À» ÇØ µÎ¾ú±â ¶§¹®¿¡ ¿©·¯ºÐÀÇ ¼¹ö °èÁ¤¿¡¼ ºÒÆí¾øÀÌ »ç¿ëÇÒ ¼ö ÀÖ´Â °ÍÀÔ´Ï´Ù. ÇÏÁö¸¸ CGI ¹æ½ÄÀº ¸¹ÀÌ »ç¿ëÇÏÁö ¾Ê´Â °ü°è·Î ¼¹ö °ü¸®ÀÚ°¡ ȯ°æ¼³Á¤À» ÇØ µÎÁö ¾Ê´Â °æÇâÀÌ ¸¹Àºµ¥, PHP¿¡ ¾Õ¼¼ ÀÌÀü¿¡´Â ¸®´ª½º¿¡¼´Â ÀϹÝÀûÀ¸·Î C ¶Ç´Â Perl ÇÁ·Î±×·¡¹ÖÀ» ¸¹ÀÌ »ç¿ëÇØ ¿Ô±â ¶§¹®¿¡ CGI ¹æ½ÄÀ» ¸¹ÀÌ »ç¿ëÇß½À´Ï´Ù.</div><div> </div><div>ÀÌ ºÎºÐÀº ¼¹ö°ü¸®ÀÚ°¡ ¾ÆÆÄÄ¡ À¥¼¹ö ȯ°æ¼³Á¤ÆÄÀÏÀ» ¼öÁ¤ÇØ¾ß ÇÏ´Â ºÎºÐÀ̹ǷΠÂü°íÇϽñ⠹ٶø´Ï´Ù. </div><div> </div><div>°¨»çÇÕ´Ï´Ù. </div></div>
writer ip : 222.101.187.100
59.17.161.87 2008/02/26 (11:25:48)
À§¿Í°°Àº CGI ¼³Á¤Àº ÀÌ¹Ì ¼¹ö¼³Á¤¿¡ Àû¿ëµÈ »óÅÂÀÔ´Ï´Ù. ÇØ´ç CGI¸¦ ·ÎÄÿ¡¼ È®Àΰá°ú Á¤»óÀûÀ¸·Î ÀÛµ¿ÇÏ¿´½À´Ï´Ù. # ./index.cgi Content-Type: text/html<script language='javascript'> window.location.href = 'together/'; </script> µû¶ó¼ ÇÁ·Î±×·¥ ³»ºÎ¹®Á¦³ª ¹öÁ¯»óÀÇ ¹®Á¦·Î ÆǴܵ˴ϴÙ. MySQL ¹öÁ¯À̳ª ±âº»¼³Ä¡È¯°æÀ» ÇÁ·Î±×·¥ Á¦Àۻ翡 ¹®ÀÇÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù. Æó»çÀÇ MySQL ¹öÁ¯Àº 5.0.41 ÀÔ´Ï´Ù. °¨»çÇÕ´Ï´Ù.
ÄÄÇ»Áî´åÄÄ(´ëÇ¥ ÀåÁ¤ÁÖ) ÀÎõ±¤¿ª½Ã µ¿±¸ ¹æÃà·Î83¹ø±æ 23, 24µ¿ 333È£
»ç¾÷ÀÚµî·Ï¹øÈ£ 137-05-83351, Åë½ÅÆǸŠÀÎõ µ¿±¸ 03-78È£, °³ÀÎÁ¤º¸Ã¥ÀÓÀÚ ÀåÁ¤ÁÖ