{"id":13,"date":"2024-12-01T07:43:09","date_gmt":"2024-12-01T07:43:09","guid":{"rendered":"http:\/\/211.230.203.47\/wordpress\/?p=13"},"modified":"2024-12-01T07:43:09","modified_gmt":"2024-12-01T07:43:09","slug":"%eb%8d%b0%ec%9d%b4%ed%84%b0%eb%b2%a0%ec%9d%b4%ec%8a%a4-%ec%97%b0%ea%b2%b0-%ec%a4%91-%ec%98%a4%eb%a5%98","status":"publish","type":"post","link":"https:\/\/www.soon7shop.kr\/wordpress\/?p=13","title":{"rendered":"\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \uc911 \uc624\ub958"},"content":{"rendered":"<p>wp-config.php\uc758 \uc0ac\uc6a9\uc790\uba85\uacfc \ube44\ubc00\ubc88\ud638 \uc815\ubcf4\uac00 \uc62c\ubc14\ub974\uc9c0 \uc54a\uac70\ub098 192.168.1.3\uc758 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\ubc84\uc5d0 \uc811\uadfc\ud560 \uc218 \uc5c6\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\ub294 \ud638\uc2a4\ud2b8\uc758 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\ubc84\uac00 \ub3d9\uc791\ud558\uc9c0 \uc54a\uace0 \uc788\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<hr \/>\n<h2>1. <strong><code>wp-config.php<\/code> \ud30c\uc77c\uc758 \uc124\uc815 \ud655\uc778<\/strong><\/h2>\n<p>\uc6cc\ub4dc\ud504\ub808\uc2a4\uc758 <code>wp-config.php<\/code> \ud30c\uc77c\uc5d0 \uc785\ub825\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc815\ubcf4\uac00 \uc815\ud655\ud55c\uc9c0 \ud655\uc778\ud558\uc138\uc694.<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo nano \/var\/www\/html\/wordpress\/wp-config.php<br \/>\n<\/code><\/div>\n<\/div>\n<p>\ud655\uc778\ud574\uc57c \ud560 \ud56d\ubaa9:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">php<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-php\"><span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_NAME'<\/span>, <span class=\"hljs-string\">'wordpress'<\/span>);        <span class=\"hljs-comment\">\/\/ \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc774\ub984<\/span><br \/>\n<\/code><\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-php\"><span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_USER'<\/span>, <span class=\"hljs-string\">'wp_user'<\/span>);          <span class=\"hljs-comment\">\/\/ \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc0ac\uc6a9\uc790\uba85<\/span><br \/>\n<\/code><\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-php\"><span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_PASSWORD'<\/span>, <span class=\"hljs-string\">'\ube44\ubc00\ubc88\ud638'<\/span>);    <span class=\"hljs-comment\">\/\/ \ub370\uc774\ud130\ubca0\uc774\uc2a4 \ube44\ubc00\ubc88\ud638<\/span><\/code><\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-php\"><br \/>\n<span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_HOST'<\/span>, <span class=\"hljs-string\">'localhost'<\/span>);        <span class=\"hljs-comment\">\/\/ \ud638\uc2a4\ud2b8 \uc774\ub984<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<h3>\uc810\uac80:<\/h3>\n<ul>\n<li><strong>DB_NAME<\/strong>: MySQL\uc5d0\uc11c \uc0dd\uc131\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc774\ub984\uacfc \uc77c\uce58\ud558\ub294\uc9c0 \ud655\uc778.<\/li>\n<li><strong>DB_USER<\/strong>: \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc0ac\uc6a9\uc790 \uc774\ub984\uc774 \uc62c\ubc14\ub978\uc9c0 \ud655\uc778.<\/li>\n<li><strong>DB_PASSWORD<\/strong>: MySQL \uc0ac\uc6a9\uc790 \uacc4\uc815\uc758 \ube44\ubc00\ubc88\ud638\uc640 \ub3d9\uc77c\ud55c\uc9c0 \ud655\uc778.<\/li>\n<li><strong>DB_HOST<\/strong>: \ub3d9\uc77c \uc11c\ubc84\uc5d0 \uc124\uce58\ub41c MySQL\uc774\ub77c\uba74 <code>localhost<\/code>\ub85c \uc720\uc9c0.<\/li>\n<\/ul>\n<hr \/>\n<h2>2. <strong>MySQL \uc0ac\uc6a9\uc790 \uad8c\ud55c \ud655\uc778<\/strong><\/h2>\n<p>MySQL\uc5d0 \uc811\uc18d\ud574 \uc0ac\uc6a9\uc790 \uad8c\ud55c\uc774 \uc81c\ub300\ub85c \uc124\uc815\ub418\uc5c8\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo mysql -u root -p<br \/>\n<\/code><\/div>\n<\/div>\n<p>\ub2e4\uc74c \uba85\ub839\uc5b4\ub97c \uc2e4\ud589:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">sql<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\">USE mysql;<br \/>\n<span class=\"hljs-keyword\">SELECT<\/span> <span class=\"hljs-keyword\">User<\/span>, Host <span class=\"hljs-keyword\">FROM<\/span> mysql.user <span class=\"hljs-keyword\">WHERE<\/span> <span class=\"hljs-keyword\">User<\/span> <span class=\"hljs-operator\">=<\/span> <span class=\"hljs-string\">'wp_user'<\/span>;<br \/>\n<\/code><\/div>\n<\/div>\n<ul>\n<li>\uacb0\uacfc\uc5d0 <code>wp_user<\/code>\uc640 <code>localhost<\/code>\uac00 \ud3ec\ud568\ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/li>\n<li>\uad8c\ud55c\uc774 \uc81c\ub300\ub85c \uc124\uc815\ub418\uc9c0 \uc54a\uc558\ub2e4\uba74 \ub2e4\uc2dc \uad8c\ud55c \ubd80\uc5ec:\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">sql<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">GRANT<\/span> <span class=\"hljs-keyword\">ALL<\/span> PRIVILEGES <span class=\"hljs-keyword\">ON<\/span> wordpress.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'wp_user'<\/span>@<span class=\"hljs-string\">'localhost'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'\ube44\ubc00\ubc88\ud638'<\/span>;<br \/>\nFLUSH PRIVILEGES;<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>3. <strong>MySQL \uc11c\ubc84 \uc0c1\ud0dc \ud655\uc778<\/strong><\/h2>\n<p>MySQL \uc11c\ubc84\uac00 \uc2e4\ud589 \uc911\uc778\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo systemctl status mysql<br \/>\n<\/code><\/div>\n<\/div>\n<ul>\n<li>MySQL \uc11c\ubc84\uac00 \uba48\ucdb0 \uc788\ub2e4\uba74:\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo systemctl start mysql<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>\ubd80\ud305 \uc2dc MySQL\uc774 \uc790\ub3d9\uc73c\ub85c \uc2dc\uc791\ub418\ub3c4\ub85d \uc124\uc815:\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo systemctl <span class=\"hljs-built_in\">enable<\/span> mysql<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>4. <strong>MySQL\uc5d0\uc11c \uc9c1\uc811 \uc811\uc18d \ud14c\uc2a4\ud2b8<\/strong><\/h2>\n<p><code>wp-config.php<\/code>\uc5d0 \uc124\uc815\ub41c \uc0ac\uc6a9\uc790 \uacc4\uc815\uc73c\ub85c \ub370\uc774\ud130\ubca0\uc774\uc2a4\uc5d0 \uc811\uc18d\ud560 \uc218 \uc788\ub294\uc9c0 \ud14c\uc2a4\ud2b8\ud569\ub2c8\ub2e4.<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">mysql -u wp_user -p -h localhost<br \/>\n<\/code><\/div>\n<\/div>\n<ul>\n<li>\uc81c\ub300\ub85c \uc811\uc18d\ub418\uba74 MySQL CLI\uac00 \uc5f4\ub9bd\ub2c8\ub2e4.<\/li>\n<li>\uc811\uc18d\uc5d0 \uc2e4\ud328\ud55c\ub2e4\uba74 \uc0ac\uc6a9\uc790 \uc774\ub984, \ube44\ubc00\ubc88\ud638, \ub610\ub294 \ud638\uc2a4\ud2b8 \uc124\uc815\uc744 \ub2e4\uc2dc \ud655\uc778\ud558\uc138\uc694.<\/li>\n<\/ul>\n<hr \/>\n<h2>5. <strong>\ubc29\ud654\ubcbd \uc124\uc815 \ud655\uc778<\/strong><\/h2>\n<p>\uc6b0\ubd84\ud22c \ubc29\ud654\ubcbd(UFW)\uc744 \uc0ac\uc6a9 \uc911\uc778 \uacbd\uc6b0 MySQL \ud3ec\ud2b8(\uae30\ubcf8: 3306)\uac00 \uc5f4\ub824 \uc788\ub294\uc9c0 \ud655\uc778\ud558\uc138\uc694.<\/p>\n<p>\ubc29\ud654\ubcbd \uc0c1\ud0dc \ud655\uc778:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo ufw status<br \/>\n<\/code><\/div>\n<\/div>\n<p>MySQL \ud3ec\ud2b8\ub97c \uc5f4\ub824\uba74:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo ufw allow 3306<br \/>\nsudo ufw reload<br \/>\n<\/code><\/div>\n<\/div>\n<hr \/>\n<h2>6. <strong><code>DB_HOST<\/code> \uc124\uc815 \ubcc0\uacbd (\uc678\ubd80 \uc11c\ubc84 \uc0ac\uc6a9 \uc2dc)<\/strong><\/h2>\n<p><code>DB_HOST<\/code>\ub97c <code>localhost<\/code> \ub300\uc2e0 \uc2e4\uc81c MySQL \uc11c\ubc84 IP \uc8fc\uc18c(<code>175.202.41.78<\/code>)\ub85c \uc124\uc815\ud574 \ubcf4\uc138\uc694.<br \/>\n<code>wp-config.php<\/code> \ud30c\uc77c\uc5d0\uc11c:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">php<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-php\"><span class=\"hljs-title function_ invoke__\">define<\/span>(<span class=\"hljs-string\">'DB_HOST'<\/span>, <span class=\"hljs-string\">'175.202.41.78'<\/span>);<br \/>\n<\/code><\/div>\n<\/div>\n<h3>\uc678\ubd80 \uc11c\ubc84\uc77c \uacbd\uc6b0 \ud655\uc778\ud560 \uc0ac\ud56d:<\/h3>\n<ul>\n<li>MySQL \uc11c\ubc84\uc5d0\uc11c \uc678\ubd80 \uc811\uc18d\uc774 \ud5c8\uc6a9\ub418\uc5c8\ub294\uc9c0 \ud655\uc778:\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">sql<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-sql\"><span class=\"hljs-keyword\">GRANT<\/span> <span class=\"hljs-keyword\">ALL<\/span> PRIVILEGES <span class=\"hljs-keyword\">ON<\/span> wordpress.<span class=\"hljs-operator\">*<\/span> <span class=\"hljs-keyword\">TO<\/span> <span class=\"hljs-string\">'wp_user'<\/span>@<span class=\"hljs-string\">'%'<\/span> IDENTIFIED <span class=\"hljs-keyword\">BY<\/span> <span class=\"hljs-string\">'\ube44\ubc00\ubc88\ud638'<\/span>;<br \/>\nFLUSH PRIVILEGES;<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li>MySQL \uc124\uc815 \ud30c\uc77c(<code>\/etc\/mysql\/mysql.conf.d\/mysqld.cnf<\/code>)\uc5d0\uc11c <code>bind-address<\/code> \ud56d\ubaa9\uc774 <code>0.0.0.0<\/code> \ub610\ub294 \ud2b9\uc815 IP\ub85c \uc124\uc815\ub418\uc5b4 \uc788\ub294\uc9c0 \ud655\uc778\ud558\uc138\uc694.<\/li>\n<\/ul>\n<hr \/>\n<h2>7. <strong>Apache \ubc0f PHP \ub85c\uadf8 \ud655\uc778<\/strong><\/h2>\n<p>Apache\uc640 PHP \ub85c\uadf8\ub97c \ud655\uc778\ud558\uc5ec \ucd94\uac00 \uc624\ub958 \uc815\ubcf4\ub97c \ud30c\uc545\ud558\uc138\uc694.<\/p>\n<p>Apache \ub85c\uadf8:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo <span class=\"hljs-built_in\">tail<\/span> -f \/var\/log\/apache2\/error.log<br \/>\n<\/code><\/div>\n<\/div>\n<p>PHP \uc624\ub958 \ub85c\uadf8:<\/p>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950\">\n<div class=\"flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none\">bash<\/div>\n<div class=\"sticky top-9 md:top-[5.75rem]\">\n<div class=\"absolute bottom-0 right-2 flex h-9 items-center\">\n<div class=\"flex items-center rounded bg-token-sidebar-surface-primary px-2 font-sans text-xs text-token-text-secondary dark:bg-token-main-surface-secondary\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre hljs language-bash\">sudo <span class=\"hljs-built_in\">tail<\/span> -f \/var\/log\/php*.<span class=\"hljs-built_in\">log<\/span><br \/>\n<\/code><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>wp-config.php\uc758 \uc0ac\uc6a9\uc790\uba85\uacfc \ube44\ubc00\ubc88\ud638 \uc815\ubcf4\uac00 \uc62c\ubc14\ub974\uc9c0 \uc54a\uac70\ub098 192.168.1.3\uc758 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\ubc84\uc5d0 \uc811\uadfc\ud560 \uc218 \uc5c6\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud569\ub2c8\ub2e4. \uc774\ub294 \ud638\uc2a4\ud2b8\uc758 \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc11c\ubc84\uac00 \ub3d9\uc791\ud558\uc9c0 \uc54a\uace0 \uc788\ub2e4\ub294 \uac83\uc744 \uc758\ubbf8\ud560 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. 1. wp-config.php \ud30c\uc77c\uc758 \uc124\uc815 \ud655\uc778 \uc6cc\ub4dc\ud504\ub808\uc2a4\uc758 wp-config.php \ud30c\uc77c\uc5d0 \uc785\ub825\ud55c \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc815\ubcf4\uac00 \uc815\ud655\ud55c\uc9c0 \ud655\uc778\ud558\uc138\uc694. bash sudo nano \/var\/www\/html\/wordpress\/wp-config.php \ud655\uc778\ud574\uc57c \ud560 \ud56d\ubaa9: php define(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;); \/\/ \ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc774\ub984 define(&#8216;DB_USER&#8217;, &#8216;wp_user&#8217;); \/\/ \ub370\uc774\ud130\ubca0\uc774\uc2a4 &hellip; <a href=\"https:\/\/www.soon7shop.kr\/wordpress\/?p=13\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;\ub370\uc774\ud130\ubca0\uc774\uc2a4 \uc5f0\uacb0 \uc911 \uc624\ub958&#8221;<\/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":[4],"tags":[],"class_list":["post-13","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/13","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":1,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":14,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions\/14"}],"wp:attachment":[{"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soon7shop.kr\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}