{"id":252,"date":"2011-10-22T14:29:16","date_gmt":"2011-10-22T06:29:16","guid":{"rendered":"http:\/\/www.84tt.com\/web\/?p=252"},"modified":"2011-10-22T14:34:56","modified_gmt":"2011-10-22T06:34:56","slug":"%e5%8d%87%e7%ba%a7centos%e4%b8%adphp%e5%88%b05-2-x","status":"publish","type":"post","link":"https:\/\/www.84tt.com\/web\/?p=252","title":{"rendered":"\u5347\u7ea7CentOS\u4e2dPHP\u52305.2.x"},"content":{"rendered":"<p>\u5728VPS\u4e0a\u6709\u4e2awordpress\u7ad9\u70b9\u9700\u8981\u5347\u7ea7\u5230\u6700\u65b0\u7248\uff0c\u800cVPS\u7684LNMP\u73af\u5883\u5c1a\u505c\u7559\u5728PHP5.1\uff0c\u672a\u6ee1\u8db3<a href=\"http:\/\/wordpress.org\/news\/2011\/07\/gershwin\/\" target=\"_blank\">WP3.2\u7248<\/a>\u9700\u8fd0\u884c\u5728PHP5.2\u4ee5\u4e0a\u7684<a href=\"http:\/\/wordpress.org\/news\/2010\/07\/eol-for-php4-and-mysql4\/\" target=\"_blank\">\u8981\u6c42<\/a>\u3002\u800c\u7cfb\u7edfCentOS\u4e5f\u6ca1\u6709\u63d0\u4f9b\u5b98\u65b9\u6b63\u5f0f\u66f4\u65b0\uff0c\u60f3\u76f4\u63a5\u7528yum\u66f4\u65b0\u9047\u5230\u56f0\u96be\u3002\u4e8e\u662fGoogle\u4e4b\uff0c\u7ecf\u5b9e\u8df5\u540e\u987a\u5229\u6709\u6548\uff0c\u603b\u7ed3\u6b65\u9aa4\uff0c\u5907\u5fd8\u4e4b\u7528\u3002<\/p>\n<p>1. \u7f16\u8f91CentOS-Base.repo\u6587\u4ef6\u3002<\/p>\n<blockquote><p>\nvim \/etc\/yum.repos.d\/CentOS-Base.repo\n<\/p><\/blockquote>\n<p>2. \u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\u5728CentOS-Base.repo\u6587\u4ef6\u7684\u6700\u540e\uff1a<\/p>\n<blockquote><p>\n[c5-testing]<br \/>\nname=CentOS-5 Testing<br \/>\nbaseurl=http:\/\/dev.centos.org\/centos\/$releasever\/testing\/$basearch\/<br \/>\nenabled=0<br \/>\ngpgcheck=1<br \/>\ngpgkey=http:\/\/dev.centos.org\/centos\/RPM-GPG-KEY-CentOS-testing<\/p>\n<p># CentOS-Testing:<br \/>\n# !!!! CAUTION !!!!<br \/>\n# This repository is a proving grounds for packages on their way to CentOSPlus and CentOS Extras.<br \/>\n# They may or may not replace core CentOS packages, and are not guaranteed to function properly.<br \/>\n# These packages build and install, but are waiting for feedback from testers as to<br \/>\n# functionality and stability. Packages in this repository will come and go during the<br \/>\n# development period, so it should not be left enabled or used on production systems without due<br \/>\n# consideration.\n<\/p><\/blockquote>\n<p>3. \u68c0\u67e5\u9700\u8981\u66f4\u65b0\u7684PHP\u76f8\u5173\u7ec4\u4ef6\u5217\u8868\u3002<\/p>\n<blockquote><p>\nyum &#8211;disablerepo=* &#8211;enablerepo=c5-testing check-update php*\n<\/p><\/blockquote>\n<p>4. \u5982\u679c\u5217\u51fa\u6765\u7684\u7ed3\u679c\u6ca1\u6709\u95ee\u9898\uff0c\u5219\u5f00\u59cb\u8fdb\u884c\u66f4\u65b0\u3002<\/p>\n<blockquote><p>\nyum &#8211;disablerepo=* &#8211;enablerepo=c5-testing update php*\n<\/p><\/blockquote>\n<p>5. \u66f4\u65b0\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u670d\u52a1\u5668\u7aef\u68c0\u67e5PHP\u7248\u672c\u3002<\/p>\n<blockquote><p>\nphp -v\n<\/p><\/blockquote>\n<p>6. \u91cd\u542f\u670d\u52a1\u3002<\/p>\n<blockquote><p>\n\/etc\/init.d\/php-fastcgi restart<br \/>\nservice nginx restart\n<\/p><\/blockquote>\n<p>\u4e4b\u540e\u5373\u53ef\u6b63\u5e38\u7528wordpress\u5185\u7f6e\u7684update\u5347\u7ea7\u7a0b\u5e8f\u5230\u6700\u65b0\u7248\u672c\u4e86\u3002<\/p>\n<p>\u66f4\u591a\u5173\u4e8eCentOS 5.x\u5347\u7ea7\u81ea\u5e26PHP 5.1.x\u5230PHP 5.2.x\u7684\u4fe1\u606f\uff0c\u4e5f\u53ef\u4ee5\u53c2\u8003CentOS\u5b98\u65b9Wiki\u4e2d\u7684<a href=\"http:\/\/wiki.centos.org\/HowTos\/PHP_5.1_To_5.2\" target=\"_blank\">\u76f8\u5173\u6587\u6863<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728VPS\u4e0a\u6709\u4e2awordpress\u7ad9\u70b9\u9700\u8981\u5347\u7ea7\u5230\u6700\u65b0\u7248\uff0c\u800cVPS\u7684LNMP\u73af\u5883\u5c1a\u505c\u7559\u5728PHP5.1\uff0c\u672a\u6ee1\u8db3WP3 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,5],"tags":[75,74,76,173],"class_list":["post-252","post","type-post","status-publish","format-standard","hentry","category-software","category-wordpress","tag-centos","tag-php","tag-vps","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=\/wp\/v2\/posts\/252","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=252"}],"version-history":[{"count":0,"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=\/wp\/v2\/posts\/252\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.84tt.com\/web\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}