{"id":189,"date":"2009-04-23T14:12:15","date_gmt":"2009-04-23T14:12:15","guid":{"rendered":"http:\/\/newblog.mix1009.net\/?p=189"},"modified":"2009-04-23T14:12:15","modified_gmt":"2009-04-23T14:12:15","slug":"centos-4%ec%97%90%ec%84%9c-php-5%ec%99%80-xcache-%ec%86%8c%ec%8a%a4%eb%a1%9c-%ec%84%a4%ec%b9%98","status":"publish","type":"post","link":"https:\/\/mix1009.net\/?p=189","title":{"rendered":"CentOS 4\uc5d0\uc11c PHP 5\uc640 XCache \uc18c\uc2a4\ub85c \uc124\uce58"},"content":{"rendered":"<p>lighttpd\uc640 \ubcd1\ud589\ud558\uc5ec \uc4f0\uace0 \uc788\ub294\ub370, CentOS 4 \ubc84\uc804\uc5d0\uc11c\ub294 SRPM\uc774 PHP4 \ubc84\uc804\uc774 \ub514\ud3f4\ud2b8\ub85c \ub418\uc5b4 \uc788\uc5b4\uc11c, PHP5\ub294 \uc18c\uc2a4\ub97c \ubc1b\uc544\uc11c \uc124\uce58\ud588\uc2b5\ub2c8\ub2e4. .\/configure\ud560\ub54c \uc778\uc790\uc8fc\ub294\uac8c \uc0dd\uac01\ucc98\ub7fc \ub418\uc9c0 \uc54a\uc544\uc11c \uc880 \ud5e4\ub9f8\uc2b5\ub2c8\ub2e4. \uc624\ub79c\ub9cc\uc5d0 PHP \uc18c\uc2a4\ub97c \uc9c1\uc811 \ubc1b\uc544\uc11c \uc124\uce58\ud574\ubd24\uc2b5\ub2c8\ub2e4.<\/p>\n<div style=\"padding: 10px; background-color: rgb(201, 237, 255);\">.\/configure &#8211;enable-fastcgi &#8211;enable-discard-path<br \/>\n&#8211;enable-force-cgi-redirect &#8211;with-mysql=\/usr\/bin\/ &#8211;with-libdir=lib64&nbsp; &#8230;\uae30\ud0c0 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc124\uc815\n<\/div>\n<p>\uc55e\uc5d0 &#8211;enable-fastcgi enable-discard-path<br \/>\n&#8211;enable-force-cgi-redirect \ubd80\ubd84\uc740 lighttpd\uc640 fastcgi\uc640 \uc5f0\ub3d9\ud558\uae30 \uc704\ud574\uc11c \ud544\uc694\ud55c \ubd80\ubd84\uc785\ub2c8\ub2e4.<\/p>\n<p>&#8211;with-mysql=\/usr\/bin\/ &#8211;with-libdir=lib64\ub294 mysql \ubaa8\ub4c8\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d \ud55c\uac83\uc778\ub370, 64bit MySQL \ub77c\uc774\ube0c\ub7ec\ub9ac\uac00 \uae54\ub824\uc788\uc5b4\uc11c &#8211;with-mysql \uc635\uc158\ub9cc \uc8fc\uba74 mysql \ub77c\uc774\ube0c\ub7ec\ub9ac\ub97c \ubabb\ucc3e\ub354\uad70\uc694.<\/p>\n<p>\uc608\uc804\uc5d0 SRPM\uc744 \uc124\uce58\ud558\uba74\uc11c \ud544\uc694\ud55c devel \ud328\ud0a4\uc9c0\ub4e4\uc740 \ubaa8\ub450 \uc124\uce58\ub418\uc5b4\uc788\uc5b4\uc11c \ub530\ub85c yum\uc744 \ud1b5\ud55c \ud328\ud0a4\uc9c0 \uc124\uce58\ub294 \uc5c6\uc5c8\uc2b5\ub2c8\ub2e4 ^^<\/p>\n<p>\uc124\uce58\ub294 \uac04\ub2e8\ud788 sapi\/cgi\/php-cgi\ub97c \/usr\/local\/bin \ucabd\uc5d0 \ubcf5\uc0ac\ud558\uace0, \/usr\/local\/lib\/php.ini\ub97c \uc801\ub2f9\ud788 \ub9cc\ub4e4\uc5b4\uc8fc\uace0, lighttpd.conf\uc5d0\uc11c \uc0c8\ub85c\uc6b4 php-cgi \ucc38\uc870\ud558\ub3c4\ub85d \ubcc0\uacbd\ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc6f9\uc11c\ubc84 \uc7ac\uc2dc\uc791\ud558\uc5ec \uc815\uc0c1\ub3d9\uc791\ud558\ub294\uac70 \ud655\uc778\ud558\uace0 make install\ud558\uace0, \uc804\uc5d0 \uc0ac\uc6a9\ud558\ub358 PHP\uad00\ub828 RPM\ub4e4\uc744 \uc0ad\uc81c\ud588\uc2b5\ub2c8\ub2e4. \ucef4\ud30c\uc77c\ud560\ub54c RPM\ub3c4 \uac19\uc774 \uc124\uce58\ub418\uc5b4 \uc788\uc73c\uba74 \ubb38\uc81c\uac00 \uc0dd\uae30\ub354\uad70\uc694.<\/p>\n<p><a href=\"http:\/\/xcache.lighttpd.net\" target=\"_blank\">XCache<\/a> \uc18c\uc2a4 \ubc1b\uc544\uc11c \uc555\ucd95\ud480\uace0 \uc544\ub798\ub300\ub85c \ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<pre><div style=\"padding: 10px; background-color: rgb(201, 237, 255);\"><span class=\"code-user\">$ <span class=\"code-input\">phpize<\/span><\/span><br><span class=\"code-user\">$ <span class=\"code-input\">.\/configure --enable-<span class=\"searchword0\">xcache<\/span><\/span><\/span><br><span class=\"code-user\">$ <span class=\"code-input\">make<\/span><\/span><br><span class=\"code-user\">$ <span class=\"code-input\">su<\/span><\/span>do -s<br><span class=\"code-root\"># <span class=\"code-input\">make install<\/span><\/span><br><span class=\"code-root\"># <span class=\"code-input\">cat <span class=\"searchword0\">xcache<\/span>.ini &gt;&gt; \/usr\/local\/etc\/php.ini<\/span><\/span><br># vi \/usr\/local\/etc\/php.ini<\/div><br><br>php.ini \ud30c\uc77c\uc5d0\uc11c zend_externsion\uc5d0\uc11c xcache.so \ucc38\uc870\ud558\ub294 \ubd80\ubd84\uc774 \uc788\ub294\ub370 \uacbd\ub85c\uc5d0\uc11c \ubc84\uc804\uc815\ubcf4\ub97c \uc218\ub3d9\uc73c\ub85c \uace0\uccd0\uc57c\ud569\ub2c8\ub2e4.<br><br><div style=\"padding: 10px; background-color: rgb(208, 255, 157);\">zend_extension = \/usr\/local\/lib\/php\/extensions\/non-debug-non-zts-xxx\/xcache.so<br>&nbsp; &nbsp;\u2192<br>zend_extension = \/usr\/local\/lib\/php\/extensions\/no-debug-non-zts-20060613\/xcache.so<\/div><br><br>\uc6f9\uc11c\ubc84 \uc7ac\uc2dc\uc791\ud558\uace0 phpinfo() \ud638\ucd9c\ud574\uc11c \ucd9c\ub825\ud558\uba74 xcache \uc815\uc0c1 \ub3d9\uc791\ud558\ub294\uac70 \ud655\uc778\ud560\uc218 \uc788\uc2b5\ub2c8\ub2e4.<br><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>lighttpd\uc640 \ubcd1\ud589\ud558\uc5ec \uc4f0\uace0 \uc788\ub294\ub370, CentOS 4 \ubc84\uc804\uc5d0\uc11c\ub294 SRPM\uc774 PHP4 \ubc84\uc804\uc774 \ub514\ud3f4\ud2b8\ub85c \ub418\uc5b4 \uc788\uc5b4\uc11c, PHP5\ub294 \uc18c\uc2a4\ub97c \ubc1b\uc544\uc11c \uc124\uce58\ud588\uc2b5\ub2c8\ub2e4. .\/configure\ud560\ub54c \uc778\uc790\uc8fc\ub294\uac8c \uc0dd\uac01\ucc98\ub7fc \ub418\uc9c0 \uc54a\uc544\uc11c \uc880 \ud5e4\ub9f8\uc2b5\ub2c8\ub2e4. \uc624\ub79c\ub9cc\uc5d0 PHP \uc18c\uc2a4\ub97c \uc9c1\uc811 \ubc1b\uc544\uc11c \uc124\uce58\ud574\ubd24\uc2b5\ub2c8\ub2e4. .\/configure &#8211;enable-fastcgi &#8211;enable-discard-path &#8211;enable-force-cgi-redirect &#8211;with-mysql=\/usr\/bin\/ &#8211;with-libdir=lib64&nbsp; &#8230;\uae30\ud0c0 \ub77c\uc774\ube0c\ub7ec\ub9ac \uc124\uc815 \uc55e\uc5d0 &#8211;enable-fastcgi enable-discard-path &#8211;enable-force-cgi-redirect \ubd80\ubd84\uc740 lighttpd\uc640 fastcgi\uc640 \uc5f0\ub3d9\ud558\uae30 \uc704\ud574\uc11c \ud544\uc694\ud55c \ubd80\ubd84\uc785\ub2c8\ub2e4. &#8211;with-mysql=\/usr\/bin\/ &#8211;with-libdir=lib64\ub294 mysql \ubaa8\ub4c8\uc744 \uc0ac\uc6a9\ud558\ub3c4\ub85d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[54,172,173,174],"_links":{"self":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/posts\/189"}],"collection":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=189"}],"version-history":[{"count":0,"href":"https:\/\/mix1009.net\/index.php?rest_route=\/wp\/v2\/posts\/189\/revisions"}],"wp:attachment":[{"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mix1009.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}