{"id":318,"date":"2026-11-19T06:07:29","date_gmt":"2026-11-18T22:07:29","guid":{"rendered":"https:\/\/getdevioapp.xyz\/?p=318"},"modified":"2026-11-19T06:07:29","modified_gmt":"2026-11-18T22:07:29","slug":"apple-silicon-mac-php-local-check","status":"publish","type":"post","link":"https:\/\/getdevioapp.xyz\/index.php\/2026\/11\/19\/apple-silicon-mac-php-local-check\/","title":{"rendered":"Apple Silicon Mac \u914d\u597d PHP \u73af\u5883\u540e\uff0c\u7528\u4e00\u4e2a\u9875\u9762\u786e\u8ba4\u5b83\u771f\u7684\u5728\u8fd0\u884c"},"content":{"rendered":"<p>\u5728 Apple Silicon Mac \u4e0a\u51c6\u5907 PHP \u672c\u5730\u73af\u5883\uff0c\u5148\u522b\u6025\u7740\u5bfc\u5165\u5b8c\u6574\u9879\u76ee\u3002\u7528\u4e00\u4e2a\u4e0d\u8fde\u63a5\u6570\u636e\u5e93\u7684\u5c0f\u9875\u9762\uff0c\u786e\u8ba4\u8bf7\u6c42\u786e\u5b9e\u4ea4\u7ed9\u4e86 PHP\uff0c\u518d\u63a5\u5165\u6846\u67b6\u3001\u6269\u5c55\u548c\u6570\u636e\u5e93\uff0c\u6392\u67e5\u8d77\u6765\u4f1a\u6e05\u695a\u5f97\u591a\u3002<\/p>\n<p>Devio \u9002\u7528\u4e8e M1 \u53ca\u66f4\u65b0\u82af\u7247\u7684 Mac\uff0c\u53ef\u7ba1\u7406 PHP \u7f51\u7ad9\u4e0e\u672c\u5730\u670d\u52a1\u3002\u8fd8\u6ca1\u5b89\u88c5\u65f6\uff0c\u5148\u4ece<a href=\"https:\/\/getdevioapp.xyz\/index.php\/download\/\">\u5b98\u7f51\u4e0b\u8f7d\u9875<\/a>\u83b7\u53d6\u5b89\u88c5\u5305\u3002\u4e0b\u9762\u53ea\u9a8c\u8bc1\u672c\u5730 PHP \u9875\u9762\uff0c\u4e0d\u6d89\u53ca\u516c\u7f51\u90e8\u7f72\u3002<\/p>\n<h2>\u5148\u51c6\u5907\u4e00\u4e2a\u6ca1\u6709\u5176\u4ed6\u4f9d\u8d56\u7684\u9875\u9762<\/h2>\n<p>\u65b0\u5efa\u4e00\u4e2a\u72ec\u7acb\u6587\u4ef6\u5939\uff0c\u4f8b\u5982 <code>devio-php-demo<\/code>\u3002\u7528\u7eaf\u6587\u672c\u7f16\u8f91\u5668\u5728\u91cc\u9762\u4fdd\u5b58 <code>index.php<\/code>\uff0c\u786e\u8ba4\u6587\u4ef6\u6ca1\u6709\u88ab\u53e6\u5b58\u6210 <code>index.php.txt<\/code>\u3002\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<pre><code>&lt;?php\nheader('Content-Type: text\/plain; charset=UTF-8');\necho \"Devio PHP demo is running\\n\";\necho \"PHP version: \" . PHP_VERSION . \"\\n\";<\/code><\/pre>\n<p>\u8fd9\u4e2a\u9875\u9762\u4e0d\u8bfb\u5199\u6570\u636e\u5e93\uff0c\u4e5f\u4e0d\u8f93\u51fa\u5bc6\u7801\u6216\u73af\u5883\u53d8\u91cf\u3002\u5b83\u53ea\u7528\u6765\u786e\u8ba4 PHP \u662f\u5426\u6267\u884c\uff0c\u4ee5\u53ca\u5b9e\u9645\u6267\u884c\u7684\u662f\u54ea\u4e2a\u7248\u672c\u3002<\/p>\n<h2>\u628a\u7f51\u7ad9\u7c7b\u578b\u3001\u76ee\u5f55\u548c PHP \u5bf9\u4e0a<\/h2>\n<p>\u5728 Devio \u4e2d\u4e3a\u8fd9\u4e2a\u76ee\u5f55\u914d\u7f6e PHP \u7f51\u7ad9\uff0c\u4e0d\u8981\u9009\u6210\u9759\u6001\u7ad9\u70b9\u3002\u68c0\u67e5\u7f51\u7ad9\u4f7f\u7528\u7684 PHP \u73af\u5883\u548c\u5b9e\u9645\u5165\u53e3\u76ee\u5f55\uff0c\u6309\u9700\u8981\u51c6\u5907\u5e76\u542f\u52a8\u76f8\u5e94\u670d\u52a1\u3002\u9700\u8981 Nginx \u7684\u7ad9\u70b9\uff0c\u4e5f\u8981\u786e\u8ba4 Nginx \u5df2\u542f\u52a8\u3002\u5177\u4f53\u7f51\u7ad9\u6a21\u5f0f\u53ef\u770b<a href=\"https:\/\/getdevioapp.xyz\/index.php\/2026\/11\/11\/devio-website-mode-choice\/\">\u7f51\u7ad9\u7c7b\u578b\u4e0e\u5165\u53e3\u76ee\u5f55\u8bf4\u660e<\/a>\u3002<\/p>\n<p>\u6d4b\u8bd5\u76ee\u5f55\u91cc\u76f4\u63a5\u653e\u7740 <code>index.php<\/code>\uff0c\u5c31\u6838\u5bf9\u7ad9\u70b9\u662f\u5426\u6307\u5411\u8fd9\u4e2a\u76ee\u5f55\u3002\u5df2\u6709\u6846\u67b6\u9879\u76ee\u5219\u4e0d\u4e00\u5b9a\u76f8\u540c\uff1a\u6709\u4e9b\u8981\u6c42\u4f7f\u7528 <code>public<\/code> \u7b49\u5b50\u76ee\u5f55\uff0c\u5e94\u6309\u9879\u76ee\u6587\u6863\u914d\u7f6e\u3002\u4e0d\u8981\u628a\u5e26\u6709\u79c1\u5bc6\u914d\u7f6e\u3001\u6570\u636e\u5e93\u5907\u4efd\u7684\u6574\u4e2a\u4ed3\u5e93\u76f4\u63a5\u4f5c\u4e3a\u516c\u5f00\u76ee\u5f55\u3002<\/p>\n<p>\u8bbf\u95ee\u5730\u5740\u4f7f\u7528\u4f60\u5728 Devio \u4e2d\u5b9e\u9645\u914d\u7f6e\u7684\u57df\u540d\u548c\u7aef\u53e3\uff0c\u4e0d\u5957\u7528\u5176\u4ed6\u5de5\u5177\u7684\u9ed8\u8ba4\u503c\u3002\u82e5\u4f7f\u7528\u672c\u5730\u57df\u540d\uff0c\u9700\u8981\u786e\u8ba4\u5b83\u89e3\u6790\u5230\u672c\u673a\uff1b\u4e0d\u8981\u901a\u8fc7\u53cc\u51fb\u6587\u4ef6\u6216\u6d4f\u89c8\u5668\u7684 <code>file:\/\/<\/code> \u5730\u5740\u9a8c\u8bc1 PHP\u3002<\/p>\n<h2>\u770b\u5230\u4ec0\u4e48\uff0c\u624d\u7b97 PHP \u9875\u9762\u8dd1\u901a\uff1f<\/h2>\n<p>\u901a\u8fc7\u7ad9\u70b9\u5730\u5740\u6253\u5f00\u9875\u9762\u540e\uff0c\u9884\u671f\u770b\u5230\u4e24\u884c\u5185\u5bb9\uff1a\u7b2c\u4e00\u884c\u662f <code>Devio PHP demo is running<\/code>\uff0c\u7b2c\u4e8c\u884c\u4ee5 <code>PHP version:<\/code> \u5f00\u5934\uff0c\u540e\u9762\u662f\u5b9e\u9645\u8fd0\u884c\u7684 PHP \u7248\u672c\u3002<\/p>\n<p>\u8fd9\u4e24\u884c\u51fa\u73b0\uff0c\u624d\u8bf4\u660e\u8fd9\u4e2a\u8bf7\u6c42\u5df2\u4ea4\u7ed9 PHP \u6267\u884c\u3002\u670d\u52a1\u5217\u8868\u663e\u793a\u201c\u8fd0\u884c\u4e2d\u201d\u4e0d\u80fd\u4ee3\u66ff\u9875\u9762\u9a8c\u8bc1\uff1b\u7ec8\u7aef\u91cc\u7684 <code>php -v<\/code> \u4e5f\u4e0d\u80fd\u76f4\u63a5\u8bc1\u660e\u7f51\u7ad9\u4f7f\u7528\u540c\u4e00\u4e2a PHP\u3002<\/p>\n<p>\u4fee\u6539\u7b2c\u4e00\u884c\u63d0\u793a\u6587\u5b57\u3001\u4fdd\u5b58\u5e76\u5237\u65b0\u9875\u9762\uff0c\u8fd8\u80fd\u68c0\u67e5\u81ea\u5df1\u662f\u5426\u8bbf\u95ee\u4e86\u521a\u914d\u7f6e\u7684\u76ee\u5f55\uff0c\u800c\u4e0d\u662f\u53e6\u4e00\u4e2a\u65e7\u9879\u76ee\u3002<\/p>\n<h2>\u6ca1\u6709\u770b\u5230\u9884\u671f\u8f93\u51fa\uff0c\u6309\u73b0\u8c61\u68c0\u67e5<\/h2>\n<ul>\n<li><strong>\u76f4\u63a5\u663e\u793a PHP \u6e90\u7801\uff0c\u6216\u6d4f\u89c8\u5668\u4e0b\u8f7d\u4e86\u6587\u4ef6\uff1a<\/strong>\u5148\u505c\u6b62\u5728\u8fd9\u4e2a\u7ad9\u70b9\u653e\u7f6e\u771f\u5b9e\u9879\u76ee\uff0c\u6838\u5bf9\u7f51\u7ad9\u7c7b\u578b\u53ca PHP \u8bf7\u6c42\u5904\u7406\u914d\u7f6e\uff0c\u907f\u514d\u79c1\u5bc6\u4ee3\u7801\u88ab\u5f53\u4f5c\u666e\u901a\u6587\u4ef6\u63d0\u4f9b\u3002<\/li>\n<li><strong>\u8fd4\u56de 404\uff1a<\/strong>\u6838\u5bf9\u8bbf\u95ee\u5730\u5740\u3001\u7ad9\u70b9\u6839\u76ee\u5f55\u3001\u6587\u4ef6\u540d\u4e0e\u6587\u4ef6\u4f4d\u7f6e\u3002\u4e0d\u8981\u540c\u65f6\u4fee\u6539\u57df\u540d\u3001\u76ee\u5f55\u548c\u8fd0\u884c\u73af\u5883\u3002<\/li>\n<li><strong>\u8fde\u63a5\u5931\u8d25\uff1a<\/strong>\u68c0\u67e5\u670d\u52a1\u72b6\u6001\u3001\u57df\u540d\u89e3\u6790\u548c\u542f\u52a8\u65e5\u5fd7\u3002\u5982\u679c\u63d0\u793a\u7aef\u53e3\u5360\u7528\uff0c\u5148\u786e\u8ba4\u5360\u7528\u8005\u5c5e\u4e8e\u54ea\u4e2a\u9879\u76ee\uff0c\u518d\u5904\u7406\uff1b\u4e0d\u8981\u76f4\u63a5\u5f3a\u5236\u7ed3\u675f\u964c\u751f\u8fdb\u7a0b\u3002\u53ef\u5bf9\u7167<a href=\"https:\/\/getdevioapp.xyz\/index.php\/2026\/11\/11\/devio-port-conflict-troubleshooting\/\">\u7aef\u53e3\u51b2\u7a81\u6392\u67e5<\/a>\u3002<\/li>\n<li><strong>\u8f93\u51fa\u7684 PHP \u7248\u672c\u4e0d\u7b26\u5408\u9879\u76ee\u8981\u6c42\uff1a<\/strong>\u56de\u5230\u7ad9\u70b9\u914d\u7f6e\u6838\u5bf9\u7ed1\u5b9a\u73af\u5883\u3002\u4e0d\u8981\u4e3a\u4e86\u4e00\u4e2a\u7f51\u7ad9\u6539\u6389\u6240\u6709\u9879\u76ee\u7684\u9ed8\u8ba4 PHP\u3002<\/li>\n<\/ul>\n<h2>\u6700\u5c0f\u9875\u9762\u8dd1\u901a\u540e\uff0c\u518d\u653e\u5165\u771f\u5b9e\u9879\u76ee<\/h2>\n<p>\u6309\u9879\u76ee\u8981\u6c42\u51c6\u5907\u4f9d\u8d56\u3001\u6269\u5c55\u548c\u73af\u5883\u914d\u7f6e\u3002\u51fa\u73b0\u201c\u7f3a\u5c11\u6269\u5c55\u201d\u65f6\uff0c\u5148\u786e\u8ba4\u6269\u5c55\u88c5\u5728\u7f51\u7ad9\u5b9e\u9645\u4f7f\u7528\u7684 PHP \u73af\u5883\u91cc\uff0c\u518d\u5904\u7406\u5b89\u88c5\u95ee\u9898\uff0c\u89c1<a href=\"https:\/\/getdevioapp.xyz\/index.php\/2026\/11\/11\/devio-php-extension-checks\/\">PHP \u6269\u5c55\u68c0\u67e5<\/a>\u3002<\/p>\n<p>\u9700\u8981\u6570\u636e\u5e93\u65f6\uff0c\u518d\u6838\u5bf9\u76ee\u6807\u5b9e\u4f8b\u3001\u5b9e\u9645\u8fde\u63a5\u7aef\u53e3\u4e0e\u6709\u6548\u8d26\u6237\u3002\u8fd9\u4e2a\u793a\u4f8b\u80fd\u8fd0\u884c\uff0c\u4e0d\u4ee3\u8868\u6570\u636e\u5e93\u3001\u6846\u67b6\u8def\u7531\u6216\u6240\u6709\u6269\u5c55\u5df2\u7ecf\u914d\u7f6e\u5b8c\u6210\u3002\u5b8c\u6210\u9a8c\u8bc1\u540e\u5220\u6389\u4e34\u65f6\u6d4b\u8bd5\u6587\u4ef6\uff0c\u518d\u68c0\u67e5\u771f\u5b9e\u9879\u76ee\u7684\u9875\u9762\u53ca\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7528\u4e00\u4e2a\u4e0d\u4f9d\u8d56\u6570\u636e\u5e93\u7684 PHP \u9875\u9762\uff0c\u6838\u5bf9 Devio \u7f51\u7ad9\u7684\u5165\u53e3\u76ee\u5f55\u3001\u5b9e\u9645 PHP \u7248\u672c\u4e0e\u8bbf\u95ee\u5730\u5740\uff0c\u518d\u6392\u67e5\u6e90\u7801\u663e\u793a\u3001404 \u548c\u7aef\u53e3\u51b2\u7a81\u3002<\/p>\n","protected":false},"author":1,"featured_media":319,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-5"],"_links":{"self":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts\/318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=318"}],"version-history":[{"count":2,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts\/318\/revisions"}],"predecessor-version":[{"id":322,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/posts\/318\/revisions\/322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/media\/319"}],"wp:attachment":[{"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/getdevioapp.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}