{"id":173,"date":"2021-02-16T16:51:24","date_gmt":"2021-02-16T07:51:24","guid":{"rendered":"https:\/\/blog.mydepot.kr\/?p=173"},"modified":"2021-11-23T15:01:45","modified_gmt":"2021-11-23T06:01:45","slug":"nginx-%ec%9c%88%eb%8f%84%ec%9a%b0-nginx-php-%ea%b8%b0%eb%b3%b8-%ec%84%b8%ed%8c%85","status":"publish","type":"post","link":"https:\/\/blog.mydepot.kr\/?p=173","title":{"rendered":"[NGINX] \uc708\ub3c4\uc6b0 NGINX + PHP + MariaDB \uae30\ubcf8 \uc138\ud305"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li><a rel=\"noreferrer noopener\" href=\"https:\/\/nginx.org\/en\/download.html\" target=\"_blank\">nginx \uacf5\uc2dd \ud648\ud398\uc774\uc9c0<\/a>\uc5d0\uc11c <strong>\uc708\ub3c4\uc6b0\uc6a9 \uc555\ucd95\ud30c\uc77c<\/strong>\uc744 \ub2e4\uc6b4 \ubc1b\uc544 \uc801\ub2f9\ud55c \uc704\uce58\uc5d0 \uc555\ucd95\uc744 \ud47c\ub2e4.<\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/windows.php.net\/download\/\" target=\"_blank\">php \uacf5\uc2dd \ud648\ud398\uc774\uc9c0<\/a>\uc5d0\uc11c <strong>\uc708\ub3c4\uc6b0\uc6a9 None Thread Safe \uc555\ucd95\ud30c\uc77c<\/strong>\uc744 \ub2e4\uc6b4 \ubc1b\uc544 \uc801\ub2f9\ud55c \uc704\uce58\uc5d0 \uc555\ucd95\uc744 \ud47c\ub2e4.<\/li><li><a rel=\"noreferrer noopener\" href=\"https:\/\/mariadb.org\/download\/\" target=\"_blank\">MariaDB \uacf5\uc2dd \ud648\ud398\uc774\uc9c0<\/a>\uc5d0\uc11c <strong>\uc708\ub3c4\uc6b0\uc6a9 MSI \uc124\uce58\ud30c\uc77c<\/strong>\uc744 \ub2e4\uc6b4\ubc1b\uc544 \uc124\uce58\ud55c\ub2e4. (root \uacc4\uc815\uc815\ubcf4, UTF \uc124\uc815)<\/li><li>php \uc555\ucd95 \ud574\uc81c\ud55c \ud3f4\ub354\ub85c \uac00\uc11c php.ini-development \ub97c php.ini \ub85c \uc218\uc815\ud55c\ub2e4.<\/li><li>\ud30c\uc77c\uc744 \uc5f4\uc5b4 extension=mysqli \uc640 extension_dir = &#8220;ext&#8221; \ubd80\ubd84\uc758 \uc8fc\uc11d\uc744 \ubaa8\ub450 \ud574\uc81c\ud55c\ub2e4.<\/li><li>RunHiddenConsole.zip \ub2e4\uc6b4\ub85c\ub4dc (<a rel=\"noreferrer noopener\" href=\"https:\/\/redmine.lighttpd.net\/attachments\/660\/RunHiddenConsole.zip\" data-type=\"URL\" data-id=\"https:\/\/redmine.lighttpd.net\/attachments\/660\/RunHiddenConsole.zip\" target=\"_blank\">\ub2e4\uc6b4\ub85c\ub4dc \ub9c1\ud06c<\/a>) \ud574\uc11c \uc2e4\ud589\ud30c\uc77c\uc744 \uc801\ub2f9\ud55c \uc704\uce58\uc5d0 \uc555\ucd95\ud574\uc81c<\/li><li>\uc801\ub2f9\ud55c \uc704\uce58\uc5d0 php \uc2e4\ud589 \ubc30\uce58\ud30c\uc77c \uc0dd\uc131, \ub0b4\uc6a9\uc740 \uc544\ub798 \ucc38\uc870<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n@ECHO OFF\nset PATH=C:\\php;%PATH%\nc:\\jcms\\RunHiddenConsole.exe C:\\php\\php-cgi.exe -b 127.0.0.1:9000\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\"><li>\uba85\ub839\ud504\ub86c\ud504\ud2b8\ub97c \uc2e4\ud589\ud574\uc11c php.exe\uac00 \uc788\ub294 \ud3f4\ub354\ub85c \uac00\uc11c php-cgi -b 127.0.0.1:9000 \uba85\ub839\uc5b4 \uc2e4\ud589<\/li><li>nginx\ub97c \uc555\ucd95 \ud574\uc81c\ud55c \ud3f4\ub354 \uc548\uc758 conf\/nginx.conf \ud30c\uc77c\uc744 \uc5f4\uc5b4 location \/ \uc548\uc758 index \uc5d0 index.php \ucd94\uac00<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlocation \/ {\n            root   html;\n            index  index.php index.html index.htm;\n}\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\"><li>location ~ \\.php$ \ubd80\ubd84 \uc8fc\uc11d \ud574\uc81c, \uc544\ub798\uc640 \uac19\uc774 \uc218\uc815<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nlocation ~ \\.php$ {\n            root           html;\n            fastcgi_pass   127.0.0.1:9000;\n            fastcgi_index  index.php;\n            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;\n            include        fastcgi_params;\n}\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\"><li>index.php \ub97c \ub9cc\ub4e4\uc5b4 &lt;?php phpinfo(); ?> \ub85c \uc800\uc7a5<\/li><li>db.php \ub97c \ub9cc\ub4e4\uc5b4 \uc544\ub798 \uc18c\uc2a4 \ub0b4\uc6a9\ub300\ub85c \uc800\uc7a5<\/li><\/ul>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&amp;lt;?php\n      $s = mysqli_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;root&quot;) or die(&quot;\uc2e4\ud328\uc785\ub2c8\ub2e4&quot;);\n      echo &quot;\uc131\uacf5\uc785\ub2c8\ub2e4&quot;;\n      mysqli_close($s);\n?&gt; \n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\"><li>127.0.0.1 \/ 127.0.0.1\/db.php \ub97c \uac01\uac01 \ube0c\ub77c\uc6b0\uc800\ub85c \uc5f4\uc5b4 \ud655\uc778<\/li><li>\ud0d0\uc0c9\uae30\ub098 \uc5f4\uae30\ub85c shell:startup \ub85c \uc2dc\uc791\ud504\ub85c\uadf8\ub7a8 \ud3f4\ub354\ub97c \uc5f4\uc5b4 nginx.exe \ubc14\ub85c\uac00\uae30, php \uc2e4\ud589 \ubc30\uce58\ud30c\uc77c\uc744 \ub123\uc5b4\uc8fc\uae30 (\uc708\ub3c4\uc6b0 \uc7ac\ubd80\ud305\uc2dc \uc790\ub3d9 \uc11c\ubc84 \uc2e4\ud589)<\/li><\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>nginx \uacf5\uc2dd \ud648\ud398\uc774\uc9c0\uc5d0\uc11c \uc708\ub3c4\uc6b0\uc6a9 \uc555\ucd95\ud30c\uc77c\uc744 \ub2e4\uc6b4 \ubc1b\uc544 \uc801\ub2f9\ud55c \uc704\uce58\uc5d0 \uc555\ucd95\uc744 \ud47c\ub2e4. php \uacf5\uc2dd \ud648\ud398\uc774\uc9c0\uc5d0\uc11c \uc708\ub3c4\uc6b0\uc6a9 None Thread Safe \uc555\ucd95\ud30c\uc77c\uc744 \ub2e4\uc6b4 \ubc1b\uc544 \uc801\ub2f9\ud55c \uc704\uce58\uc5d0 \uc555\ucd95\uc744 \ud47c\ub2e4. MariaDB \uacf5\uc2dd \ud648\ud398\uc774\uc9c0\uc5d0\uc11c \uc708\ub3c4\uc6b0\uc6a9 MSI \uc124\uce58\ud30c\uc77c\uc744 \ub2e4\uc6b4\ubc1b\uc544 \uc124\uce58\ud55c\ub2e4. (root \uacc4\uc815\uc815\ubcf4, UTF \uc124\uc815) php \uc555\ucd95 \ud574\uc81c\ud55c \ud3f4\ub354\ub85c \uac00\uc11c php.ini-development \ub97c php.ini \ub85c \uc218\uc815\ud55c\ub2e4. \ud30c\uc77c\uc744 \uc5f4\uc5b4 extension=mysqli \uc640 extension_dir = &#8220;ext&#8221; \ubd80\ubd84\uc758 &#8230; <a title=\"[NGINX] \uc708\ub3c4\uc6b0 NGINX + PHP + MariaDB \uae30\ubcf8 \uc138\ud305\" class=\"read-more\" href=\"https:\/\/blog.mydepot.kr\/?p=173\" aria-label=\"[NGINX] \uc708\ub3c4\uc6b0 NGINX + PHP + MariaDB \uae30\ubcf8 \uc138\ud305\uc5d0 \ub300\ud574 \ub354 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uc138\uc694\">\ub354 \uc77d\uae30<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[10],"tags":[42,23,41],"class_list":["post-173","post","type-post","status-publish","format-standard","hentry","category-server","tag-mariadb","tag-php","tag-nginx"],"modified_by":"\ucc38\ube5b\ubc14\ub2e4","_links":{"self":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173"}],"version-history":[{"count":6,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":403,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions\/403"}],"wp:attachment":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}