This file is README.txt ######################################### ## ## ½ºÅ©¸³Æ®¸í : apmsh(Apache + PHP + MySQL ¿¬µ¿ Åø) ## ## ÀÛ¼ºÀÚ : ±èÄ¥ºÀ ## ¿ø¼Ò½º : http://www.linuxchannel.net/devel/ ## ÀÛ¼ºÀÏ : 1Â÷ 2000.11.07 ## 2Â÷ 2001.02.01 ## 3Â÷ 2001.02.06 ## 4Â÷ 2001.04.01(add Apache mod_ssl/OpenSSL) ## 5Â÷ 2001.05.23 ## 6Â÷ 2001.12.12(add php_accelerator, and bug fix) ## 7Â÷ 2001.12.24(CPU ARCH ºÎºÐ Àû¿ë) ## 8Â÷ 2002.04.03(CPU ARCH ¿É¼ÇÀ¸·Î Àû¿ë, php_accelerator 1.2x Áö¿ø) ## ## ¶óÀ̼¾½º : GNU GPL (see "COPYING" file) ## »ç¿ë¹ý : README.txt ÆÄÀÏ ÂüÁ¶ ## ## ########################################## ########################################## ## ## ## WARNING !!! ## ## »ç¿ëÀÚÀÇ »ç¿ë»ó ºÎÁÖÀÇ·Î ÀÎÇÑ ÇÇÇØ´Â ## ## ¾î¶°ÇÑ °æ¿ì¶ó°í º»Àο¡°Ô ±× Ã¥ÀÓÀÌ ## ## ¾øÀ½À» ¹Ì¸® °øÁöÇÕ´Ï´Ù. ## ## ## ########################################## [apmsh À̶õ ?] Apache + PHP + MySQLÀ» ¿¬µ¿Çϱâ À§ÇÑ ½© ½ºÅ©¸³Æ®ÀÔ´Ï´Ù. Ãʺ¸ÀÚ°¡ ºñ±³Àû ¾î·Á¿öÇÏ´Â APM ¿¬µ¿À» ½±°Ô ¼³Ä¡Çϵµ·Ï ÇÏ¿´½À´Ï´Ù. Redhat Linux¿¡¼­ Å×½ºÆ®Çß½À´Ï´Ù. [¼³Ä¡Á¤º¸] - mysql : /usr/local/mysql - apache : /usr/local/apache - openssl : /usr/local/ssl - apache mod_ssl/openssl Áö¿ø - php Áö¿ø - php-mysql Áö¿ø - php-openssl Áö¿ø(>= 0.9.6) - php-imap Áö¿ø(SSL Áö¿ø) - ZendOptimizer Áö¿ø - php_accelerator Áö¿ø(1.1x, 1.2x Áö¿ø) [Ư¡] - apache/php/mysql ¹öÀü¿¡ »ó°ü¾øÀÌ src/ µð·ºÅ丮¿¡ ÀÖ´Â ÆÄÀÏÀ» ¾ÐÃà ÇØÁ¦ÇÏ°í ¼³Ä¡½ÃÀÛÇÕ´Ï´Ù. - ±âÁ¸¿¡ MySQLÀÌ ¼³Ä¡µÇ¾î ÀÖ´Ù¸é MySQLÀ» À缳ġÇÏÁö ¾Ê°í ³ª¸ÓÁö¸¦ ¼³Ä¡ÇÒ ¼ö ÀÖ½À´Ï´Ù.(¿É¼Ç»çÇ×) - MySQL¸¸ ¼³Ä¡ÇÒ ¼ö ÀÖµµ·Ï Çß½À´Ï´Ù. - UW-imap µ¥¸óÀ» ÀÌ¿ëÇؼ­ À¥¸ÞÀÏÀ» ±¸¼ºÇÒ ¼ö ÀÖµµ·Ï php¿¡ imap ÇÔ¼ö ¸¦ ³ÖÀ» ¼ö ÀÖµµ·Ï ÇÏ¿©½À´Ï´Ù.(¿É¼Ç»çÇ×) SSL Áö¿ø - ¾ÆÆÄÄ¡ ÄÄÆÄÀÏ È¯°æ ¿É¼ÇÀº log/apache-config.log ÆÄÀÏ¿¡ ³ªÁß »ý¼º µË´Ï´Ù. - PHP ÄÄÆÄÀÏ È¯°æ ¿É¼ÇÀº log/php-config.log ÆÄÀÏ¿¡ ³ªÁß¿¡ »ý¼ºµË´Ï´Ù. - ZendOptimizer Áö¿ø(¿É¼Ç»çÇ×) - php_accelerator Áö¿ø(¿É¼Ç»çÇ×), 1.1x, 1.2x Áö¿ø - mod_ssl Áö¿ø(¿É¼Ç»çÇ×) - ¼³Ä¡°¡ ³¡³µ´õ¶ó·Î ´Ù½Ã SSL Key¸¦ »ý¼ºÇÒ ¼ö ÀÖµµ·Ï Çß½À´Ï´Ù. ./install-sh "--makekey" - Enter ¸¸ ÀÔ·ÂÇϸé Áöµ¿À¸·Î ¼³Ä¡Çϵµ·Ï ÇÏ¿´½À´Ï´Ù. - MySQL DB À̵¿(¿É¼Ç»çÇ×) - ÀÛ¾÷ÀÌ ¸ðµÎ ³¡³ª¸é ¼Ò½ºµð·ºÅ丮¸¦ »èÁ¦ÇÒ ¼ö ÀÖµµ·Ï Çß½À´Ï´Ù.(¿É¼Ç»çÇ×) - ÀÛ¾÷¿Ï·áµÈ ³»¿ëÀ» log/done.log ÆÄÀÏ¿¡¼­ È®ÀÎÇÒ ¼ö ÀÖµµ·Ï Çß½À´Ï´Ù. - ¿¡·¯³»¿ëÀ» log/error.log ÆÄÀÏ¿¡¼­ È®ÀÎÇÒ ¼ö ÀÖµµ·Ï Çß½À´Ï´Ù. - ±âŸ »õ·Î »ý¼ºµÈ log µð·ºÅ丮 È®ÀÎ [TODO] see 'TODO' file [´Ù¿î·Îµå] - http://www.linuxchannel.net/devel/ ½ÎÀÌÆ®¸¦ ÂüÁ¶Çؼ­ ÃÖ±ÙÀÇ apmsh ÆÄÀÏÀ» ´Ù¿î·Îµå. - http://ftp.linuxchannel.net/devel/apmsh/apmsh.tar.gz [»ç¿ë¹ý] - Àû´çÇÑ ÀÛ¾÷µð·ºÅ丮·Î À̵¿ÇÑ ´ÙÀ½, ¾ÐÃàÇØÁ¦(root ±ÇÇÑ). ex) # cp apmsh.tar.gz /usr/local/src/ # cd /usr/local/src # tar zxvf apmsh.tar.gz apmsh µð·ºÅ丮 »ý¼ºµÊ - ÆÄÀÏ È®ÀÎ ex) # cd apmsh # ls Copying README.txt functions install-sh src/ # src µð·ºÅ丮ÀÇ README.txt ÆÄÀÏ ²À Àо¼¼¿ä ********** - ÆÛ¹Ì¼Ç È®ÀÎ install-sh ÆÄÀÏ Æ۹̼ÇÀÌ ÃÖ¼ÒÇÑ 700 µÇµµ·Ï ÇÕ´Ï´Ù. # chmod 700 install-sh - ÁøÇà # pwd /usr/local/src/apmsh # ./install-sh [ÆÁ] - ¿¡·¯¸Þ½ÃÁö ¸ð´ÏÅ͸µ ÀÛ¾÷ÁøÇàÁß ¿¡·¯ ¸Þ½ÃÁö¸¦ ¸ð´ÏÅ͸µ ÇÏ·Á¸é âÀ» Çϳª ´õ ¿­¾î # tail -f log/error.log ÇÏ¸é µË´Ï´Ù. - ÀÛ¾÷ÁøÇàÁß ¾ðÁ¦¶óµµ ÁßÁöÇÏ·Á¸é [Ctrl+C] Å°¸¦ ´©¸¨´Ï´Ù. ¶Ç´Â [Yes/No/Stop] Áú¹®ÀÌ ³ª¿À¸é "S"³ª "s" ÀÔ·Â [¼³Ä¡ÈÄ ÇØ¾ß ÇÒ ÀÏ] - MySQLÀ» ¼³Ä¡ÇßÀ» °æ¿ì ±âÁ¸ÀÇ MySQLÀ» »ç¿ëÇÏ°í ÀÖ´Ù¸é ±âÁ¸ÀÇ MySQL DB ÀÚ·á µð·ºÅ丮¸¦ /usr/local/mysql/var À̸§À¸·Î º¹»ç/À̵¿ÇؾßÇÕ´Ï´Ù. ±×·¯¸é ±âÁ¸ÀÇ password³ª DB ÀڷḦ ±×´ë·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. ½Ã½ºÅÛ ÀçºÎÆýà ÀÚµ¿À¸·Î MySQLÀ» ½ÃÀÛÇϵµ·Ï /etc/rc.d/rc.local ÆÄÀÏÀÇ Á¦ÀÏ ¸¶Áö¸· ÁÙ¿¡ ´ÙÀ½ÀÇ 3ÁÙÀ» Ãß°¡ÇÕ´Ï´Ù. if [ -s /usr/local/mysql/bin/safe_mysqld ] ; then /usr/local/mysql/bin/safe_mysqld & fi ¶Ç´Â ¼Ò½ºÆ®¸®¿¡¼­ mysql.server ÆÄÀÏÀ» /etc/rc.d/init.d/mysqld ·Î º¹»çÇÏ°í # /sbin/chkconfig mysqld on # /etc/rd.d/init.d/mysqld start ¸í·ÉÀ» ³»·ÁÁÝ´Ï´Ù. - Apache ¼³Ä¡ÈÄ(mod_ssl¸¦ ¼³Ä¡ÇÏÁö ¾Ê¾ÒÀ» °æ¿ì) ½Ã½ºÅÛ ÀçºÎÆýà ÀÚµ¿À¸·Î Apache¸¦ ½ÃÀÛÇϵµ·Ï /etc/rc.d/rc.local ÆÄÀÏÀÇ Á¦ÀÏ ¸¶Áö¸· ÁÙ¿¡ ´ÙÀ½ÀÇ 3ÁÙÀ» Ãß°¡ÇÕ´Ï´Ù. if [ -s /usr/local/apache/bin/apachectl ] ; then /usr/local/apache/bin/apachectl start & fi ¶ÇÇÑ /usr/local/apache/conf/httpd.conf ÆÄÀÏÀ» ±âÁ¸°Í°ú ºñ±³ÇÏ¿© ¼öÁ¤ Çϰųª ±³Ã¼ÇÕ´Ï´Ù. ¼öÁ¤/±³Ã¼ ÀÛ¾÷ÀÌ ³¡¾ÒÀ¸¸é, ¼³Ä¡ÈÄ ¾ÆÆÄÄ¡´Â »õ·Î ±¸µ¿ÇÏÁö ¾Ê¾Ò±â ¶§¹®¿¡ ¾ÆÆÄÄ¡¸¦ ±¸µ¿ÇØ Áà¾ßÇÕ´Ï´Ù. # /usr/local/apache/bin/apachectl start ¸í·ÉÀ» ³»·ÁÁÝ´Ï´Ù. - Apache ¼³Ä¡ÈÄ(mod_ssl¸¦ ¼³Ä¡ÇßÀ» °æ¿ì) À§¿Í µ¿ÀÏÇϵÇ, º¸¾ÈÇÁ·ÎÅäÄÝÀ» »ç¿ëÇÏ°íÀÚ ÇÑ´Ù¸é /usr/local/apache/bin/apachectl startssl ¸í·ÉÀÌ ´Ù¸¨´Ï´Ù. ¸¸¾à ¼³Ä¡ °úÁ¤Áß SSL key¸¦ ¸¸µéÁö ¾Ê¾Ò°Å³ª ´Ù½Ã ¸¸µé°í ½Í´Ù¸é ./install-sh "--makekey" ¸í·ÉÀ» ÁÖ¾î ´Ù½Ã Å°¸¦ »ý¼ºÇÒ ¼ö ÀÖ½À´Ï´Ù. - imapd/ipop3d log/{imapd,ipop3d} ÆÄÀÏÀ» ÀÖÀ» °æ¿ì¿¡ ÇØ´çµÇ¸ç »õ·Î ÄÄÆÄÀÏÇÑ ÀÌ µÎ°³ÀÇ µ¥¸óÀ» ¿¹ÀüÀÇ µ¥¸óÀ» ±³Ã¼ÇÒ ¼ö ÀÖ½À´Ï´Ù.(¿É¼Ç»çÇ×) - ZendOptimizer¸¦ ¼³Ä¡ÇßÀ» °æ¿ì log/done.log ÆÄÀÏÀ» ÂüÁ¶ - php_accelerator ¹öÀü 1.2x ¸¦ ¼³Ä¡Çß´Ù¸é ¹Ýµå½Ã php.ini ÆÄÀÏ¿¡¼­ ºÎºÐÀ» ¹Ù²Ù¾î¾ßÇÔ. ±âº»°ªÀº localhost(f5eaa9f7856d20312d755d6c29bc5d42)À¸·Î ¼³Á¤µÇ¾î ÀÖÀ½. http://www.php-accelerator.co.uk/activate.php ¿¡¼­ Å°¸¦ »ý¼ºÇؼ­ ºÎºÐÀ» ¹Ù²Þ. Á»´õ ÀÚ¼¼ÇÑ ¼³Á¤ ¹æ¹ý(´Ù¸¥¹æ¹ý)Àº ¼Ò½ºÆ®¸®¿¡¼­ 'CONFIGURATION' ÆÄÀÏ ÂüÁ¶ ¹öÀü 1.1x ´Â ºÎºÐ ¾øÀ½. [Changes] - 2002.04.03 CPU ARCH ¿É¼ÇÀ¸·Î Àû¿ë(./install-sh --help ·Î È®ÀÎ) php_accelerator 1.2x Áö¿ø IMAP-SSL Áö¿ø ±âŸ mysql ÄÄÆÄÀÏ ¿É¼Ç Ãß°¡ ±âŸ php ÄÄÆÄÀÏ ¿É¼Ç Ãß°¡ ±âŸ »ç¼ÒÇÑ ¹ö±× ÆÐÄ¡ - 2001.12.24 add cpu ARCH ºÎºÐÀû¿ë, ÇÔ¼öºÐ¸® - 2001.12.12 add php_accelerator, and bug fix - 2001.05.23 ±â¾ïÀÌ ??? - 2001.04.01 mod_ssl/openssl Áö¿ø "make certificate" ¸í·É½Ã ¸ØÃß´Â Çö»ó(µû¶ó¼­ ÁÖ¼®Ã³¸®ÇßÀ½) - ???? À§ÀÇ ³»¿ë Have a good day!!! EOF --------------------------------------------------------------------