{"id":40,"date":"2021-11-03T03:45:06","date_gmt":"2021-11-02T19:45:06","guid":{"rendered":"https:\/\/www.feeek.com\/?p=40"},"modified":"2021-11-03T03:45:06","modified_gmt":"2021-11-02T19:45:06","slug":"php%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.feeek.com\/?p=40","title":{"rendered":"PHP\u5b89\u88c5"},"content":{"rendered":"\n<p>#yum -y install php php-mysql gd php-gd gd-devel php-xml php-common php-mbstring php-ldap php-pear php-xmlrpc php-imap<\/p>\n\n\n\n<p>\u539f\u56e0\uff1a<\/p>\n\n\n\n<p>CentOS 7\u4e0byum\u5b89\u88c5PHP\u7248\u672c\u9ed8\u8ba4\u662f5.4\u7684\uff0c\u4f46\u65b0\u6846\u67b6\u8981\u6c42PHP\u7248\u672c\u57287\u4ee5\u4e0a\uff0c\u6240\u4ee5\u628aPHP\u5347\u7ea7\u4e00\u4e0b\u4e86\u3002<\/p>\n\n\n\n<p>\u589e\u52a0\u5b89\u88c5apache\u6269\u5c55\u5305:<\/p>\n\n\n\n<p>#yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql<br>#echo &#8220;&lt;?php phpinfo(); ?&gt;&#8221; &gt; \/var\/www\/www\/php.php<\/p>\n\n\n\n<p>\u67e5\u770byum\u7684\u53ef\u5b89\u88c5\u7684php\u7248\u672c\u5217\u8868\uff1a<\/p>\n\n\n\n<p>1 yum provides php<\/p>\n\n\n\n<p>\u5f00\u59cb\u5347\u7ea7PHP\u66f4\u65b0\u6e90\uff1a<\/p>\n\n\n\n<p>1 rpm -Uvh <a href=\"https:\/\/mirror.webtatic.com\/yum\/el7\/epel-release.rpm\">https:\/\/mirror.webtatic.com\/yum\/el7\/epel-release.rpm<\/a><\/p>\n\n\n\n<p>2 rpm -Uvh <a href=\"https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm\">https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm<\/a><\/p>\n\n\n\n<p>3 yum remove php-common -y&nbsp;<\/p>\n\n\n\n<p>4 yum install -y php72w php72w-opcache php72w-xml php72w-mcrypt php72w-gd php72w-devel php72w-mysql php72w-intl php72w-mbstring&nbsp;<\/p>\n\n\n\n<p>\u67e5\u770b\u7248\u672c\uff1a<\/p>\n\n\n\n<p>1 php -v<\/p>\n\n\n\n<p>2 PHP 7.2.14 (cli) (built: Jan 12 2019 12:47:33) ( NTS )<\/p>\n\n\n\n<p>3 Copyright (c) 1997-2018 The PHP Group<\/p>\n\n\n\n<p>4 Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies<\/p>\n\n\n\n<p>5&nbsp;&nbsp;&nbsp;&nbsp; with Zend OPcache v7.2.14, Copyright (c) 1999-2018, by Zend Technologies<\/p>\n\n\n\n<p>&nbsp;\u5b89\u88c5php fpm\uff1a<\/p>\n\n\n\n<p>yum install php72w-fpm<\/p>\n\n\n\n<p>systemctl start php-fpm.service \u3010\u542f\u52a8\u3011<\/p>\n\n\n\n<p>systemctl enable php-fpm.service\u3010\u5f00\u673a\u81ea\u542f\u52a8\u3011<\/p>\n\n\n\n<p><a href=\"https:\/\/www.cnblogs.com\/cssfirefly\/p\/10398463.html\">https:\/\/www.cnblogs.com\/cssfirefly\/p\/10398463.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>#yum -y install php php-mysql gd php-gd gd-devel php-xm [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-tech"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/www.feeek.com\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.feeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}