{"id":4179,"date":"2020-02-25T09:52:22","date_gmt":"2020-02-25T02:52:22","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=4179"},"modified":"2020-02-25T09:52:22","modified_gmt":"2020-02-25T02:52:22","slug":"chuyen-server-su-dung-easyengine-v3-sang-wordops","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/chuyen-server-su-dung-easyengine-v3-sang-wordops\/","title":{"rendered":"Chuy\u1ec3n server s\u1eed d\u1ee5ng easyengine V3 sang Wordops"},"content":{"rendered":"<p>\u0110\u1ea7u ti\u00ean b\u1ea1n c\u00e0i \u0111\u1eb7t WordOps :<\/p>\n<div id=\"__code_0\" class=\"codehilite\">\n<pre>wget -qO wo wops.cc <span class=\"o\">&amp;&amp;<\/span> sudo bash wo\r\n\r\n<\/pre>\n<p>Note: Tr\u01b0\u1edbc khi h\u1ec7 th\u1ed1ng c\u00e0i \u0111\u1eb7t WordOps cho b\u1ea1n, th\u00ec script s\u1ebd backup to\u00e0n b\u1ed9 c\u1ea5u h\u00ecnh c\u1ee7a EasyEngine t\u1edbi th\u01b0 m\u1ee5c : <code class=\"codehilite\"><span class=\"err\">\/var\/lib\/wo-backup<\/span><\/code><\/p>\n<h3 id=\"C\u00e1c_B\u01b0\u1edbc_c\u00e0i_\u0111\u1eb7t\">C\u00e1c B\u01b0\u1edbc c\u00e0i \u0111\u1eb7t<\/h3>\n<p>Sau khi c\u00e0i \u0111\u1eb7t WordOPs, n\u1ebfu t\u1ea5t c\u1ea3 c\u00e1c website ch\u1ea1y \u1ed5n \u0111\u1ecbnh, b\u1ea1n c\u00f3 th\u1ec3 b\u1eaft \u0111\u1ea7u s\u1eed d\u1ee5ng WordOps gi\u1ed1ng nh\u01b0 l\u00e0 EasyEngine. \u0110\u1ed1i v\u1edbi c\u00e1c website t\u1ea1o tr\u01b0\u1edbc \u0111\u00f3 v\u1edbi EasyEngine, b\u1ea1n s\u1ebd c\u1ea7n ph\u1ea3i thay \u0111\u1ed5i m\u1ed9t s\u1ed1 thi\u1ebft l\u1eadp T\u1eeb EasyEngine\u00a0 nh\u1eb1m s\u1eed d\u1ee5ng thi\u1ebft l\u1eadp m\u1edbi t\u1eeb WordOPs. B\u1ea1n c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n b\u1eb1ng c\u00e1ch s\u1eed d\u1ee5ng l\u1ec7nh :<\/p>\n<pre>wo site update<\/pre>\n<p>Ho\u1eb7c ch\u1ec9nh s\u1eeda th\u1ee7 c\u00f4ng t\u1eebng website b\u1eb1ng l\u1ec7nh :<\/p>\n<pre>wo site edit<\/pre>\n<p>L\u01b0u \u00fd : N\u1ebfu m\u1ed9t s\u1ed1 website v\u1eabn ch\u1ea1y v\u1edbi php 5.6 hay 7.0 kh\u00f4ng t\u01b0\u01a1ng th\u00edch v\u1edbi c\u00e1c phi\u00ean b\u1ea3n php m\u1edbi. B\u1ea1n kh\u00f4ng n\u00ean thay \u0111\u1ed5i c\u1ea5u h\u00ecnh c\u1ee7a Vhost, WordOps m\u1eb7c \u0111\u1ecbnh ch\u1ea1y v\u1edbi phi\u00ean b\u1ea3n php nh\u1ecf nh\u1ea5t l\u00e0 7.2. Ngo\u00e0i ra th\u00ec website n\u1ebfu tr\u01b0\u1edbc \u0111\u00f3 ch\u1ea1y v\u1edbi w3tc th\u00ec b\u1ea1n s\u1ebd ph\u1ea3i s\u1eed d\u1ee5ng m\u1ed9t tu\u1ef3 ch\u1ecdn cache kh\u00e1c v\u1edbi WordOps.<\/p>\n<p>V\u00ed d\u1ee5:<\/p>\n<div id=\"__code_2\" class=\"codehilite\">\n<pre><span class=\"c1\"># K\u00edch ho\u1ea1t PHP 7.3 v\u00e0 c\u1eadp nh\u1eadt c\u1ea5u h\u00ecnh. <\/span>\r\nwo site update site.tld --php73\r\n<span class=\"c1\"># T\u1eaft  PHP 7.3 s\u1eed d\u1ee5ng PHP 7.2 (optional)<\/span>\r\nwo site update site.tld --php72<\/pre>\n<p>M\u1ed9t s\u1ed1 file \u0111\u01b0\u1eddng d\u1eabn c\u1eadp nh\u1eadt t\u1eeb EasyEngine sang WordOps.<\/p>\n<table>\n<thead>\n<tr>\n<th><strong>File c\u1ea5u h\u00ecnh\u00a0<\/strong><\/th>\n<th><strong>\u0110\u01b0\u1eddng d\u1eabn m\u1edbi<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>common\/locations.conf<\/td>\n<td>common\/locations-wo.conf<\/td>\n<\/tr>\n<tr>\n<td>common\/locations-php7.conf<\/td>\n<td>common\/locations-wo.conf<\/td>\n<\/tr>\n<tr>\n<td>common\/php.conf<\/td>\n<td>common\/php72.conf<\/td>\n<\/tr>\n<tr>\n<td>common\/php7.conf<\/td>\n<td>common\/php72.conf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 id=\"Xo\u00e1_phi\u00ean_b\u1ea3n_php_tr\u01b0\u1edbc_\u0111\u00f3.\">Xo\u00e1 phi\u00ean b\u1ea3n php tr\u01b0\u1edbc \u0111\u00f3.<\/h3>\n<p>N\u1ebfu b\u1ea1n kh\u00f4ng c\u1ea7n php 5.6 hay 7.0 n\u1eefa, b\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng xo\u00e1 b\u1eb1ng l\u1ec7nh sau :<\/p>\n<pre><span class=\"c1\"># php5.6<\/span>\r\napt-get -y autoremove php5.6-fpm php5.6-common --purge\r\n\r\n<span class=\"c1\"># php7.0<\/span>\r\napt-get -y autoremove php7.0-fpm php7.0-common --purge<\/pre>\n<\/div>\n<h3 id=\"Upgrading_MariaDB_to_10.3\">Upgrading MariaDB to 10.3<\/h3>\n<p>Tr\u01b0\u1edbc ti\u00ean b\u1ea1n c\u1ea7n ph\u1ea3i backup mysql databse. B\u1ea1n c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng backup b\u1eb1ng bash script sau :<\/p>\n<\/div>\n<pre>wget https:\/\/git.io\/JeGSb -O mysqldump.sh\r\nchmod +x mysqldump.sh<\/pre>\n<p>Ch\u1ea1y l\u1ec7nh sau \u0111\u1ec3 backup d\u1eef li\u1ec7u.<\/p>\n<pre>.\/mysqldump.sh --full<\/pre>\n<p>To\u00e0n b\u1ed9 d\u1eef li\u1ec7u mysql database c\u1ee7a b\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c backup, n\u00e9n v\u00e0 l\u01b0u tr\u1eef t\u1ea1i \/var\/www\/mysqldump<\/p>\n<h4 id=\"N\u00e2ng_c\u1ea5p_MariaDB_10.3\">N\u00e2ng c\u1ea5p MariaDB 10.3<\/h4>\n<p>\u0110\u1ea7u ti\u00ean, b\u1ea1n c\u1ea7n xo\u00e1 MariaDB-server \u0111ang c\u00e0i \u0111\u1eb7t tr\u00ean VPS, b\u1ea1n s\u1eed d\u1ee5ng l\u1ec7nh sau:<\/p>\n<pre>sudo apt-get autoremove mariadb-server -y<\/pre>\n<p>Sau \u0111\u00f3 b\u1ea1n c\u00f3 th\u1ec3 c\u00e0i \u0111\u1eb7t l\u1ea1i phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t c\u1ee7a MariaDB-server v\u1edbi WordOps.<\/p>\n<div id=\"__code_9\" class=\"codehilite\">\n<pre>wo stack install --mysql\r\n<\/pre>\n<p>V\u00e0 cu\u1ed1i c\u00f9ng b\u1ea1n h\u00e3y ch\u1eafc ch\u1eafn r\u1eb1ng m\u1ecdi n\u00e2ng c\u1ea5p c\u1ea5u tr\u00fac b\u1ea3ng c\u01a1 s\u1edf d\u1eef li\u1ec7u \u0111\u1ec1u \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng:<\/p>\n<pre>wo stack upgrade --mysql<\/pre>\n<p>Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u0110\u1ea7u ti\u00ean b\u1ea1n c\u00e0i \u0111\u1eb7t WordOps : wget -qO wo wops.cc &amp;&amp; sudo bash wo Note: Tr\u01b0\u1edbc khi h\u1ec7 th\u1ed1ng c\u00e0i \u0111\u1eb7t WordOps cho b\u1ea1n, th\u00ec script s\u1ebd backup to\u00e0n b\u1ed9 c\u1ea5u h\u00ecnh c\u1ee7a EasyEngine t\u1edbi th\u01b0 m\u1ee5c : \/var\/lib\/wo-backup C\u00e1c B\u01b0\u1edbc c\u00e0i \u0111\u1eb7t Sau khi c\u00e0i \u0111\u1eb7t WordOPs, n\u1ebfu t\u1ea5t c\u1ea3 c\u00e1c website ch\u1ea1y [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5159],"class_list":["post-4179","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-wordops"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=4179"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4179\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=4179"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=4179"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=4179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}