{"id":246,"date":"2022-04-01T16:30:42","date_gmt":"2022-04-01T09:30:42","guid":{"rendered":"http:\/\/congdong.longvan.net\/?p=246"},"modified":"2023-03-24T08:33:40","modified_gmt":"2023-03-24T01:33:40","slug":"huong-dan-cau-hinh-chay-nhieu-phien-ban-php-multiple-php-tren-directadmin","status":"publish","type":"post","link":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-chay-nhieu-phien-ban-php-multiple-php-tren-directadmin\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh ch\u1ea1y nhi\u1ec1u phi\u00ean b\u1ea3n PHP (multiple PHP) tr\u00ean DirectAdmin"},"content":{"rendered":"<div>\n<h5><strong>I. T\u1ed5ng quan:<\/strong><\/h5>\n<p>Hi\u1ec7n t\u1ea1i DirectAdmin c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 t\u1ed1i \u0111a 4 phi\u00ean b\u1ea3n PHP (v\u1edbi version DirectAdmin 1.56+). \u0110\u1ebfn hi\u1ec7n nay c\u00e1c phi\u00ean b\u1ea3n m\u00e0 DirectAdmin c\u00f2n h\u1ed7 tr\u1ee3 bao g\u1ed3m PHP 5.3 cho \u0111\u1ebfn PHP 8.0.<\/p>\n<h5><strong>II. H\u01b0\u1edbng d\u1eabn build nhi\u1ec1u phi\u00ean b\u1ea3n PHP:<\/strong><\/h5>\n<ol>\n<li><strong>B\u01b0\u1edbc 1: <\/strong>ki\u1ec3m tra:<br \/>\nY\u00eau c\u1ea7u: ki\u1ec3m tra version DirectAdmin ph\u1ea3i tr\u00ean 1.5 v\u00e0 version Custombuild ph\u1ea3i tr\u00ean 2.0<\/p>\n<ul>\n<li>SSH v\u00e0o server v\u00e0 th\u1ef1c hi\u1ec7n c\u00e1c l\u1ec7nh \u0111\u1ec3 ki\u1ec3m tra:\n<pre><em># \/usr\/local\/directadmin\/directadmin v\n<\/em><em># cd \/usr\/local\/directadmin\/custombuild<\/em>\n<em># .\/build version<\/em><\/pre>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>B\u01b0\u1edbc 2:<\/strong> ch\u1ea1y c\u00e1c l\u1ec7nh sau \u0111\u1ec3 thi\u1ebft l\u1eadp phi\u00ean b\u1ea3n PHP mong mu\u1ed1n\n<pre><em># .\/build set php1_release 5.6\n<\/em><em># .\/build set php2_release 7.4\n<\/em><em># .\/build set php3_release 7.3\n<\/em><em># .\/build set php1_mode php-fpm\n<\/em><em># .\/build set php2_mode php-fpm\n<\/em><em># .\/build set php3_mode php-fpm<\/em><\/pre>\n<ul>\n<li><strong>L\u01b0u \u00fd<\/strong>: v\u1edbi c\u00e1ch c\u1ea5u h\u00ecnh tr\u00ean th\u00ec PHP s\u1ebd ch\u1ea1y \u1edf mode PHP-FPM<\/li>\n<\/ul>\n<\/li>\n<li><strong>B\u01b0\u1edbc 2:<\/strong> Bi\u00ean d\u1ecbch l\u1ea1i c\u00e1c phi\u00ean b\u1ea3n PHP b\u1eb1ng c\u00e1ch th\u1ef1c hi\u1ec7n c\u00e1c c\u00e2u l\u1ec7nh sau:\n<pre><em># .\/build php n<\/em>\n<em># .\/build rewrite_confs\n<\/em><\/pre>\n<\/li>\n<li><strong>B\u01b0\u1edbc 3:<\/strong> Thay \u0111\u1ed5i v\u00e0 t\u00f9y ch\u1ecdn c\u00e1c version php cho t\u1eebng site web\n<ul>\n<li>Truy c\u1eadp v\u00e0o panel qu\u1ea3n tr\u1ecb DA http:\/\/[ip-address]:2222 b\u1eb1ng quy\u1ec1n user.<\/li>\n<li>Ch\u1ecdn domain m\u00e0 b\u1ea1n mu\u1ed1n thay \u0111\u1ed5i version php.<\/li>\n<li>T\u1ea1i m\u1ee5c Account Manager ch\u1ecdn Domain Setup.<br \/>\n<img decoding=\"async\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/02\/image-1633411732087.png\" alt=\"image-1633411732087.png\" \/><\/li>\n<li>Sau \u0111\u00f3 ch\u1ecdn php version selector v\u00e0 ch\u1ecdn version b\u1ea1n mu\u1ed1n \u0111\u1ed5i sau \u0111\u00f3 save l\u1ea1i<br \/>\n<img decoding=\"async\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2022\/02\/image-1633412148126.png\" alt=\"image-1633412148126.png\" \/><\/li>\n<li>Sau khi thay \u0111\u1ed5i phi\u00ean b\u1ea3n PHP c\u00e1c b\u1ea1n ch\u1edd 1 \u0111\u1ebfn 2 ph\u00fat \u0111\u1ec3 DirectAdmin c\u1eadp nh\u1eadt cho website c\u1ee7a b\u1ea1n nh\u00e9.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Nh\u01b0 v\u1eady, Long V\u00e2n \u0111\u00e3 ho\u00e0n th\u00e0nh h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u1ea5u h\u00ecnh multi PHP s\u1eed d\u1ee5ng panel DirecAdmin. Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I. T\u1ed5ng quan: Hi\u1ec7n t\u1ea1i DirectAdmin c\u00f3 th\u1ec3 h\u1ed7 tr\u1ee3 t\u1ed1i \u0111a 4 phi\u00ean b\u1ea3n PHP (v\u1edbi version DirectAdmin 1.56+). \u0110\u1ebfn hi\u1ec7n nay c\u00e1c phi\u00ean b\u1ea3n m\u00e0 DirectAdmin c\u00f2n h\u1ed7 tr\u1ee3 bao g\u1ed3m PHP 5.3 cho \u0111\u1ebfn PHP 8.0. II. H\u01b0\u1edbng d\u1eabn build nhi\u1ec1u phi\u00ean b\u1ea3n PHP: B\u01b0\u1edbc 1: ki\u1ec3m tra: Y\u00eau c\u1ea7u: ki\u1ec3m tra [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_oasis_is_in_workflow":0,"_oasis_original":0,"footnotes":""},"categories":[28],"tags":[],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-directadmin"],"_links":{"self":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/comments?post=246"}],"version-history":[{"count":5,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/246\/revisions"}],"predecessor-version":[{"id":1993,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/246\/revisions\/1993"}],"wp:attachment":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/media?parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/categories?post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/tags?post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}