{"id":2004,"date":"2018-03-09T00:00:08","date_gmt":"2018-03-08T16:00:08","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=281"},"modified":"2018-03-09T00:00:08","modified_gmt":"2018-03-08T16:00:08","slug":"centos6-7-enable-webtatic-repository-yum-install-php-55-56-70-71-72","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/centos6-7-enable-webtatic-repository-yum-install-php-55-56-70-71-72.html","title":{"rendered":"CentOS6\/7\u4f7f\u7528Webtatic  yum\u5305\u7ba1\u7406\u5b89\u88c5PHP5.5\/5.6\/7.0\/7.1\/7.2"},"content":{"rendered":"<p>\u4f5c\u4e3aWeb\u670d\u52a1\u5668\u6765\u8bf4\uff0c\u6211\u8fd8\u662f\u66f4\u559c\u6b22\u4f7f\u7528CentOS\u4f5c\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u7684\uff0c\u5c24\u5176\u662fCentOS7\uff0c\u6211\u4e2a\u4eba\u7684\u4ee5\u53ca\u516c\u53f8\u7684\uff0c\u6211\u80fd\u51b3\u5b9a\u7684\u90fd\u9009\u7684\u662fCentOS7\uff0c\u6bd5\u7adf\u7a33\u5b9a\uff0c\u8fd8\u719f\u6089\u3002<br \/>\n<!--more--><br \/>\n\u4f46\u662f\u6709\u4e00\u70b9\u4e0d\u65b9\u4fbf\u7684\u662f\uff0cCentOS6\/7\u81ea\u5e26\u7684\u4e00\u4e9b\u8f6f\u4ef6\u5305\u7248\u672c\u90fd\u592a\u4f4e\u4e86\uff0c\u6709\u7684\u660e\u663e\u4e0d\u7b26\u5408\u6211\u4eec\u7684\u9700\u6c42\uff0c\u6bd4\u5982\u8bf4\uff0cCentOS7\u81ea\u5e26\u7684PHP\u8fd8\u662fPHP5.4\uff0c\u4f46\u73b0\u5728\uff082018-03\uff09\uff0cPHP\u5b98\u65b9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u662f7.2\uff0c\u4e00\u4e9b\u5bf9PHP\u7248\u672c\u672c\u8eab\u6709\u9700\u6c42\u7684\u8f6f\u4ef6\u6ca1\u529e\u6cd5\u8fd0\u884c\u5728PHP5.4\uff0c\u6bd4\u5982\u8bf4Laravel\uff0c\u6211\u4eec\u8fd8\u662f\u8981\u60f3\u529e\u6cd5\u5347\u7ea7PHP\u7684\u7248\u672c\u3002<br \/>\n\u867d\u7136\u5f88\u591a\u8d44\u6599\u90fd\u662f\u5f15\u5bfc\u6211\u4eec\u81ea\u884c\u7f16\u8bd1\uff0c\u4f46\u662f\u4ece\u6211\u4e2a\u4eba\u4f7f\u7528Linux\u7684\u5efa\u8bae\u6765\u8bf4\uff0c\u9664\u975e\u662f\u5728\u6ee1\u8db3\u4e0d\u4e86\u6211\u4eec\u7684\u9700\u6c42\u4e0d\u5f97\u4e0d\u81ea\u884c\u7f16\u8bd1\u4ee5\u5916\uff0c\u6211\u4e2a\u4eba\u662f\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u6240\u9700\u8981\u7684\u5305\u3002<br \/>\n\u4e00\u65b9\u9762\u6765\u8bf4\uff0c\u7f16\u8bd1\u5404\u79cd\u5f00\u6e90\u8f6f\u4ef6\u9700\u8981\u5b89\u88c5\u4e00\u5927\u5806\u4f9d\u8d56\uff0c\u8fd9\u4e9b\u4f9d\u8d56\u53ef\u80fd\u7528\u4e00\u6b21\u5c31\u4e0d\u7528\u4e86\uff0c\u4f46\u662f\u53c8\u4e0d\u6562\u76f4\u63a5\u5378\u8f7d\uff0c\u4e07\u4e00\u5378\u8f7d\u9519\u4e86\uff0c\u4f1a\u5bfc\u81f4\u83ab\u540d\u5176\u5999\u7684\u95ee\u9898\uff0c\u82b1\u65f6\u95f4\u53bb\u4fee\u590d\u7684\u8bdd\u662f\u5728\u4e0d\u503c\u5f97\uff1b\u5176\u6b21\uff0c\u81ea\u884c\u7f16\u8bd1\u7684\u8f6f\u4ef6\u5305\uff0c\u540e\u7eed\u5347\u7ea7\u8981\u624b\u52a8\u6216\u8005\u7528\u4e00\u952e\u811a\u672c\u4e00\u4e2a\u4e2a\u53bb\u5347\u7ea7\uff0c\u4f46\u662f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5\u7684\u8bdd\uff0c\u6211\u4eec\u53ea\u9700\u7528\u5305\u7ba1\u7406\u5668\u81ea\u5e26\u7684\u5347\u7ea7\u547d\u4ee4\u5347\u7ea7\u5373\u53ef\uff1b\u518d\u8005\uff0c\u6211\u4eec\u81ea\u884c\u7f16\u8bd1\uff0c\u6211\u60f3\u5927\u591a\u6570\u4eba\u90fd\u6ca1\u6709\u90a3\u4e9b\u5f00\u6e90\u5305\u4ed3\u5e93\u7ef4\u62a4\u8005\u719f\u6089\u6574\u4e2a\u7cfb\u7edf\u53ca\u5404\u4e2a\u8f6f\u4ef6\u5305\u53ca\u60f3\u5bf9\u5e94\u7684\u4f9d\u8d56\uff0c\u6211\u4e2a\u4eba\u662f\u89c9\u5f97\uff0c\u6211\u4eec\u5e94\u8be5\u628a\u65f6\u95f4\u82b1\u5728\u66f4\u6709\u610f\u4e49\u7684\u4e8b\u60c5\u4e0a\uff0c\u4e13\u4e1a\u7684\u4e8b\u8ba9\u4e13\u4e1a\u7684\u4eba\u53bb\u505a\u3002<br \/>\n\u8bf4\u5230\u8fd9\uff0c\u6211\u4eecPHP\u6709\u4e2a\u975e\u5b98\u65b9\u7684\u4f46\u662f\u6bd4\u8f83\u6210\u719f\u7684\u7b2c\u4e09\u65b9\u6e90\uff0c\u53ef\u4ee5\u5b89\u88c5\u4ecePHP5\u5230PHP7\u7684\u5404\u4e2a\u5b50\u7248\u672c\u7684PHP\uff0c\u4e0d\u7528\u81ea\u884c\u7f16\u8bd1\uff0c\u53ea\u9700\u6dfb\u52a0\u76f8\u5173\u7684\u6e90\uff0c\u7136\u540e\u7528\u5305\u7ba1\u7406\u5668\u5c31\u80fd\u5b8c\u6210\u5b89\u88c5\u3002<br \/>\n\u9996\u5148\uff0c\u4e0d\u7ba1\u662fCentOS6\u8fd8\u662fCentOS7\uff0c\u9700\u8981\u542f\u7528Webtatic\u6e90\uff0c\u90fd\u9700\u8981\u5148\u542f\u7528EPEL\u6e90\uff1a<\/p>\n<pre><code>yum install epel-release -y\n<\/code><\/pre>\n<p>\u7136\u540e\u542f\u7528webstatic\u6e90\uff1a<br \/>\nCentOS6\uff1a<\/p>\n<pre><code>rpm -Uvh https:\/\/mirror.webtatic.com\/yum\/el6\/latest.rpm\n<\/code><\/pre>\n<p>CentOS7:<\/p>\n<pre><code>rpm -Uvh https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm\n<\/code><\/pre>\n<p>\u6ca1\u9519\uff0c\u5c31\u8fd9\u4e48\u7b80\u5355\u4e24\u6b65\u5c31\u80fd\u542f\u7528webstatic\u6e90\u4e86\uff0c\u6839\u636e\u67e5\u770b\u8f6f\u4ef6\u5305\uff0c\u6211\u53d1\u73b0\u8fd9\u4e2awebstatic\u6e90\u63d0\u4f9b\u4e86\u5982\u4e0b\u7ec4\u4ef6\uff1a<\/p>\n<pre><code>CentOS7:\nPHP: 5.5 5.6 7.0 7.1 7.2\nNginx: 1.10+(\u76ee\u524d\u662f1.12.1)\n<\/code><\/pre>\n<pre><code>CentOS6:\nPHP: 5.5 5.6 7.0 7.1\nMySQL: MySQL 5.5\n<\/code><\/pre>\n<p>\u5982\u4e0a\u7248\u672c\uff0c\u5982\u679c\u60f3\u8981\u67e5\u770b\u5177\u4f53\u6709\u54ea\u4e9b\u5305\uff0c\u53ef\u4ee5\u7528\u8f6f\u4ef6\u5305\u641c\u7d22\u7684\u529e\u6cd5\uff0c\u6bd4\u5982\u8bf4\uff0c\u67e5\u770b\u6240\u6709\u7684PHP5.6\u7684\u5305\uff1a<\/p>\n<pre><code>yum search php56w\n<\/code><\/pre>\n<p>\u6216\u8005\u76f4\u63a5\uff1a<\/p>\n<pre><code>yum search php5\n<\/code><\/pre>\n<p>\u66f4\u52a0\u7b80\u5355\u7c97\u66b4\u7684\uff0c\u76f4\u63a5\u5230\u8fd9\u91cc\u67e5\u770b\uff1a<\/p>\n<pre><code>https:\/\/repo.webtatic.com\/yum\/\n<\/code><\/pre>\n<p>\u6765\u81eawebstatic\u7684\u5305\uff0c\u8f6f\u4ef6\u5305\u540e\u9762\u90fd\u5e26\u4e00\u4e2aw\u5b57\u7b26\uff0c\u60f3\u8981\u90a3\u4e2a\u5305\u76f4\u63a5\u641c\u7d22\u5c31\u884c\u3002<br \/>\n\u4e2a\u4eba\u6765\u8bf4\uff0c\u6211\u8fd8\u662f\u633a\u559c\u6b22Webstatic\u6e90\u7684\uff0c\u80fd\u76f4\u63a5\u5305\u7ba1\u7406\u5b89\u88c5\u5404\u4e2a\u7248\u672c\u7684PHP\uff0c\u8fd9\u4e2a\u535a\u5ba2\u5305\u62ec\u516c\u53f8\u7684\u5404\u4e2a\u9879\u76ee\u90fd\u4f7f\u7528\u4e86Webstatic\uff0c\u7a0b\u5e8f\u7a33\u5b9a\u8fd0\u884c\u4e2d\uff0c\u5982\u679c\u4f60\u60f3\u548c\u6211\u4e00\u6837\u4e0d\u60f3\u628a\u65f6\u95f4\u82b1\u5230\u6298\u817e\u670d\u52a1\u5668\u8fd0\u884c\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528Webstatic\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u4e3aWeb\u670d\u52a1\u5668\u6765\u8bf4\uff0c\u6211\u8fd8\u662f\u66f4\u559c\u6b22\u4f7f\u7528CentOS\u4f5c\u4e3a\u64cd\u4f5c\u7cfb\u7edf\u7684\uff0c\u5c24\u5176\u662fCentOS7\uff0c\u6211\u4e2a\u4eba\u7684\u4ee5\u53ca\u516c\u53f8\u7684\uff0c\u6211 &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/centos6-7-enable-webtatic-repository-yum-install-php-55-56-70-71-72.html\"> <span class=\"screen-reader-text\">CentOS6\/7\u4f7f\u7528Webtatic  yum\u5305\u7ba1\u7406\u5b89\u88c5PHP5.5\/5.6\/7.0\/7.1\/7.2<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[182],"tags":[79],"class_list":["post-2004","post","type-post","status-publish","format-standard","hentry","category-linux","tag-php"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/2004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=2004"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/2004\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=2004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=2004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=2004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}