{"id":43451,"date":"2017-09-17T11:34:32","date_gmt":"2017-09-17T03:34:32","guid":{"rendered":"http:\/\/www.jiloc.com\/?p=43451"},"modified":"2019-04-29T16:51:01","modified_gmt":"2019-04-29T08:51:01","slug":"amh5-3%e9%9d%a2%e6%9d%bf-php7-%e6%97%a0%e6%b3%95%e5%90%af%e5%8a%a8-%e5%af%bc%e8%87%b4%e7%bd%91%e7%ab%99502%e9%94%99%e8%af%af-%e8%a7%a3%e5%86%b3%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"http:\/\/jiloc.com\/43451.html","title":{"rendered":"amh5.3\u9762\u677f php7 \u65e0\u6cd5\u542f\u52a8 \u5bfc\u81f4\u7f51\u7ad9502\u9519\u8bef \u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"

amh\u9762\u677f\u786e\u5b9e\u7ed9\u6211\u4eec\u5927\u5bb6\u5e26\u6765\u4e86\u65b9\u4fbf\uff0c\u4f46\u662f\u5982\u679c\u51fa\u9519\u7684\u8bdd\u4e5f\u4e0d\u5bb9\u6613\u89e3\u51b3\uff0c\u9700\u8981\u4e00\u4e9b\u57fa\u7840\u624d\u884c\u3002<\/p>\n

Centos Debian Ubuntu Amh\u9762\u677f \u5b89\u88c5\u56fe\u6587\u6559\u7a0b<\/a><\/p>\n

\u8fd9\u91cc\u6211\u4eec\u8bb0\u5f55\u4e00\u4e0b\u5b89\u88c5amh5.3\u9762\u677f\u540e\uff0cphp\u65e0\u6cd5\u542f\u52a8\uff0c\u5bfc\u81f4\u7f51\u7ad9\u51fa\u73b0502\u9519\u8bef\u3002<\/p>\n

PS\uff1a\u6b63\u597d\u662f\u5468\u672b\uff0c\u5373\u4f7f\u53bbamh\u5b98\u65b9\u63d0\u4ea4\u5de5\u5355\uff0c\u4e5f\u6ca1\u4eba\u56de\u5e94\u3002<\/p>\n

\u4e4b\u524d\u5e76\u4e0d\u77e5\u9053\u505a\u4e86\u4ec0\u4e48\u5347\u7ea7\u6216\u8005\u64cd\u4f5c\uff0c\u8fd9\u91cc\u7f51\u7ad9\u76f4\u63a5\u51fa\u73b0\u4e86502 Bad Getway\u3002<\/p>\n

\u7136\u540e\u6211\u4eec\u767b\u5f55\u4e86amh\u9762\u677f\uff0c\u53d1\u73b0\u91cc\u9762\u6240\u6709\u7684php7.0\u90fd\u65e0\u6cd5\u542f\u52a8\u4e86\u3002\u5e78\u8fd0\u7684\u662f\u6211\u4eec\u5f00\u542f\u4e86\u65e5\u5fd7\uff0c\u679c\u65ad\u67e5\u770b\u65e5\u5fd7\u3002<\/p>\n

[title]\u68c0\u67e5php\u65e5\u5fd7\uff1a[\/title]<\/p>\n

cat \/home\/wwwroot\/lnmp70\/logs\/147hub.com-php-fpm.log<\/pre>\n

\u9519\u8bef\u5982\u4e0b\u9519\u8bef\uff1a<\/p>\n

[21-Aug-2017 11:07:45] ERROR: Unable to remove the PID file (\/home\/wwwroot\/lnmp70\/logs\/147hub.com-php-fpm.pid).: No such file or directory (2)
\n[17-Sep-2017 10:36:42] ERROR: Unable to remove the PID file (\/home\/wwwroot\/lnmp70\/logs\/147hub.com-php-fpm.pid).: No such file or directory (2)<\/p><\/blockquote>\n

[title]\u68c0\u67e5nginx\u65e5\u5fd7\u6587\u4ef6\uff1a[\/title]<\/p>\n

cat \/home\/wwwroot\/lnmp70\/logs\/147hub.com-error.log<\/p>\n

2017\/09\/17 11:19:20 [crit] 10320#0: *173 connect() to unix:\/tmp\/php-cgi-lnmp70-147hub.com.sock failed (2: No such file or directory) while connecting to upstream, client: 121.41.112.148, server: 147hub.com, request: “HEAD \/ HTTP\/1.1”, upstream: “fastcgi:\/\/unix:\/tmp\/php-cgi-lnmp70-147hub.com.sock:”, host: “147hub.com”<\/p><\/blockquote>\n

[title]\u68c0\u67e5php.ini\uff1a[\/title]<\/p>\n

\u6700\u540e\u6ca1\u529e\u6cd5\u641c\u7d22\u4e00\u4e0bphp.ini\u7684\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n

find \/ -name php.ini<\/pre>\n

\u53d1\u73b0\u4e86php.ini \u7684\u5bf9\u5e94\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n

cat \/home\/wwwroot\/lnmp70\/etc\/amh-php.ini<\/pre>\n

\u53d1\u73b0\u91cc\u9762\u6709\u5199\u4e00\u53e5\uff1a<\/p>\n

error_log = \/home\/wwwroot\/lnmp70\/logs\/amh-php-errors.log<\/p><\/blockquote>\n

[title]\u67e5\u770b\u6700\u7ec8\u7684php7\u9519\u8bef\u65e5\u5fd7\uff1a[\/title]<\/p>\n

\u63a5\u7740\u6211\u4eec\u67e5\u770b\u65e5\u5fd7\u8fd9\u4e2a\u9519\u8bef\u65e5\u5fd7\uff1a<\/p>\n

cat \/home\/wwwroot\/lnmp70\/logs\/amh-php-errors.log<\/pre>\n

\u51fa\u73b0\u9519\u8bef\uff1a<\/p>\n

[17-Sep-2017 11:19:19 Asia\/Shanghai] PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0<\/p><\/blockquote>\n

\u7136\u540e\u6211\u4eec\u68c0\u67e5\u4e86ionCube Loader\u6269\u5c55\uff0c\u53d1\u73b0\u8fd9\u91cc\u5e76\u6ca1\u6709\u5b89\u88c5\u8fd9\u4e2a\u6269\u5c55\uff0c\u6240\u4ee5\u80af\u5b9a\u4f1a\u5bfc\u81f4\u62a5\u9519\u3002<\/p>\n

[title]\u4fee\u590d\u9519\u8bef\uff1a[\/title]<\/p>\n

\u76f4\u63a5\u628a\u6269\u5c55\u5b89\u88c5\u4e0a\u5c31\u80fd\u6b63\u5e38\u8fd0\u884c\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

amh\u9762\u677f\u786e\u5b9e\u7ed9\u6211\u4eec\u5927\u5bb6\u5e26\u6765\u4e86\u65b9\u4fbf\uff0c\u4f46\u662f\u5982\u679c\u51fa\u9519\u7684\u8bdd\u4e5f\u4e0d\u5bb9\u6613\u89e3\u51b3\uff0c\u9700\u8981\u4e00\u4e9b\u57fa\u7840\u624d\u884c\u3002 Centos Debia […]<\/p>\n","protected":false},"author":1,"featured_media":43066,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/posts\/43451"}],"collection":[{"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/comments?post=43451"}],"version-history":[{"count":0,"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/posts\/43451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/media\/43066"}],"wp:attachment":[{"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/media?parent=43451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/categories?post=43451"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jiloc.com\/wp-json\/wp\/v2\/tags?post=43451"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}