{"id":75,"date":"2012-06-19T13:27:05","date_gmt":"2012-06-19T05:27:05","guid":{"rendered":"http:\/\/xlight.me\/blog\/?p=75"},"modified":"2023-05-29T09:51:51","modified_gmt":"2023-05-29T01:51:51","slug":"dreamhost%e4%b8%8a%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85apc%e7%bb%99php%e5%8a%a0%e9%80%9f","status":"publish","type":"post","link":"https:\/\/xlight.me\/blog\/2012\/06\/dreamhost%e4%b8%8a%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85apc%e7%bb%99php%e5%8a%a0%e9%80%9f\/","title":{"rendered":"dreamhost\u4e0a\u5feb\u901f\u5b89\u88c5APC\u52a0\u901f\uff0c\u4e0d\u7528\u7f16\u8bd1php"},"content":{"rendered":"<p>eAccelerator\u3001xCache\u3001APC \u662fphp\u5e38\u89c1\u7684\u4e09\u4e2a\u52a0\u901f\u6a21\u5757\uff0c\u539f\u7406\u57fa\u672c\u4e00\u6837\uff0c\u6027\u80fd\u5dee\u522b\u4e0d\u5927\uff0c<\/p>\n<p>\u4e3a\u4e86\u7ed9Dreamhost\u4e0a\u7684\u5c0f\u7ad9\u52a0\u901f\u4e00\u4e0b\uff0c\u6240\u4ee5\u88c5\u4e86\u4e00\u4e2aAPC\uff0c<\/p>\n<p>\u4ecephp5.3\u5f00\u59cb\uff0c\u6211\u4eec\u5df2\u7ecf\u4e0d\u9700\u8981\u5b8c\u5168\u81ea\u5df1\u7f16\u8bd1php\u6765\u5b9a\u5236\u4e86php.ini\u4e86\uff0c\u6240\u4ee5\u53ea\u9700\u8981\u81ea\u5df1\u7f16\u8bd1APC\u5373\u53ef\u3002<\/p>\n<p><strong>\u4e00\u3001\u5207\u6362\u5230php 5.3<\/strong><br \/>\n\u5728Panel-&gt;Manage Domains, \u9009\u62e9edit\u5bf9\u5e94\u57df\u540d\u7684Web Hosting\uff0c<br \/>\n\u5982\u4e0b\u56fe\u5c06php\u4ece5.2.x\u6539\u4e3a5.3.x fastCGI\uff0c<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-76\" title=\"Dreamhost php5.3\" src=\"https:\/\/xlight.me\/blog\/wp-content\/uploads\/2012\/04\/\u5c4f\u5e55\u5feb\u7167-2012-04-19-\u4e0a\u534811.57.58-300x50.png\" alt=\"Dreamhost php5.3\" width=\"300\" height=\"50\" srcset=\"https:\/\/xlight.me\/blog\/wp-content\/uploads\/2012\/04\/\u5c4f\u5e55\u5feb\u7167-2012-04-19-\u4e0a\u534811.57.58-300x50.png 300w, https:\/\/xlight.me\/blog\/wp-content\/uploads\/2012\/04\/\u5c4f\u5e55\u5feb\u7167-2012-04-19-\u4e0a\u534811.57.58.png 693w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u4fdd\u5b58\u5373\u53ef<\/p>\n<p><strong>\u4e8c\u3001\u7f16\u8bd1APC<\/strong><\/p>\n<p><code><br \/>\nwget http:\/\/pecl.php.net\/get\/APC<br \/>\ntar -zxvf APC<br \/>\ncd APC-3.1.10\/<br \/>\n\/usr\/local\/php53\/bin\/phpize<br \/>\n.\/configure --with-php-config=\/usr\/local\/php53\/bin\/php-config; make<br \/>\nmkdir ~\/.php\/5.3<br \/>\nmv modules\/apc.so ~\/.php\/5.3\/<br \/>\necho \"extension = \/home\/xLight\/.php\/5.3\/apc.so\" &gt; ~\/.php\/5.3\/phprc<\/code><\/p>\n<p>\u5f88\u7b80\u5355\u5427\u3002<\/p>\n<p>\u53c2\u8003\uff1ahttp:\/\/wiki.dreamhost.com\/APC<\/p>\n","protected":false},"excerpt":{"rendered":"<p>eAccelerator\u3001xCache\u3001APC \u662fphp\u5e38\u89c1\u7684\u4e09\u4e2a\u52a0\u901f\u6a21\u5757\uff0c\u539f\u7406\u57fa\u672c\u4e00\u6837\uff0c\u6027\u80fd\u5dee\u522b\u4e0d\u5927\uff0c \u4e3a\u4e86\u7ed9Dreamhost\u4e0a\u7684\u5c0f\u7ad9\u52a0\u901f\u4e00\u4e0b\uff0c\u6240\u4ee5\u88c5\u4e86\u4e00\u4e2aAPC\uff0c \u4ecephp5.3\u5f00\u59cb\uff0c\u6211\u4eec\u5df2\u7ecf\u4e0d\u9700\u8981\u5b8c\u5168\u81ea\u5df1\u7f16\u8bd1php\u6765\u5b9a\u5236\u4e86php.ini\u4e86\uff0c\u6240\u4ee5\u53ea\u9700\u8981\u81ea\u5df1\u7f16\u8bd1APC\u5373\u53ef\u3002 \u4e00\u3001\u5207\u6362\u5230php 5.3 \u5728Panel-&gt;Manage Domains, \u9009\u62e9edit\u5bf9\u5e94\u57df\u540d\u7684Web Hosting\uff0c \u5982\u4e0b\u56fe\u5c06php\u4ece5.2.x\u6539\u4e3a5.3.x fastCGI\uff0c \u4fdd\u5b58\u5373\u53ef \u4e8c\u3001\u7f16\u8bd1APC wget http:\/\/pecl.php.net\/get\/APC tar -zxvf APC cd APC-3.1.10\/ \/usr\/local\/php53\/bin\/phpize .\/configure &#8211;with-php-config=\/usr\/local\/php53\/bin\/php-config; make mkdir ~\/.php\/5.3 mv modules\/apc.so ~\/.php\/5.3\/ echo &#8220;extension = \/home\/xLight\/.php\/5.3\/apc.so&#8221; &gt; ~\/.php\/5.3\/phprc \u5f88\u7b80\u5355\u5427\u3002 \u53c2\u8003\uff1ahttp:\/\/wiki.dreamhost.com\/APC<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[21,19,18,22,51,20],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-5-3","tag-apc","tag-dreamhost","tag-eaccelerator","tag-php","tag-xcache"],"_links":{"self":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/comments?post=75"}],"version-history":[{"count":10,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":868,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/posts\/75\/revisions\/868"}],"wp:attachment":[{"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/media?parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/categories?post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xlight.me\/blog\/wp-json\/wp\/v2\/tags?post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}