upload_max_filesize 32M<\/li>\n<\/ol>\n\u6559\u7a0b\u4e3b\u8981\u662f\u8981\u8bf4\u660e\u5982\u4f55\u4fee\u6539\u8fd9\u4e9b\u7684\u503c\uff0c\u4e0a\u9762\u5404\u4e2a\u53c2\u6570\u540e\u9762\u7684\u503c\u4e3a\u6211\u4eec\u63a8\u8350\u503c\u3002\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n
<\/p>\n
\u589e\u52a0WordPress\u5185\u5b58\u9650\u5236<\/h3>\n
\u4fee\u6539php.ini\u3002\u8fd9\u79cd\u65b9\u6cd5\u662f\u6700\u65b9\u4fbf\u7684\u3002\u4f46\u53ea\u9002\u5408\u6709\u8d85\u7ea7\u7ba1\u7406\u6743\u9650\u7684\u4e91\u4e3b\u673a\u6216\u662fvps\u3002\u6253\u5f00php.ini\u6587\u4ef6\u3002\u67e5\u627e\u6216\u662f\u65b0\u589e\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n
memory_limit = 512M<\/code><\/pre>\n\u901a\u8fc7wp-config.php\u4fee\u6539\u3002\u6253\u5f00\u60a8\u7684wp-config.php\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
define('WP_MEMORY_LIMIT', '512M');<\/code><\/pre>\n\u901a\u8fc7.htaccess\u6587\u4ef6\u4fee\u6539\u3002\u6253\u5f00wordpress\u76ee\u5f55\u4e0b\u7684.htaccess\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
php_value memory_limit 512M<\/code><\/pre>\n\u589e\u52a0PHP Max Input Vars\u503c<\/h3>\n
\u4fee\u6539php.ini\u3002\u8fd9\u79cd\u65b9\u6cd5\u662f\u6700\u65b9\u4fbf\u7684\u3002\u4f46\u53ea\u9002\u5408\u6709\u8d85\u7ea7\u7ba1\u7406\u6743\u9650\u7684\u4e91\u4e3b\u673a\u6216\u662fvps\u3002\u6253\u5f00php.ini\u6587\u4ef6\u3002\u67e5\u627emax_input_vars=\u5e76\u628a=\u540e\u9762\u7684\u503c\u6539\u5927\u3002\u4e00\u822c\u662f3000\uff1a<\/p>\n
max_input_vars = 3000<\/code><\/pre>\n\u901a\u8fc7.htaccess\u6587\u4ef6\u4fee\u6539\u3002\u6253\u5f00wordpress\u76ee\u5f55\u4e0b\u7684.htaccess\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
php_value max_input_vars 3000<\/code><\/pre>\n\u589e\u52a0Maximum Execution Time\u503c<\/h3>\n
\u4fee\u6539php.ini\u3002\u8fd9\u79cd\u65b9\u6cd5\u662f\u6700\u65b9\u4fbf\u7684\u3002\u4f46\u53ea\u9002\u5408\u6709\u8d85\u7ea7\u7ba1\u7406\u6743\u9650\u7684\u4e91\u4e3b\u673a\u6216\u662fvps\u3002\u6253\u5f00php.ini\u6587\u4ef6\u3002\u67e5\u627emax_execution_time=\u5e76\u628a=\u540e\u9762\u7684\u503c\u6539\u5927\u3002\u4e00\u822c\u662f3000\uff1a<\/p>\n
max_execution_time = 3000<\/code><\/pre>\n\u901a\u8fc7wp-config.php\u4fee\u6539\u3002\u6253\u5f00\u60a8\u7684wp-config.php\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
set_time_limit(3000);<\/code><\/pre>\n\u901a\u8fc7.htaccess\u6587\u4ef6\u4fee\u6539\u3002\u6253\u5f00wordpress\u76ee\u5f55\u4e0b\u7684.htaccess\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
php_value max_execution_time 3000<\/code><\/pre>\n\u4fee\u6539Post Max Size\u503c<\/h3>\n
\u4fee\u6539php.ini\u3002\u8fd9\u79cd\u65b9\u6cd5\u662f\u6700\u65b9\u4fbf\u7684\u3002\u4f46\u53ea\u9002\u5408\u6709\u8d85\u7ea7\u7ba1\u7406\u6743\u9650\u7684\u4e91\u4e3b\u673a\u6216\u662fvps\u3002\u6253\u5f00php.ini\u6587\u4ef6\u3002\u67e5\u627epost_max_size=\u5e76\u628a=\u540e\u9762\u7684\u503c\u6539\u5927\u3002\u4e00\u822c\u662f64M\uff08\uff09\u6ce8\u610f\uff0c\u8fd9\u4e2a\u503c\u662f\u8981\u5e26\u5355\u4f4d\u7684\uff0c64M\uff1a<\/p>\n
post_max_size = 64M<\/code><\/pre>\n\u901a\u8fc7.htaccess\u6587\u4ef6\u4fee\u6539\u3002\u6253\u5f00wordpress\u76ee\u5f55\u4e0b\u7684.htaccess\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
php_value post_max_size 64M<\/code><\/pre>\n\u4fee\u6539Upload Max Filesize<\/h3>\n
\u4fee\u6539php.ini\u3002\u8fd9\u79cd\u65b9\u6cd5\u662f\u6700\u65b9\u4fbf\u7684\u3002\u4f46\u53ea\u9002\u5408\u6709\u8d85\u7ea7\u7ba1\u7406\u6743\u9650\u7684\u4e91\u4e3b\u673a\u6216\u662fvps\u3002\u6253\u5f00php.ini\u6587\u4ef6\u3002\u67e5\u627eupload_max_size=\u5e76\u628a=\u540e\u9762\u7684\u503c\u6539\u5927\u3002\u4e00\u822c\u662f64M\uff08\uff09\u6ce8\u610f\uff0c\u8fd9\u4e2a\u503c\u662f\u8981\u5e26\u5355\u4f4d\u7684\uff0c64M\uff1a<\/p>\n
upload_max_filesize = 64M<\/code><\/pre>\n\u901a\u8fc7.htaccess\u6587\u4ef6\u4fee\u6539\u3002\u6253\u5f00wordpress\u76ee\u5f55\u4e0b\u7684.htaccess\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n
php_value upload_max_filesize 64M<\/code><\/pre>\n\u9ad8\u7ea7\u5e94\u7528<\/h3>\n
\u901a\u8fc7\u4ee5\u4e0a\u4e94\u4e2a\u53c2\u6570\u7684\u4fee\u6539\u3002\u4f60\u7684wordpress\u53ca\u5404\u7c7b\u4e3b\u9898\u63d2\u4ef6\u57fa\u672c\u4e0a\u5c31\u53ef\u4ee5\u5b8c\u7f8e\u8fd0\u884c\u4e86\u3002\u5f53\u7136\u3002\u6700\u5e38\u7528\u7684\u51e0\u4e2a\u53c2\u6570\u8bbe\u7f6e\u3002\u60a8\u597d\u53ef\u4ee5\u5728\u60a8\u7684\u4e3b\u9898\u6587\u4ef6\u4e2d\u8fdb\u884c\u8bbe\u7f6e\u3002\u628a\u4e0b\u9762\u7684\u4ee3\u7801\u52a0\u5165\u60a8\u4e3b\u9898\u7684functions.php\u5373\u53ef\u3002\u5f53\u7136\u5176\u5b83\u51e0\u4e2a\u53c2\u6570\u5c31\u65e0\u80fd\u4e3a\u529b\u4e86\u3002\u53ea\u80fd\u901a\u8fc7\u4e0a\u9762\u7684\u65b9\u5f0f\u4fee\u6539\uff1a<\/p>\n
@ini_set( 'upload_max_size' , '64M' );\r\n@ini_set( 'post_max_size', '64M');\r\n@ini_set( 'max_execution_time', '3000' );<\/code><\/pre>\n <\/p>\n
<\/p>\n","protected":false},"excerpt":{"rendered":"
\u6211\u4eec\u5728\u4f7f\u7528wordpress\u8fc7\u7a0b\u4e2d\uff0c\u7ecf\u5e38\u4f1a\u9047\u5230\u5404\u79cd\u5404\u6837\u7684\u62a5\u9519\uff0c\u6700\u4e3b\u8981\u7684\u539f\u56e0\u662f\u73af\u5883\u914d\u7f6e\u6709\u4e00\u5b9a\u95ee\u9898\u3002\u6839\u636e\u5b98\u65b9\u63d0\u4f9b\u7684 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,1047,1048],"class_list":["post-2992","post","type-post","status-publish","format-standard","hentry","category-wljs","tag-wordpress","tag-1047","tag-1048"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=2992"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2992\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}