{"id":353,"date":"2020-07-19T02:51:33","date_gmt":"2020-07-18T17:51:33","guid":{"rendered":"https:\/\/tippang.com\/?p=353"},"modified":"2020-07-24T03:15:29","modified_gmt":"2020-07-23T18:15:29","slug":"b-wordpress-%ec%84%a4%ec%b9%98-ubuntu-linux","status":"publish","type":"post","link":"https:\/\/tippang.com\/?p=353","title":{"rendered":"WordPress \uc124\uce58 &#8211; Ubuntu Linux"},"content":{"rendered":"<p>Ubuntu Linux + WordPress \uc124\uce58 \ud301\uc785\ub2c8\ub2e4<\/p>\n<p><!--more--><\/p>\n<p><em><strong>\ub2e8\uacc4 1<\/strong><\/em><!--more--><\/p>\n<p>1. Linux 18.04 \uc11c\ubc84\ub97c \uc124\uce58\ud55c\ub2e4<\/p>\n<p>SSH \uc11c\ube44\uc2a4\ub97c \uc124\uce58\ud55c\ub2e4<\/p>\n<p>(Openssh-Server \ub97c \uc124\uce58 \ud6c4 SSH Port\ub97c \ubcf4\uc548\uc744 \uc704\ud574 \ubcc0\uacbd\ud55c\ub2e4)<\/p>\n<p>2. \ubc29\ud654\ubcbd\ud504\ub85c\uadf8\ub7a8\uc744 \uc124\uce58\ud55c\ub2e4 (UFW \ub610\ub294 Firewalld\uc744 \uc124\uce58 \ubc0f \uc124\uc815\ud55c\ub2e4)<\/p>\n<p>3. \ucd5c\uc2e0 \ubc84\uc804\uc73c\ub85c Ubuntu Linux \uc73c\ub85c \uc5c5\ub370\uc774\ud2b8 \ud55c\ub2e4.<\/p>\n<p>(apt-get update -y &amp;&amp; apt-get upgrade -y)<\/p>\n<hr \/>\n<p><em><strong>\ub2e8\uacc4 2<\/strong><\/em><\/p>\n<p>1. \uc6f9\uc11c\ubc84\ub97c \uc124\uce58\ud55c\ub2e4 (Apache \ub610\ub294 Nginx)<\/p>\n<p>apt-get install apache2<\/p>\n<p>apt-get install nginx<\/p>\n<p>2. \uc7ac\ubd80\ud305 \uc2dc \uc790\ub3d9\uc73c\ub85c \uc2e4\ud589\ub420 \uc218 \uc788\ub3c4\ub85d \uc124\uc815\ud55c\ub2e4<\/p>\n<p>systemctl enable apache2<\/p>\n<p>3. \uc2e4\ud589\uc0c1\ud0dc\ub97c \ud655\uc778\ud55c\ub2e4<\/p>\n<p>systemctl status apache2<\/p>\n<hr \/>\n<p><em><strong>\ub2e8\uacc4 3<\/strong><\/em><\/p>\n<p>1. PHP \ub97c \uc124\uce58\ud55c\ub2e4<\/p>\n<p>apt install php php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip<\/p>\n<p>2. PHP \ubc84\uc804\uc744 \ud655\uc778\ud55c\ub2e4<\/p>\n<p>php -v<\/p>\n<hr \/>\n<p><em><strong>\ub2e8\uacc4 4<\/strong><\/em><\/p>\n<p>1. MySQL Database server\ub97c \uc124\uce58\ud55c\ub2e4<\/p>\n<p>$ apt install mysql-server<\/p>\n<p>2. MySQL \uc11c\ubc84 \uae30\ubcf8\uc124\uc815\uc744 \ud55c\ub2e4<\/p>\n<p>mysql_secure_installation<\/p>\n<p>3. WordPress \uc5d0\uc11c \uc0ac\uc6a9\ud55c DB\ub97c \uc0dd\uc131\ud55c\ub2e4<\/p>\n<p>Create a Database for WordPress<\/p>\n<p>mysql -u root -p<\/p>\n<p>CREATE DATABASE wordpress ;<\/p>\n<p>GRANT ALL PRIVILEGES ON wordpress.* TO &#8216;admin_user&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;test&#8217;;<br \/>\nFLUSH PRIVILEGES;<br \/>\nexit;<\/p>\n<hr \/>\n<p><em><strong>\ub2e8\uacc4 5<\/strong><\/em><\/p>\n<p>1. WordPress \ub97c \ub2e4\uc6b4\ubc1b\ub294\ub2e4<\/p>\n<p>cd \/var\/www\/html<br \/>\nwget -c <a href=\"http:\/\/wordpress.org\/latest.zip\" target=\"_blank\" rel=\"noopener\">http:\/\/wordpress.org\/latest.zip<\/a><\/p>\n<p>2. \ub2e4\uc6b4\ubc1b\uc740 \ud30c\uc77c\uc758 \uc555\ucd95\uc744 \ud574\uc81c\ud55c\ub2e4<\/p>\n<p>unzip latest.zip<\/p>\n<p>3. \uc555\ucd95\uc774 \ud480\ub9b0 \ud3f4\ub354\/\ud30c\uc77c\uc5d0 \uad8c\ud55c\uc744 \ubcc0\uacbd\ud55c\ub2e4<\/p>\n<p>chown -R www-data:www-data wordpress<\/p>\n<p>3. WordPress \ud658\uacbd\uc744 \uc124\uc815\ud55c\ub2e4<\/p>\n<p>cd \/var\/www\/html\/wordpress<\/p>\n<p>mv wp-config-sample.php wp-config.php<\/p>\n<p>vim wp-config.php<\/p>\n<p>\/\/ ** MySQL settings &#8211; You can get this info from your web host ** \/\/<br \/>\n\/** The name of the database for WordPress *\/<br \/>\ndefine(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);<\/p>\n<p>\/** MySQL database username *\/<br \/>\ndefine(&#8216;DB_USER&#8217;, &#8216;admin_user&#8217;);<\/p>\n<p>\/** MySQL database password *\/<br \/>\ndefine(&#8216;DB_PASSWORD&#8217;, &#8216;StrongPassword&#8217;);<\/p>\n<p>\/** MySQL hostname *\/<br \/>\ndefine(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);<\/p>\n<p>\/** Database Charset to use in creating database tables. *\/<br \/>\ndefine(&#8216;DB_CHARSET&#8217;, &#8216;utf8&#8217;);<\/p>\n<p>\/** The Database Collate type. Don&#8217;t change this if in doubt. *\/<br \/>\ndefine(&#8216;DB_COLLATE&#8217;, &#8221;);<\/p>\n<p>Save and exit the file.<\/p>\n<hr \/>\n<p><strong><em>\ub2e8\uacc4 6<\/em><\/strong><\/p>\n<p>1. \uc6f9\uc11c\ubc84(apache\/nginx \uc758 \uae30\ubcf8\ud658\uacbd \ud30c\uc77c\uc744 \uc124\uc815\ud55c\ub2e4<\/p>\n<p>vim \/etc\/apache2\/sites-available\/domain.com.conf<\/p>\n<p>ServerAdmin admin@your_domain.com<br \/>\nServerName your_domain.com<br \/>\nServerAlias <a href=\"http:\/\/www.your_domain.com\" target=\"_blank\" rel=\"noopener\">www.your_domain.com<\/a><br \/>\nDocumentRoot \/var\/www\/html\/wordpress<\/p>\n<p>ln -s \/etc\/apache2\/sites-available\/test.com.conf \/etc\/apache2\/sites-enabled\/test.com.conf<\/p>\n<hr \/>\n<p><em><strong>\ub2e8\uacc4 7<\/strong><\/em><\/p>\n<p>1. WordPress \ub97c \uc124\uc815\ud55c\ub2e4<\/p>\n<p>2. \uc6f9\ud398\uc774\uc9c0\uc5d0 \uc811\uc18d\ud55c\ub2e4 <a href=\"http:\/\/your_domain.com\/\" target=\"_blank\" rel=\"noopener\">http:\/\/test.com\/<\/a><\/p>\n<p>3. \uae30\ubcf8\uc801\uc778 \uc815\ubcf4\ub97c \uc785\ub825 \ud6c4 \uc124\uce58\ub97c \uc9c4\ud578\ud55c\ub2e4<\/p>\n<p style=\"text-align: center;\">[\ucd9c\ucc98] www.rosehosting.com\u00a0 \uc0c1\uc138\uadf8\ub9bc \ud3ec\ud568 \ub0b4\uc6a9\uc740 \uc544\ub798 \uc815\ubcf4\ub97c \ucc38\uace0\ud558\uc138\uc694 \uc5f0\uacb0 <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noopener\">Click<\/a><\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"LxeS0YWjbN\"><p><a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04\/\" target=\"_blank\" rel=\"noopener\">How to Install WordPress with LAMP Stack on Ubuntu 18.04<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;How to Install WordPress with LAMP Stack on Ubuntu 18.04&#8221; &#8212; RoseHosting\" src=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wordpress-with-lamp-stack-on-ubuntu-18-04\/embed\/#?secret=LxeS0YWjbN\" data-secret=\"LxeS0YWjbN\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu Linux + WordPress \uc124\uce58 \ud301\uc785\ub2c8\ub2e4<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-353","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts\/353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=353"}],"version-history":[{"count":8,"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions"}],"predecessor-version":[{"id":601,"href":"https:\/\/tippang.com\/index.php?rest_route=\/wp\/v2\/posts\/353\/revisions\/601"}],"wp:attachment":[{"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tippang.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}