{"id":1642,"date":"2015-09-20T19:14:10","date_gmt":"2015-09-20T11:14:10","guid":{"rendered":"https:\/\/ros.tw\/wp\/?p=1642"},"modified":"2015-09-20T19:14:10","modified_gmt":"2015-09-20T11:14:10","slug":"wordpress%e4%b8%8a%e5%82%b3%e6%aa%94%e6%a1%88%e5%a4%a7%e5%b0%8f%e6%9c%80%e5%a4%a7%e9%99%90%e5%88%b6","status":"publish","type":"post","link":"https:\/\/ros.tw\/wp\/?p=1642","title":{"rendered":"wordpress\u4e0a\u50b3\u6a94\u6848\u5927\u5c0f\u6700\u5927\u9650\u5236"},"content":{"rendered":"<h2 class=\"title\"><\/h2>\n<p>service nginx restart<\/p>\n<p>\/etc\/init.d\/php5-fpm restart<\/p>\n<p>&nbsp;<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"KapMD5OWbV\"><p><a href=\"https:\/\/nknuahuang.wordpress.com\/2014\/11\/20\/wordpress-%e4%bf%ae%e6%94%b9%e4%b8%8a%e5%82%b3%e6%aa%94%e6%a1%88%e5%a4%a7%e5%b0%8f%e4%b9%8b%e9%99%90%e5%88%b6\/\">[WordPress] \u4fee\u6539\u4e0a\u50b3\u6a94\u6848\u5927\u5c0f\u4e4b\u9650\u5236<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;[WordPress] \u4fee\u6539\u4e0a\u50b3\u6a94\u6848\u5927\u5c0f\u4e4b\u9650\u5236&#8221; &#8212; \u5bf0\u845b\u683c\u7684\u6559\u5b78\u7db2\u7ad9\" src=\"https:\/\/nknuahuang.wordpress.com\/2014\/11\/20\/wordpress-%e4%bf%ae%e6%94%b9%e4%b8%8a%e5%82%b3%e6%aa%94%e6%a1%88%e5%a4%a7%e5%b0%8f%e4%b9%8b%e9%99%90%e5%88%b6\/embed\/#?secret=m5EpuHSHh4#?secret=KapMD5OWbV\" data-secret=\"KapMD5OWbV\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>wordpress \u5c07\u4e0a\u50b3\u6a94\u6848\u7684\u5927\u5c0f\u9650\u5236\u52a0\u5927\uff08\u9810\u8a2d\u5927\u5c0f\u70ba2M\uff09\u3002<\/p>\n<p>\u6b65\u9a5f\uff1a<\/p>\n<h2>1.\u4fee\u6539\u76ee\u524d\u4f7f\u7528\u4f48\u666f\u4e3b\u984c\u7684function.php<\/h2>\n<p><strong>\u4f4d\u7f6e\uff1a\u7db2\u7ad9\u8cc7\u6599\u593e\u4f4d\u7f6e\/wp-content\/themes\/\u4f48\u666f\u4e3b\u984c\u540d\u7a31\/<span class=\"skimlinks-unlinked\">function.php<\/span><\/strong><\/p>\n<p>\u5c07\u4e0b\u9762\u7684code\u8cbc\u5230<span class=\"skimlinks-unlinked\">functions.php<\/span>\u88e1\u3002<\/p>\n<blockquote><p>@ini_set( \u2018upload_max_size\u2019 , \u2018100M\u2019 );\u00a0\u00a0 \/\/\u55ae\u4e00\u6a94\u6848\u5927\u5c0f\u6700\u5927\u503c<br \/>\n@ini_set( \u2018post_max_size\u2019, \u2019100M\u2019); \u00a0 \/\/\u8868\u55ae\u50b3\u8f38\u7684\u6700\u5927\u503c(\u901a\u5e38\u6bd4upload_max_size\u5927)<br \/>\n@ini_set( \u2018max_execution_time\u2019, \u2018300\u2019 );\u00a0\u00a0 \/\/Script\u57f7\u884c\u6642\u9593\u4e0a\u9650(\u55ae\u4f4d\uff1a\u79d2)<\/p><\/blockquote>\n<h2>2.\u5efa\u7acb\u6216\u8005\u7de8\u8f2fphp.ini<\/h2>\n<p><strong>\u4f4d\u7f6e\uff1a(ubuntu 14) \/etc\/php5\/apache2\/<span class=\"skimlinks-unlinked\">php.ini<\/span><\/strong><\/p>\n<p>\u5c07\u4e0b\u9762\u7684code\u8cbc\u5230<span class=\"skimlinks-unlinked\">php.ini<\/span>\u88e1\u3002<\/p>\n<blockquote><p>upload_max_filesize = 100M<br \/>\npost_max_size = 100M<br \/>\nmax_execution_time = 300<\/p><\/blockquote>\n<p>\u5099\u8a3b\uff1a\u82e5\u4e0d\u6e05\u695a<span class=\"skimlinks-unlinked\">php.ini<\/span>\u5728\u54ea\u88e1\uff0c\u53ef\u4f9d\u4e0b\u8ff0\u65b9\u5f0f\u67e5\u8a62\u2013<\/p>\n<ol>\n<li>\u5728\u7db2\u7ad9\u8cc7\u6599\u593e\u88e1\u65b0\u589e\u4e00\u500b\u7db2\u9801<span class=\"skimlinks-unlinked\">phpinfo.php\uff0c\u7db2\u9801\u5167\u5bb9\u8f38\u5165&#8221;&lt;?php<\/span>pinfo(); ?&gt;&#8221;\u5373\u53ef\u3002<\/li>\n<li>\u700f\u89bd\u6b64\u7db2\u9801\uff0c\u627e\u5230Configuration File (<span class=\"skimlinks-unlinked\">php.ini<\/span>) Path \u9805\u76ee\uff0c\u5c31\u53ef\u4ee5\u77e5\u9053\u4f4d\u7f6e\u3002<br \/>\n<h2><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-971 size-full\" src=\"https:\/\/nknuahuang.files.wordpress.com\/2014\/11\/phpini.jpg?w=614&amp;h=317\" alt=\"phpini\" width=\"614\" height=\"317\" \/><\/h2>\n<\/li>\n<\/ol>\n<h2>3.\u7de8\u8f2f.htaccess\u6587\u4ef6<\/h2>\n<p><strong>\u4f4d\u7f6e\uff1a\u7db2\u7ad9\u8cc7\u6599\u593e\u4f4d\u7f6e\/.htaccess<\/strong><\/p>\n<p>\u5c07\u4e0b\u9762\u7684code\u8cbc\u5230.htaccess\u88e1\u3002<\/p>\n<blockquote><p>php_value upload_max_filesize 100M<br \/>\nphp_value post_max_size 100M<br \/>\nphp_value max_execution_time 300<br \/>\nphp_value max_input_time 300<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>service nginx restart \/etc\/init.d\/php5-f &hellip; <a href=\"https:\/\/ros.tw\/wp\/?p=1642\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1642","post","type-post","status-publish","format-standard","hentry","category-ros"],"_links":{"self":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1642"}],"version-history":[{"count":1,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1642\/revisions"}],"predecessor-version":[{"id":1643,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=\/wp\/v2\/posts\/1642\/revisions\/1643"}],"wp:attachment":[{"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ros.tw\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}