{"id":600,"date":"2024-12-30T00:15:08","date_gmt":"2024-12-29T16:15:08","guid":{"rendered":"http:\/\/www.wengdao.net\/?p=600"},"modified":"2024-12-30T00:17:30","modified_gmt":"2024-12-29T16:17:30","slug":"php-ini-%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e8%b0%83%e4%bc%98%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/jiandao.zliby.com\/?p=600","title":{"rendered":"php.ini \u914d\u7f6e\u8c03\u4f18"},"content":{"rendered":"<p>\u4ece\u591a\u4e2a\u7ef4\u5ea6\u5206\u6790\u5bf9 <code class=\"prettyprint\" >php.ini<\/code> \u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\u548c\u8c03\u4f18<\/p>\n<h3>1. <strong>\u6027\u80fd\u4f18\u5316<\/strong><\/h3>\n<p>\u6027\u80fd\u4f18\u5316\u7684\u5173\u952e\u5728\u4e8e\u5408\u7406\u914d\u7f6e\u8d44\u6e90\u9650\u5236\u3001\u5185\u5b58\u4f7f\u7528\u3001\u6267\u884c\u65f6\u95f4\u3001\u6587\u4ef6\u4e0a\u4f20\u7b49\u53c2\u6570\uff0c\u4ee5\u4fbf\u5728\u786e\u4fdd\u7cfb\u7edf\u7a33\u5b9a\u6027\u7684\u540c\u65f6\u63d0\u5347\u6027\u80fd\u3002<\/p>\n<h4>1.1 <strong>\u6700\u5927\u6267\u884c\u65f6\u95f4 (max_execution_time)<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">max_execution_time = 30 ; \u9ed8\u8ba4 30 \u79d2<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u8bbe\u7f6e PHP \u811a\u672c\u7684\u6700\u5927\u6267\u884c\u65f6\u95f4\uff0c\u907f\u514d\u5355\u4e2a\u8bf7\u6c42\u5360\u7528\u8fc7\u591a\u8d44\u6e90\u3002\u5bf9\u4e8e\u5927\u90e8\u5206\u8bf7\u6c42\uff0c\u8bbe\u7f6e 30 \u79d2\u8f83\u4e3a\u5408\u7406\uff1b\u5bf9\u4e8e\u8f83\u590d\u6742\u7684\u4efb\u52a1\uff08\u5982\u6570\u636e\u8fc1\u79fb\u6216\u62a5\u8868\u751f\u6210\uff09\uff0c\u53ef\u4ee5\u9002\u5f53\u589e\u52a0\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u6839\u636e\u5e94\u7528\u9700\u6c42\u8c03\u6574\uff0c\u907f\u514d\u8fc7\u957f\u65f6\u95f4\u7684\u8bf7\u6c42\u6d88\u8017\u592a\u591a\u7cfb\u7edf\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<h4>1.2 <strong>\u5185\u5b58\u9650\u5236 (memory_limit)<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">memory_limit = 128M ; \u9ed8\u8ba4 128MB<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u63a7\u5236\u6bcf\u4e2a\u811a\u672c\u53ef\u4ee5\u6d88\u8017\u7684\u6700\u5927\u5185\u5b58\uff0c\u907f\u514d\u5185\u5b58\u6cc4\u6f0f\u5bfc\u81f4\u7684\u7cfb\u7edf\u5d29\u6e83\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u6839\u636e\u5e94\u7528\u7684\u590d\u6742\u6027\u548c\u6d41\u91cf\u8c03\u8282\u3002\u4e00\u822c Web \u5e94\u7528\u53ef\u4ee5\u8bbe\u7f6e\u4e3a 128MB\uff0c\u4f46\u5982\u679c\u6709\u56fe\u50cf\u5904\u7406\u3001\u5927\u91cf\u6570\u636e\u5904\u7406\u7b49\u9700\u6c42\uff0c\u53ef\u4ee5\u9002\u5f53\u589e\u52a0\u3002<\/li>\n<\/ul>\n<h4>1.3 <strong>\u8f93\u51fa\u7f13\u51b2 (output_buffering)<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">output_buffering = Off ; \u9ed8\u8ba4\u5173\u95ed<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u542f\u7528\u8f93\u51fa\u7f13\u51b2\u80fd\u63d0\u9ad8\u9875\u9762\u52a0\u8f7d\u901f\u5ea6\uff0c\u5c24\u5176\u662f\u5728\u6709\u5927\u91cf\u8f93\u51fa\u7684\u60c5\u51b5\u4e0b\u3002\u4f46\u5b83\u4e5f\u53ef\u80fd\u6d88\u8017\u989d\u5916\u5185\u5b58\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5982\u679c\u5bf9\u6027\u80fd\u8981\u6c42\u9ad8\uff0c\u53ef\u4ee5\u5f00\u542f\uff08\u4f8b\u5982\u8bbe\u7f6e\u4e3a <code class=\"prettyprint\" >4096<\/code>\uff09\u3002\u5982\u679c PHP \u8f93\u51fa\u5f88\u591a\u6570\u636e\u5e76\u4e14\u8f93\u51fa\u987a\u5e8f\u6ca1\u6709\u4e25\u683c\u8981\u6c42\uff0c\u542f\u7528\u8f93\u51fa\u7f13\u51b2\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/li>\n<\/ul>\n<h4>1.4 <strong>\u6587\u4ef6\u4e0a\u4f20\u9650\u5236<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">upload_max_filesize = 2M ; \u9ed8\u8ba4 2MB\npost_max_size = 8M ; \u9ed8\u8ba4 8MB<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u8fd9\u4e9b\u8bbe\u7f6e\u63a7\u5236\u4e0a\u4f20\u6587\u4ef6\u7684\u5927\u5c0f\u9650\u5236\u3002\u6839\u636e\u4f60\u7684\u9700\u6c42\u8c03\u6574\u4e0a\u4f20\u6587\u4ef6\u5927\u5c0f\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5bf9\u4e8e\u9700\u8981\u5904\u7406\u5927\u6587\u4ef6\u4e0a\u4f20\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u9002\u5f53\u589e\u52a0\uff0c\u4f8b\u5982 <code class=\"prettyprint\" >upload_max_filesize = 100M<\/code>\uff0c\u5e76\u786e\u4fdd <code>post_max_size<\/code> \u5927\u4e8e <code>upload_max_filesize<\/code>\u3002<\/li>\n<\/ul>\n<h4>1.5 <strong>Session \u914d\u7f6e<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">session.gc_maxlifetime = 1440 ; \u9ed8\u8ba4 1440 \u79d2 (24\u5206\u949f)\nsession.gc_probability = 1 ; \u542f\u7528\u5783\u573e\u56de\u6536\u7684\u6982\u7387<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u957f\u65f6\u95f4\u672a\u4f7f\u7528\u7684 session \u4f1a\u5360\u7528\u5185\u5b58\u3002\u901a\u8fc7\u8c03\u6574\u5783\u573e\u56de\u6536\u673a\u5236\uff0c\u53ef\u4ee5\u63a7\u5236 session \u6587\u4ef6\u7684\u6e05\u7406\u5468\u671f\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u5185\u5b58\u6d88\u8017\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5c06 <code class=\"prettyprint\" >session.gc_maxlifetime<\/code> \u8bbe\u7f6e\u4e3a\u5408\u9002\u7684\u65f6\u95f4\uff0c\u907f\u514d session \u6570\u636e\u6ede\u7559\u592a\u957f\u65f6\u95f4\u3002<\/li>\n<\/ul>\n<h4>1.6 <strong>\u7981\u7528\u4e0d\u5fc5\u8981\u7684\u6269\u5c55<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">disable_functions = &quot;exec,passthru,shell_exec,system&quot; ; \u7981\u7528\u5371\u9669\u51fd\u6570<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u7981\u7528 <code class=\"prettyprint\" >exec<\/code>, <code>shell_exec<\/code> \u7b49\u5371\u9669\u51fd\u6570\uff0c\u6709\u52a9\u4e8e\u63d0\u9ad8\u7cfb\u7edf\u5b89\u5168\u6027\u3002\u53ea\u6709\u5f53\u786e\u5b9e\u9700\u8981\u8fd9\u4e9b\u529f\u80fd\u65f6\uff0c\u624d\u542f\u7528\u5b83\u4eec\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u6839\u636e\u5e94\u7528\u7684\u5b89\u5168\u9700\u6c42\uff0c\u7981\u7528\u4e0d\u5fc5\u8981\u7684\u51fd\u6570\uff0c\u51cf\u5c11\u6f5c\u5728\u7684\u5b89\u5168\u98ce\u9669\u3002<\/li>\n<\/ul>\n<h3>2. <strong>\u5b89\u5168\u6027\u8bbe\u7f6e<\/strong><\/h3>\n<p>\u5b89\u5168\u6027\u662f <code class=\"prettyprint\" >php.ini<\/code> \u914d\u7f6e\u7684\u53e6\u4e00\u4e2a\u91cd\u8981\u65b9\u9762\uff0c\u5408\u9002\u7684\u5b89\u5168\u914d\u7f6e\u53ef\u4ee5\u6709\u6548\u9632\u6b62\u6f5c\u5728\u7684\u653b\u51fb\u3002<\/p>\n<h4>2.1 <strong>\u7981\u7528 PHP \u4fe1\u606f\u66b4\u9732 (expose_php)<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">expose_php = Off ; \u7981\u7528 PHP \u4fe1\u606f\u66b4\u9732<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u5982\u679c\u5c06 <code class=\"prettyprint\" >expose_php<\/code> \u8bbe\u7f6e\u4e3a <code>On<\/code>\uff0cPHP \u4f1a\u5728 HTTP \u54cd\u5e94\u5934\u4e2d\u66b4\u9732 PHP \u7248\u672c\u4fe1\u606f\uff0c\u589e\u52a0\u6f5c\u5728\u7684\u653b\u51fb\u9762\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u52a1\u5fc5\u7981\u7528\u6b64\u9879\uff0c\u4ee5\u63d0\u9ad8\u7cfb\u7edf\u5b89\u5168\u6027\u3002<\/li>\n<\/ul>\n<h4>2.2 <strong>\u9519\u8bef\u663e\u793a\u914d\u7f6e (display_errors)<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">display_errors = Off ; \u7981\u7528\u9519\u8bef\u4fe1\u606f\u8f93\u51fa<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a<code class=\"prettyprint\" >display_errors<\/code> \u914d\u7f6e\u51b3\u5b9a\u4e86\u662f\u5426\u5728\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u4e0a\u663e\u793a\u9519\u8bef\u4fe1\u606f\u3002\u5bf9\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u5efa\u8bae\u5173\u95ed\u5b83\uff0c\u4ee5\u9632\u6b62\u6cc4\u9732\u654f\u611f\u4fe1\u606f\uff08\u5982\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f\u6216\u6587\u4ef6\u8def\u5f84\uff09\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5173\u95ed\u8be5\u9879\uff0c\u5c06\u9519\u8bef\u8bb0\u5f55\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\uff0c\u65b9\u4fbf\u8fd0\u7ef4\u4eba\u5458\u6392\u67e5\u3002<\/li>\n<\/ul>\n<h4>2.3 <strong>\u6587\u4ef6\u4e0a\u4f20\u5b89\u5168\u6027<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">file_uploads = On ; \u542f\u7528\u6587\u4ef6\u4e0a\u4f20\nupload_tmp_dir = \/var\/tmp ; \u4e34\u65f6\u76ee\u5f55<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u4e0a\u4f20\u6587\u4ef6\u65f6\u9700\u8981\u786e\u4fdd\u76ee\u5f55\u7684\u5b89\u5168\u6027\u3002<code class=\"prettyprint\" >upload_tmp_dir<\/code> \u6307\u5b9a\u4e86\u4e0a\u4f20\u6587\u4ef6\u7684\u4e34\u65f6\u5b58\u50a8\u76ee\u5f55\uff0c\u786e\u4fdd\u6b64\u76ee\u5f55\u5177\u6709\u5408\u9002\u7684\u6743\u9650\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u8bbe\u5b9a\u5408\u9002\u7684\u4e0a\u4f20\u76ee\u5f55\uff0c\u5e76\u786e\u4fdd\u76ee\u5f55\u6743\u9650\u6700\u5c0f\u5316\uff0c\u4ee5\u514d\u6cc4\u6f0f\u6587\u4ef6\u6216\u6076\u610f\u4e0a\u4f20\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h4>2.4 <strong>\u5f00\u542f Open_basedir \u9650\u5236<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">open_basedir = \/path\/to\/directory ; \u9650\u5236 PHP \u811a\u672c\u53ea\u80fd\u8bbf\u95ee\u6307\u5b9a\u76ee\u5f55<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u901a\u8fc7\u9650\u5236 <code class=\"prettyprint\" >open_basedir<\/code>\uff0c\u53ef\u4ee5\u9632\u6b62 PHP \u811a\u672c\u8bbf\u95ee\u4e0d\u5e94\u8bbf\u95ee\u7684\u7cfb\u7edf\u6587\u4ef6\u6216\u76ee\u5f55\uff0c\u4ece\u800c\u589e\u5f3a\u7cfb\u7edf\u7684\u5b89\u5168\u6027\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5bf9\u6bcf\u4e2a PHP \u811a\u672c\u8bbe\u7f6e <code class=\"prettyprint\" >open_basedir<\/code> \u9650\u5236\uff0c\u9632\u6b62\u8bbf\u95ee\u7cfb\u7edf\u7684\u5176\u4ed6\u654f\u611f\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<h3>3. <strong>\u8c03\u8bd5\u548c\u65e5\u5fd7\u8bb0\u5f55\u914d\u7f6e<\/strong><\/h3>\n<p>\u8c03\u8bd5\u548c\u65e5\u5fd7\u8bb0\u5f55\u5728\u5f00\u53d1\u548c\u8fd0\u7ef4\u9636\u6bb5\u975e\u5e38\u91cd\u8981\uff0c\u4f46\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5e94\u8be5\u6709\u9009\u62e9\u6027\u5730\u8bb0\u5f55\u9519\u8bef\u3002<\/p>\n<h4>3.1 <strong>\u9519\u8bef\u62a5\u544a\u914d\u7f6e<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">error_reporting = E_ALL &amp; ~E_NOTICE ; \u542f\u7528\u6240\u6709\u9519\u8bef\uff0c\u9664\u4e86\u63d0\u9192\ndisplay_errors = Off ; \u7981\u6b62\u663e\u793a\u9519\u8bef\nlog_errors = On ; \u542f\u7528\u9519\u8bef\u65e5\u5fd7\u8bb0\u5f55\nerror_log = \/var\/log\/php_error.log ; \u9519\u8bef\u65e5\u5fd7\u6587\u4ef6\u8def\u5f84<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u901a\u8fc7\u8bbe\u7f6e <code class=\"prettyprint\" >error_reporting<\/code> \u6765\u51b3\u5b9a\u8bb0\u5f55\u54ea\u4e9b\u9519\u8bef\u4fe1\u606f\uff0c<code>log_errors<\/code> \u542f\u7528\u540e\uff0c\u5c06\u9519\u8bef\u65e5\u5fd7\u5199\u5165\u6587\u4ef6\uff0c\u65b9\u4fbf\u540e\u7eed\u5206\u6790\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5728\u5f00\u53d1\u73af\u5883\u4e2d\uff0c\u542f\u7528 <code class=\"prettyprint\" >display_errors<\/code> \u663e\u793a\u8be6\u7ec6\u9519\u8bef\u4fe1\u606f\uff1b\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5173\u95ed\u8be5\u9879\uff0c\u4ec5\u8bb0\u5f55\u9519\u8bef\u5230\u65e5\u5fd7\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<h4>3.2 <strong>\u65e5\u5fd7\u6587\u4ef6\u7684\u8def\u5f84<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">error_log = \/var\/log\/php_error.log ; \u6307\u5b9a\u9519\u8bef\u65e5\u5fd7\u8def\u5f84<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u786e\u4fdd\u9519\u8bef\u65e5\u5fd7\u6587\u4ef6\u5177\u6709\u5408\u9002\u7684\u6743\u9650\u8bbe\u7f6e\uff0c\u5e76\u4e14\u80fd\u591f\u6eda\u52a8\u5f52\u6863\uff0c\u907f\u514d\u65e5\u5fd7\u6587\u4ef6\u65e0\u9650\u589e\u957f\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u4f7f\u7528\u8f6e\u8f6c\u673a\u5236\uff08\u5982 <code class=\"prettyprint\" >logrotate<\/code>\uff09\u5b9a\u671f\u5f52\u6863\u65e5\u5fd7\u6587\u4ef6\uff0c\u5e76\u786e\u4fdd\u65e5\u5fd7\u76ee\u5f55\u6709\u8db3\u591f\u7684\u7a7a\u95f4\u3002<\/li>\n<\/ul>\n<h3>4. <strong>\u5176\u4ed6\u5e38\u89c1\u4f18\u5316\u9879<\/strong><\/h3>\n<h4>4.1 <strong>\u652f\u6301\u591a\u7ebf\u7a0b\u548c\u5e76\u53d1<\/strong><\/h4>\n<p>\u5728\u591a\u7ebf\u7a0b Web \u670d\u52a1\u5668\uff08\u5982 Apache + mod_php \u6216 Nginx + PHP-FPM\uff09\u4e2d\uff0c\u901a\u8fc7\u4ee5\u4e0b\u914d\u7f6e\u786e\u4fdd\u5e76\u53d1\u6027\u80fd\uff1a<\/p>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">max_input_time = 60 ; \u6bcf\u4e2a\u8bf7\u6c42\u5904\u7406\u7684\u6700\u5927\u65f6\u95f4\nmax_input_vars = 1000 ; \u8f93\u5165\u53d8\u91cf\u7684\u6700\u5927\u6570\u91cf<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u589e\u52a0\u5bf9\u590d\u6742\u8bf7\u6c42\u7684\u652f\u6301\uff0c\u907f\u514d\u8fc7\u591a\u53d8\u91cf\u6d88\u8017\u8fc7\u591a CPU \u548c\u5185\u5b58\u8d44\u6e90\u3002<\/li>\n<\/ul>\n<h4>4.2 <strong>\u9ed8\u8ba4\u5b57\u7b26\u96c6 (default_charset)<\/strong><\/h4>\n<pre><code class=\"prettyprint\"  class=\"language-ini\">default_charset = &quot;UTF-8&quot; ; \u8bbe\u7f6e\u9ed8\u8ba4\u5b57\u7b26\u96c6\u4e3a UTF-8<\/code><\/pre>\n<ul>\n<li><strong>\u8c03\u6574\u7406\u7531<\/strong>\uff1a\u786e\u4fdd\u5b57\u7b26\u7f16\u7801\u7edf\u4e00\uff0c\u907f\u514d\u5b57\u7b26\u7f16\u7801\u95ee\u9898\u5bfc\u81f4\u4e71\u7801\u3002<\/li>\n<li><strong>\u5efa\u8bae<\/strong>\uff1a\u5efa\u8bae\u59cb\u7ec8\u4f7f\u7528 UTF-8 \u7f16\u7801\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u591a\u8bed\u8a00\u5185\u5bb9\u65f6\u3002<\/li>\n<\/ul>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u5bf9 <code class=\"prettyprint\" >php.ini<\/code> \u914d\u7f6e\u6587\u4ef6\u7684\u4f18\u5316\u662f\u4e00\u4e2a\u7efc\u5408\u6027\u7684\u8fc7\u7a0b\uff0c\u9700\u8981\u5e73\u8861\u6027\u80fd\u3001\u7a33\u5b9a\u6027\u548c\u5b89\u5168\u6027\u3002<br \/>\n\u5728\u751f\u4ea7\u73af\u5883\u4e2d\uff0c\u5efa\u8bae\uff1a<\/p>\n<ul>\n<li><strong>\u7981\u7528\u4e0d\u5fc5\u8981\u7684\u529f\u80fd<\/strong>\uff08\u5982\u6587\u4ef6\u4e0a\u4f20\u9650\u5236\u3001\u5371\u9669\u51fd\u6570\uff09\u3002<\/li>\n<li><strong>\u8c03\u4f18\u6027\u80fd\u76f8\u5173\u53c2\u6570<\/strong>\uff08\u5982\u5185\u5b58\u3001\u6267\u884c\u65f6\u95f4\u3001\u6587\u4ef6\u4e0a\u4f20\u9650\u5236\uff09\u3002<\/li>\n<li><strong>\u52a0\u5f3a\u5b89\u5168\u914d\u7f6e<\/strong>\uff08\u5982\u7981\u7528\u9519\u8bef\u4fe1\u606f\u66b4\u9732\u3001\u542f\u7528 <code class=\"prettyprint\" >open_basedir<\/code>\uff09\u3002<\/li>\n<li><strong>\u5f00\u542f\u9519\u8bef\u65e5\u5fd7\u8bb0\u5f55<\/strong>\uff0c\u4f46\u7981\u7528\u9519\u8bef\u76f4\u63a5\u8f93\u51fa\u5230\u6d4f\u89c8\u5668\u3002<\/li>\n<\/ul>\n<p>\u6839\u636e\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff0c\u8c03\u6574\u6bcf\u4e2a\u53c2\u6570\u7684\u5177\u4f53\u503c\uff0c\u786e\u4fdd PHP \u73af\u5883\u7684\u6700\u5927\u6548\u7387\u548c\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u591a\u4e2a\u7ef4\u5ea6\u5206\u6790\u5bf9 php.ini \u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\u548c\u8c03\u4f18 1. \u6027\u80fd\u4f18\u5316 \u6027\u80fd\u4f18\u5316\u7684\u5173\u952e\u5728\u4e8e\u5408\u7406\u914d\u7f6e\u8d44\u6e90\u9650\u5236\u3001\u5185\u5b58 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/600"}],"collection":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=600"}],"version-history":[{"count":3,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/600\/revisions"}],"predecessor-version":[{"id":604,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=\/wp\/v2\/posts\/600\/revisions\/604"}],"wp:attachment":[{"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jiandao.zliby.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}