{"id":399,"date":"2019-09-18T10:42:26","date_gmt":"2019-09-18T01:42:26","guid":{"rendered":"http:\/\/www.bluebee.co.kr\/?p=399"},"modified":"2020-11-16T11:58:19","modified_gmt":"2020-11-16T02:58:19","slug":"ubuntu-nginx-php-%eb%b9%88%eb%b2%88%ed%95%9c-%ec%85%8b%ed%8c%85-%ec%98%a4%eb%a5%98","status":"publish","type":"post","link":"http:\/\/www.bluebee.co.kr\/?p=399","title":{"rendered":"ubuntu, nginx, php \ube48\ubc88\ud55c \uc14b\ud305 \uc624\ub958"},"content":{"rendered":"<p>\uc11c\ubc84 \uc14b\ud305\uc2dc \ube48\ubc88\ud788 \ubc1c\uc0dd\ud558\ub294 \uc624\ub958\uc640 \ud574\uacb0\ub0b4\uc6a9\uc744 \uba54\ubaa8\ud574\ub450\uc790.<\/p>\n<p>nginx 502 Bad Gateway upstream: &#8220;fastcgi:\/\/127.0.0.1:9000&#8221;<\/p>\n<pre class=\"prettyprint\">sudo vi \/etc\/php\/7.0\/fpm\/pool.d\/www.conf\r\n\r\n;listen = \/run\/php\/php7.0-fpm.sock\r\nlisten = 127.0.0.1:9000<\/pre>\n<p>&nbsp;<\/p>\n<p>access denied<\/p>\n<pre class=\"prettyprint\">sudo vi \/etc\/php\/7.0\/fpm\/pool.d\/www.conf \r\nsecurity.limit_extensions = .php .php3 .php4 .php5 .php7 .html<\/pre>\n<pre class=\"prettyprint\">sudo service php7.0-fpm restart<\/pre>\n<p>nginx ssl_certificate_key pass \uc624\ub958<\/p>\n<pre class=\"prettyprint\">\uc6d0\ubcf8 \ubc31\uc5c5\r\ncp domain.key domain.key.org\r\n\r\n\ud0a4\uc758 password \uc785\ub825 \ucc98\ub9ac\r\nopenssl rsa -in domain.key.org -out domain.key\r\n\r\n\r\nsudo service nginx restart<\/pre>\n<p>\uc2a4\ub9c8\ud2b8\uc5d0\ub514\ud130 The uploaded file exceeds the post_max_size<\/p>\n<pre class=\"prettyprint\">The uploaded file exceeds the post_max_size \uc624\ub958 \ubc1c\uc0dd\r\n\r\nphp.ini \uc6a9\ub7c9 \uc124\uc815\uc774\ub098 \uadf8\ub204\ubcf4\ub4dc \uc5b4\ub4dc\ubbfc\uc758 \uc6a9\ub7c9\uc124\uc815\uc744 \ud574\ubd24\uc790\r\n\uc2a4\ub9c8\ud2b8\uc5d0\ub514\ud130 \uc790\uccb4\uc5d0 \uc6a9\ub7c9\uc81c\ud55c\uc774 \ub610 \uac78\ub824\uc788\ub2e4. (\uc5b4\ub5a4\ub188\uc774 \ub300\uccb4 \uc774\ub807\uac8c..)\r\n\r\n\/extend\/smarteditor_upload_extend.php \ub97c \uc5f4\uc5b4\uc11c \uc218\uc815\ud558\uc790.\r\n\r\ndefine('SMARTEDITOR_UPLOAD_SIZE_LIMIT', 20);  \/\/ \uc2a4\ub9c8\ud2b8\uc5d0\ub514\ud130 \uc5c5\ub85c\ub4dc \uc0ac\uc774\uc988 \uc81c\ud55c ( \uae30\ubcf8 20MB )\r\n<\/pre>\n<p>client intended to send too large body<\/p>\n<pre class=\"prettyprint\">nginx \uc124\uc815\uc5d0\uc11c \uc801\uc6a9\ud574\uc8fc\uc790.\r\n\r\nserver {\r\n    client_max_body_size 0;\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\uc11c\ubc84 \uc14b\ud305\uc2dc \ube48\ubc88\ud788 \ubc1c\uc0dd\ud558\ub294 \uc624\ub958\uc640 \ud574\uacb0\ub0b4\uc6a9\uc744 \uba54\ubaa8\ud574\ub450\uc790. nginx 502 Bad Gateway upstream: &#8220;fastcgi:\/\/127.0.0.1:9000&#8221; sudo vi \/etc\/php\/7.0\/fpm\/pool.d\/www.conf ;listen = \/run\/php\/php7.0-fpm.sock listen = 127.0.0.1:9000 &nbsp; access denied sudo vi \/etc\/php\/7.0\/fpm\/pool.d\/www.conf security.limit_extensions = .php .php3 .php4 .php5 .php7 .html sudo service php7.0-fpm restart nginx ssl_certificate_key pass \uc624\ub958 \uc6d0\ubcf8 \ubc31\uc5c5 cp domain.key domain.key.org \ud0a4\uc758 password \uc785\ub825 \ucc98\ub9ac openssl rsa -in domain.key.org -out domain.key sudo service nginx restart \uc2a4\ub9c8\ud2b8\uc5d0\ub514\ud130 The uploaded file exceeds the post_max_size The uploaded file exceeds the post_max_size \uc624\ub958 \ubc1c\uc0dd php.ini \uc6a9\ub7c9 \uc124\uc815\uc774\ub098 \uadf8\ub204\ubcf4\ub4dc \uc5b4\ub4dc\ubbfc\uc758 \uc6a9\ub7c9\uc124\uc815\uc744 \ud574\ubd24\uc790 \uc2a4\ub9c8\ud2b8\uc5d0\ub514\ud130 \uc790\uccb4\uc5d0 \uc6a9\ub7c9\uc81c\ud55c\uc774 \ub610 \uac78\ub824\uc788\ub2e4. (\uc5b4\ub5a4\ub188\uc774 \ub300\uccb4 \uc774\ub807\uac8c..) \/extend\/smarteditor_upload_extend.php \ub97c \uc5f4\uc5b4\uc11c \uc218\uc815\ud558\uc790. define(&#8216;SMARTEDITOR_UPLOAD_SIZE_LIMIT&#8217;, 20); \/\/ \uc2a4\ub9c8\ud2b8\uc5d0\ub514\ud130 \uc5c5\ub85c\ub4dc \uc0ac\uc774\uc988 \uc81c\ud55c ( \uae30\ubcf8 20MB ) client intended to send too large body nginx \uc124\uc815\uc5d0\uc11c \uc801\uc6a9\ud574\uc8fc\uc790. server { client_max_body_size 0; }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-dev"],"_links":{"self":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=399"}],"version-history":[{"count":4,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":479,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions\/479"}],"wp:attachment":[{"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bluebee.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}