|
|
1. Apm ´Ù¿î ¹Þ±â |
codns ÀÇ ÀÚ·á½Ç¿¡ ÀÖ´Â ´ÙÀ½°ú °°Àº ÇÁ·Î±×·¥À» ´Ù¿î ¹Þ¾Æ¾ß ÇÕ´Ï´Ù.
apache ¹öÀü:apache_2.0.50-win32-x86-no_ssl.msi(À©µµ¿ì¿ë)
php ¹öÀü :php-5.0.0-Win32(À©µµ¿ì¿ë)
mysql ¹öÀü :mysql-5.0.1-alpha-snapshot-win.zip(À©µµ¿ì¿ë)
|
ÁÖÀÇ:
|
À§ÀÇ ÇÁ·Î±×·¥ ¸ðµÎ ¼³Ä¡ µð·ºÅ丮°¡ c:\myweb À̱⠶§¹®¿¡ µð·ºÅ丮ÀÇ À§Ä¡¸¦ °°Àº µð·ºÅ丮 ¾È¿¡¼ ¼·Î ´Ù¸¥ °ÍÀ¸·Î º¯°æ ÇØÁÖ¼Å¾ß ÇÕ´Ï´Ù.
|
¡¡ |
Ex) c:\mywel\mysql , c:\mywel\php , c:\mywel\apache2
|
|
2. mysql ¼³Ä¡ |
1)
|
setup.exe¸¦ Ŭ¸¯Çؼ ¼³Ä¡¸¦ ÇÕ´Ï´Ù.
|
2) |
C:\myweb\mysql\bin\mysql-nt.ext¸¦ ´·¯ ½ÇÇà½Ãŵ´Ï´Ù.
|
3) |
ÇÁ·Î±×·¥ ½ÇÇà¿¡¼ [cmd] ¸í·ÉÀ» ½ÇÇàÇϰųª µµ½ºÇÁ·ÒÇÁÆ®¸¦ ½ÇÇà ½ÃÄÑ µµ½ºÈ¸éÀ» ³ª Ÿ³ª°Ô ÇÕ´Ï´Ù.
|
4) |
ȸéÀÌ ³ª¿À¸é c:\ ·Î À̵¿ÇÕ´Ï´Ù.
|
5) |
c\>cd c:\myweb\mysql\binÀÇ ¸í·ÉÀ¸·Î À̵¿ ÇÕ´Ï´Ù.
|
6) |
c:\myweb\mysql\bin>À¸·Î À̵¿ mysql À̶ó ¸í·ÉÀ» ½ÇÇà ÇÑ ÈÄ "welcome to the mysqlmonitor.....ÀÌÇÏ »ý·«..." À̶ó´Â ±ÛÀÌ ³ªÅ¸³ª¸é ¸ðµç ¼³Ä¡°¡ ³¡³ °Í ÀÔ´Ï´Ù.
|
7) |
ÀÚµ¿ ½ÇÇàÇÏ·Á¸é mysql-nt.exe¸¦ ½ÃÀÛÇÁ·Î±×·¥¿¡ µî·ÏÇÏ¸é ºÎÆà ½Ã¸¶´Ù ÀÚµ¿À¸·Î ½ÇÇàµË´Ï´Ù.
|
|
ÁÖÀÇ:
|
±âÁ¸¿¡ ¼³Ä¡ µÇ¾î ÀÖÀ» ½Ã mysql, php , apache´Â ¸ðµÎ Á¦°Å ÇÔ°ú µ¿½Ã¿¡ ·¹Áö½ºÆ® ¿¡ ÀÖ´Â mysqlºÎºÐ ¿ª½Ã Áö¿î ÈÄ APM À» ¼³Ä¡ ÇØ¾ß µË´Ï´Ù.
|
|
3. php ¼³Ä¡ |
php ÆÄÀÏÀº ´Ù¿î·Îµå ÈÄ c:\myweb\php¿¡ ¾ÐÃàÀ» Ç®¸é ¼³Ä¡°¡ ³¡³ª°Ô µË´Ï´Ù.
|
4.apache ¼³Ä¡ |
apache ¼³Ä¡ ¸Þ´º¸¦ Âü°í ÇÏ¿© ÁÖ¼¼¿ä. |
5.°¢ ÇÁ·Î±×·¥ÀÇ ¿¬µ¿ |
1) |
htpd.conf ÆÄÀÏ ¼öÁ¤ |
¡¡ |
C:\myweb\Apache2\conf\httpd.confÆÄÀÏÀ» ¸Þ¸ðÀåÀ¸·Î ¿¾î
¼öÁ¤ÇÕ´Ï´Ù. |
¡¡ |
¾Æ·¡ÀÇ Äڵ带 Á¦ÀÏ ¾Æ·¡ ºÎºÐ¿¡ Ãß°¡ ÇÕ´Ï´Ù.
LoadModule php5_module c:\myweb\php\php5apache2.dll
AddType application/x-httpd-php .php .php3 .html
.htm .phtml .inc .ph .h
AddType application/x-httpd-php-source .phps
|
¡¡ |
´ÙÀ½°ú °°Àº Ä¿¸Çµå¸¦ ã¾Æ ¼öÁ¤ ÇÕ´Ï´Ù.
directoryindex=index.html index.php
AddDefaultCharset ISO-2022-kr |
¡¡ |
C:\myweb\Apache2\htdocs\index.html.ko.euc-krÆÄÀÏÀ»
index.html·Î À̸§À¸·Î ¹Ù²Û ÈÄ ³ª¸ÓÁö ÆÄÀÏÀº »èÁ¦ ÇÕ´Ï´Ù. ¹Ù²Û index.htlm
ÆÄÀÏÀÌ È¨ÆäÀÌÁöÀÇ ½ÃÀÛ ÆäÀÌÁö°¡ µË´Ï´Ù. ÃßÈÄ È¨ÆäÀÌÁö¸¦ ¸¸µå½Å ÈÄ ÀÌ ÆÄÀÏ¿¡ ÀúÀå
ÇÏ¸é µË´Ï´Ù. |
¡¡ |
¡¡ |
2) |
php.ini ¼öÁ¤¹× º¹»ç |
¡¡ |
c:\myweb\php\php5ts,php5apache2.dll libmysql.dll
3°³ ÆÄÀÏÀ» system32Æú´õ¿¡ º¹»ç ÇÕ´Ï´Ù. ¼³Ä¡ ½Ã php.ini.distÀÎ
°ÍÀ» php.ini ·Î ¼öÁ¤ ÇÏ¿© ¾Æ·¡¿Í °°ÀÌ ¼öÁ¤ ÇÕ´Ï´Ù. |
¡¡ |
extension_dir="c\myweb\php\ext\"¼³Á¤ÇÏ°í ;extension=php_mysql.dll¿¡¼;ÁÖ¼®Á¦°Å
¶ÇÇÑ include¸¦ ¾²°íÀÚ ÇÑ´Ù¸é include_path="c:/myweb/apache2/htdocs/
bbs/"·Î ÁöÁ¤ÇÏ°í ÁÖ¼®ÀÌ ºÙ¾î ÀÖÀ¸¸é ¹Ýµå½Ã Á¦°ÅÇØ¾ß ÇÕ´Ï´Ù. |
¡¡ |
register_globals=onÀ» »ç¿ëÇØ¾ß ÆûÀÇ °ªÀÌ ³Ñ¾î°£´Ù.
default_charset = "EUC-KR(apache¿Í ´Ù¸§)ÁÖ¼®Á¦°Å
#php.ini¸¦ ¼öÁ¤ÇÑ ´ÙÀ½ c:\windows Æú´õ¿¡ º¹»ç
|
¡¡ |
ÁÖÀÇ:mysqlÀÇ my.ini´Â mysql5¿¡¼´Â ÀÚµ¿À¸·Î Çü¼ºµÇ´Ï ¼Õ º¼
°ÍÀÌ ¾ø½À´Ï´Ù. |
¡¡ |
ÀÌÁ¦ ÄÄÇ»Å͸¦ ´Ù½Ã ºÎÆà ÇÕ´Ï´Ù. |
|
6. Å×½ºÆ® |
ÀͽºÇ÷η¯¸¦ ½ÇÇàÇØ http://localhost ¸¦ Ä¡°í ½ÇÇà ÇÕ´Ï´Ù. ±×·³ index.html¿¡ ¸¸µé¾î ³õ Àº ȨÆäÀÌÁö°¡ ³ª¿À¸é Á¤»óÀÔ´Ï´Ù.
|