{"id":17875,"date":"2024-11-18T17:20:42","date_gmt":"2024-11-18T09:20:42","guid":{"rendered":"https:\/\/fwq.ai\/blog\/17875\/"},"modified":"2024-11-18T17:20:42","modified_gmt":"2024-11-18T09:20:42","slug":"phpstudypro%e7%ab%99%e7%82%b9%e4%bf%a1%e6%81%af%e4%bf%9d%e5%ad%98%e5%9c%a8%e5%93%aa%e4%b8%aa%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/17875\/","title":{"rendered":"phpstudypro\u7ad9\u70b9\u4fe1\u606f\u4fdd\u5b58\u5728\u54ea\u4e2a\u6587\u4ef6"},"content":{"rendered":"<blockquote><p>\n  phpstudypro \u4f7f\u7528 conf.ini \u6587\u4ef6\u5b58\u50a8\u7ad9\u70b9\u4fe1\u606f\uff0c\u5305\u62ec\u6839\u76ee\u5f55\u3001\u57df\u540d\u548c\u7aef\u53e3\u53f7\u3002\u6b64\u6587\u4ef6\u4f4d\u4e8e\uff1awindows\uff1ac:program files (x86)phpstudyproconf.inimacos\uff1a\/applications\/phpstudy.app\/conf\/conf.inilinux\uff1a\/usr\/local\/phpstudypro\/conf\/conf.ini\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/02\/2024040216391660323.jpg\" class=\"aligncenter\" title=\"phpstudypro\u7ad9\u70b9\u4fe1\u606f\u4fdd\u5b58\u5728\u54ea\u4e2a\u6587\u4ef6\u63d2\u56fe\" alt=\"phpstudypro\u7ad9\u70b9\u4fe1\u606f\u4fdd\u5b58\u5728\u54ea\u4e2a\u6587\u4ef6\u63d2\u56fe\" \/><\/p>\n<p><strong>PHPstudyPro \u7ad9\u70b9\u4fe1\u606f\u6587\u4ef6<\/strong><\/p>\n<p>PHPstudyPro \u5c06\u7ad9\u70b9\u4fe1\u606f\u4fdd\u5b58\u5728 conf.ini \u6587\u4ef6\u4e2d\u3002<\/p>\n<p><strong>\u6587\u4ef6\u4f4d\u7f6e<\/strong><\/p>\n<p>conf.ini \u6587\u4ef6\u4f4d\u4e8e\u4ee5\u4e0b\u76ee\u5f55\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>Windows\uff1aC:Program Files (x86)PHPStudyProconf.ini<\/li>\n<li>macOS\uff1a\/Applications\/PHPStudy.app\/conf\/conf.ini<\/li>\n<li>Linux\uff1a\/usr\/local\/pro\/conf\/conf.ini<\/li>\n<\/ul>\n<p><strong>\u6587\u4ef6\u7ed3\u6784<\/strong><\/p>\n<p>conf.ini \u6587\u4ef6\u91c7\u7528 INI \u683c\u5f0f\uff0c\u5305\u542b\u4ee5\u4e0b\u90e8\u5206\uff1a<\/p>\n<ul>\n<li> <strong>\u7ad9\u70b9\u4fe1\u606f\uff1a<\/strong>\u6709\u5173 PHPstudyPro \u4e2d\u521b\u5efa\u7684\u6bcf\u4e2a\u7ad9\u70b9\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u6839\u76ee\u5f55\u3001\u57df\u540d\u3001\u7aef\u53e3\u53f7\u7b49\u3002<\/li>\n<li> <strong>php.ini \u914d\u7f6e\uff1a<\/strong>\u6bcf\u4e2a\u7ad9\u70b9\u7684 PHP \u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u8986\u76d6\u5168\u5c40 PHP.ini \u8bbe\u7f6e\u3002<\/li>\n<li> <strong>\u5176\u4ed6\u8bbe\u7f6e\uff1a<\/strong>\u4e0e PHPstudyPro \u7684\u5176\u4ed6\u529f\u80fd\u76f8\u5173\u7684\u8bbe\u7f6e\uff0c\u4f8b\u5982\u9519\u8bef\u65e5\u5fd7\u4f4d\u7f6e\u3001\u76d1\u542c\u7aef\u53e3\u7b49\u3002<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f conf.ini \u6587\u4ef6\u4e2d\u4e00\u4e2a\u7ad9\u70b9\u90e8\u5206\u7684\u793a\u4f8b\uff1a<\/p>\n<pre>[web_list]\n[101]\nname = MyWebsite\nroot = \/path\/to\/mywebsite\nindex_with = index.html,index.htm,index.php\ndomain = localhost\nport = 80<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u8bbf\u95ee\u7ad9\u70b9\u4fe1\u606f<\/strong><\/p>\n<p>\u53ef\u4ee5\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u624b\u52a8\u7f16\u8f91 conf.ini \u6587\u4ef6\uff0c\u6216\u8005\u4f7f\u7528 PHPstudyPro \u7684\u7ba1\u7406\u754c\u9762\u67e5\u770b\u548c\u4fee\u6539\u7ad9\u70b9\u4fe1\u606f\u3002<\/p>\n<ul>\n<li> <strong>PHPstudyPro \u754c\u9762\uff1a<\/strong>\u8f6c\u5230 &#8220;\u7ad9\u70b9&#8221; \u9762\u677f\uff0c\u9009\u62e9\u4e00\u4e2a\u7ad9\u70b9\uff0c\u7136\u540e\u5355\u51fb &#8220;\u7f16\u8f91&#8221; \u6309\u94ae\u3002<\/li>\n<li> <strong>\u6587\u672c\u7f16\u8f91\u5668\uff1a<\/strong>\u76f4\u63a5\u6253\u5f00 conf.ini \u6587\u4ef6\u5e76\u8fdb\u884c\u6240\u9700\u66f4\u6539\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662fpro\u7ad9\u70b9\u4fe1\u606f\u4fdd\u5b58\u5728\u54ea\u4e2a\u6587\u4ef6\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>phpstudypro \u4f7f\u7528 conf.ini \u6587\u4ef6\u5b58\u50a8\u7ad9\u70b9\u4fe1\u606f\uff0c\u5305\u62ec\u6839\u76ee\u5f55\u3001\u57df\u540d\u548c\u7aef\u53e3\u53f7\u3002\u6b64\u6587\u4ef6\u4f4d\u4e8e\uff1awindows\uff1ac:program files (x86)phpstudyproconf.inimacos\uff1a\/applications\/phpstudy.app\/conf\/conf.inilinux\uff1a\/usr\/local\/phpstudypro\/conf\/conf.ini PHPstudyPro \u7ad9\u70b9\u4fe1\u606f\u6587\u4ef6 PHPstudyPro \u5c06\u7ad9\u70b9\u4fe1\u606f\u4fdd\u5b58\u5728 conf.ini \u6587\u4ef6\u4e2d\u3002 \u6587\u4ef6\u4f4d\u7f6e conf.ini \u6587\u4ef6\u4f4d\u4e8e\u4ee5\u4e0b\u76ee\u5f55\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b Windows\uff1aC:Program Files (x86)PHPStudyProconf.ini macOS\uff1a\/Applications\/PHPStudy.app\/conf\/conf.ini Linux\uff1a\/usr\/local\/pro\/conf\/conf.ini \u6587\u4ef6\u7ed3\u6784 conf.ini \u6587\u4ef6\u91c7\u7528 INI \u683c\u5f0f\uff0c\u5305\u542b\u4ee5\u4e0b\u90e8\u5206\uff1a \u7ad9\u70b9\u4fe1\u606f\uff1a\u6709\u5173 PHPstudyPro \u4e2d\u521b\u5efa\u7684\u6bcf\u4e2a\u7ad9\u70b9\u7684\u914d\u7f6e\uff0c\u5305\u62ec\u6839\u76ee\u5f55\u3001\u57df\u540d\u3001\u7aef\u53e3\u53f7\u7b49\u3002 php.ini \u914d\u7f6e\uff1a\u6bcf\u4e2a\u7ad9\u70b9\u7684 PHP \u914d\u7f6e\u6587\u4ef6\uff0c\u53ef\u4ee5\u8986\u76d6\u5168\u5c40 PHP.ini \u8bbe\u7f6e\u3002 \u5176\u4ed6\u8bbe\u7f6e\uff1a\u4e0e PHPstudyPro \u7684\u5176\u4ed6\u529f\u80fd\u76f8\u5173\u7684\u8bbe\u7f6e\uff0c\u4f8b\u5982\u9519\u8bef\u65e5\u5fd7\u4f4d\u7f6e\u3001\u76d1\u542c\u7aef\u53e3\u7b49\u3002 \u793a\u4f8b \u4ee5\u4e0b\u662f conf.ini \u6587\u4ef6\u4e2d\u4e00\u4e2a\u7ad9\u70b9\u90e8\u5206\u7684\u793a\u4f8b\uff1a [web_list] [101] name = MyWebsite root = \/path\/to\/mywebsite index_with = index.html,index.htm,index.php domain = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-17875","post","type-post","status-publish","format-standard","hentry","category-os"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/17875","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=17875"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/17875\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=17875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=17875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=17875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}