########################## # PHP ¸¦ DSO ·Î ¼³Ä¡Çϱâ ########################## ÀÛ¼ºÀÚ : ÀåÇüÈ­ ÀÛ¼ºÀÏ: 2001 ¼öÁ¤ÀÏ: 2002. 05. 07 : --with-config-file-path ¿É¼Ç¼³¸í Ãß°¡ ################################################################################ PHP 4.x Àΰæ¿ì --with-gd °¡ ±âº»À¸·Î ¼³Á¤µÇ¾î ÀÖ´Ù. ÀÏ´Ü. GD °¡ ¼³Ä¡ µÇ¾ú´ÂÁö »ìÆìºÁ¾ß ÇÑ´Ù. GD °¡ ¼³Ä¡µÇÁö ¾Ê¾ÒÀ¸¸é --without-gd ¿É¼ÇÀ» »ç¿ëÇØ¾ß ÇÑ´Ù. 1. GD È®ÀÎÇϱâ - RPM À¸·Î ¼³Ä¡ÇÑ °æ¿ì user> rpm -qa|grep gd gd-1.8.3-7 - ¼Ò½º·Î ¼³Ä¡ÇÑ °æ¿ì user> locate libgd.a /usr/lib/libgd.a gd ¶óÀ̺귯¸®°¡ /usr/lib/ ¿¡ ¼³Ä¡ µÇ¾î ÀÖÀ¸¹Ç·Î php ¼³Ä¡½Ã --with-gd=/usr ¿É¼ÇÀ» »ç¿ëÇØ¾ß ÇÑ´Ù. º¸Åë /usr/local/lib ¿¡ ¼³Ä¡ÇϹǷΠ--with-gd=/usr/local À» ¾²°Ô µÈ´Ù. 2. PHP ¼³Ä¡Çϱâ - ²À ÇÑÁÙ·Î Àû¾î¾ß ÇÑ´Ù. - MySQL À» rpm À¸·Î ¼³Ä¡ÇßÀ¸¸é --with-mysql=/usr ¿É¼ÇÀ» ÁØ´Ù. root> ./configure --with-apxs=/usr/local/apache/bin/apxs \ --with-gd=/usr/local/gd-1.8.3 \ --enable-track-vars \ --disable-debug \ root> make root> make install ############# # ¿É¼Ç ¼³¸í ############# Âü°í : http://www.phpschool.com/bbs/view.html?id=5726&code=tnt&start=0&mode=&s_que=&field=&operator= --add-module=src/modules/standard/mod_info.c ==> ¼­µåÆÄƼ¸ðµâ ȤÀº ¸ðµâ¼Ò½º¸¦ src/modules/extra¹Ø¿¡ º¹»çÇÏ¿© ¼³Á¤ÆÄÀÏ¿¡ °ü·ÃµÈ ¿£Æ®¸®¸¦ Ãß°¡(¾ÆÆÄÄ¡¸ðµâ) --enable-module=ssl ==> mod_ssl¿¬µ¿½Ã ÇÊ¿äÇÑ ¿É¼Ç --enable-shared=ssl ==> mod_sslÀ» DSO·Î ¼³Ä¡ÇϱâÀ§ÇØ DSO¿¡¼­´Â enable-module°ú enable-shared´Â ½ÖÀ¸·Î ¿Í¾ßÇÑ´Ù --enable-module=so ==> src/Configuration.tmplÆÄÀÏ¿¡¼­ enableÀ̳ª disableÇÏ°í ½ÍÀº°Í --enable-rule=SHARED_CORE ==> DSO·Î ¼³Ä¡ÇϱâÀ§ÇÑ ¿É¼Ç(rule) --enable-shared=max ==> src/modules/standard ¹Ø¿¡ ¸ðµç so ¸ðµâÀ» DSO·Î ¿Ã¸² --with-config-file-path=/usr/local/apache/conf ==> php.iniÀÇ °æ·Î¸¦ Á¤ÇØÁÖ´Â ¿É¼Ç #################### # DSO È®ÀÎÇϱâ #################### /usr/local/apache/binÀ¸·Î À̵¿ÇÕ´Ï´Ù. ÀÌ°÷¿¡¼­ "./httpd -l"À» ½ÇÇàÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù. À̶§ ´ÙÀ½°ú °°Àº ÆÄÀϵéÀÌ ÀÖÀ¸¸é Á¦´ë·Î ¼³Ä¡°¡ µÈ °ÍÀÌ´Ù. root> cd /usr/local/apache/bin/ root> ./httpd -l Compiled-in modules: http_core.c mod_so.c ÇÑ°¡Áö µ¡ºÙÀ̸é /usr/local/apache/bin¿¡ apxs¶ó´Â È­ÀÏÀÌ ÀÖ´ÂÁö È®ÀÎÇØ º¸±â ¹Ù¶ø´Ï´Ù.