{"id":26823,"date":"2023-04-15T17:39:12","date_gmt":"2023-04-15T10:39:12","guid":{"rendered":"https:\/\/doc.bnix.vn\/?p=26823"},"modified":"2023-04-15T17:39:17","modified_gmt":"2023-04-15T10:39:17","slug":"huong-dan-thay-doi-webserver-va-phien-ban-php","status":"publish","type":"post","link":"https:\/\/doc.bnix.vn\/huong-dan-thay-doi-webserver-va-phien-ban-php\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn thay \u0111\u1ed5i webserver v\u00e0 phi\u00ean b\u1ea3n php"},"content":{"rendered":"\n\n
\n \n
\n \n
\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n <\/div>\n \n
\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n <\/div>\n<\/div>\n \n\n
\n 4.8\/5 - (10 b\u00ecnh ch\u1ecdn) <\/div>\n <\/div>\n\n

Th\u00f4ng th\u01b0\u1eddng c\u00e1c Panel s\u1ebd kh\u00f4ng c\u00f3 v\u1ee5 thay \u0111\u1ed5i webserver, nh\u01b0ng Fastpanel th\u00ec c\u00f3, v\u00e0 th\u1eadm ch\u00ed l\u00e0 m\u1ed7i web ch\u1ea1y 1 webserver kh\u00e1c nhau. C\u00f2n webserver l\u00e0 g\u00ec c\u00e1c b\u1ea1n tra google gi\u00fap m\u00ecnh nh\u00e9.<\/p>\n\n\n\n

\u0110\u1ec3 thay \u0111\u1ed5i webserver cho website c\u00e1c b\u1ea1n v\u00e0o Site card <\/strong>c\u1ee7a website \u0111\u00f3. R\u1ed3i ch\u1ecdn v\u00e0o m\u1ee5c Settings<\/strong><\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n
\"\"<\/figure>\n\n\n\n

Ti\u1ebfp theo ch\u1ecdn tab PHP Settings<\/strong><\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

N\u00f3i l\u00e0 \u0111\u1ed5i webserver nh\u01b0ng sau l\u1ea1i v\u00e0o PHP settings. V\u00ec n\u00f3 c\u00f3 li\u00ean quan nhau, m\u1ed7i ch\u1ebf \u0111\u1ed9 PHP mode s\u1ebd t\u01b0\u01a1ng \u1ee9ng v\u1edbi 1 lo\u1ea1i webserver. PHP mode c\u1ee5 th\u1ec3 nh\u01b0 sau:<\/p>\n\n\n\n

    \n
  • Module Apache:<\/strong> \u0110\u00e2y l\u00e0 ch\u1ebf \u0111\u1ed9 Apache<\/strong> thu\u1ea7n, \u1edf ch\u1ebf \u0111\u1ed9 n\u00e0y th\u00ec kh\u00f4ng \u0111\u1ed5i \u0111\u01b0\u1ee3c phi\u00ean b\u1ea3n php<\/li>\n\n\n\n
  • PHP-FPM:<\/strong> Ch\u1ebf \u0111\u1ed9 n\u00e0y t\u01b0\u01a1ng \u1ee9ng v\u1edbi webserver l\u00e0 NGINX ONLY<\/strong>, \u1edf ch\u1ebf \u0111\u1ed9 n\u00e0y b\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn b\u1ea5t c\u1ee9 phi\u00ean b\u1ea3n php n\u00e0o m\u00e0 b\u1ea1n \u0111\u00e3 c\u00e0i tr\u00ean panel (\u1edf b\u00e0i H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t multiphp cho Fastpanel). \u0110\u00e2y l\u00e0 ch\u1ebf \u0111\u1ed9 nhanh nh\u1ea5t m\u00e0 \u00edt t\u1ed1n t\u00e0i nguy\u00ean. Tuy nhi\u00ean, n\u00f3 s\u1ebd kh\u00f4ng s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c htaccess. \u0110i k\u00e8m v\u1edbi n\u00f3 l\u00e0 t\u00ednh n\u0103ng gi\u1edbi h\u1ea1n worker (Workers count)<\/strong> \u0111\u1ec3 tr\u00e1nh b\u1ecb full CPU, \u1edf t\u00ednh n\u0103ng n\u00e0y m\u1eb7c \u0111\u1ecbnh l\u00e0 2 workers, nh\u01b0ng n\u1ebfu b\u1ea1n c\u00f3 nhi\u1ec1u CPU, c\u00f3 th\u1ec3 ch\u1ec9nh s\u1ed1 Workers = 2 x vCPU<\/strong><\/li>\n\n\n\n
  • FastCGI:<\/strong> Ch\u1ebf \u0111\u1ed9 n\u00e0y t\u01b0\u01a1ng \u1ee9ng v\u1edbi webserver l\u00e0 NGINX PROXY APACHE<\/strong>, s\u1eed d\u1ee5ng fastcgi, ch\u1ebf \u0111\u1ed9 n\u00e0y ch\u1ea1y c\u0169ng r\u1ea5t nhanh, nh\u01b0ng h\u01a1i t\u1ed1n ram do n\u00f3 x\u00e0i fastcgi cache l\u00ean ram. B\u1ea1n c\u00f3 th\u1ec3 d\u00f9ng htaccess \u0111\u1ec3 c\u1ea5u h\u00ecnh th\u00eam cho website, c\u00f3 th\u1ec3 tu\u1ef3 ch\u1ecdn c\u00e1c phi\u00ean b\u1ea3n PHP nh\u01b0ng n\u00f3 kh\u00f4ng c\u00f3 ch\u1ebf \u0111\u1ed9 gi\u1edbi h\u1ea1n workers nh\u01b0 PHP-FPM<\/strong><\/li>\n\n\n\n
  • CGI:<\/strong> \u0110\u00e2y l\u00e0 ch\u1ebf \u0111\u1ed9 Apache Mode CGI<\/strong>, t\u01b0\u01a1ng t\u1ef1 Apache thu\u1ea7n, nh\u01b0ng c\u00f3 th\u1ec3 tu\u1ef3 ch\u1ecdn phi\u00ean b\u1ea3n php.<\/li>\n<\/ul>\n\n\n\n

    Khuy\u1ebfn kh\u00edch d\u00f9ng ch\u1ebf \u0111\u1ed9 PHP-FPM<\/strong> ho\u1eb7c FastCGI<\/strong> v\u00ec n\u00f3 nhanh v\u00e0 t\u01b0\u01a1ng th\u00edch t\u1ed1t c\u00e1c website. <\/p>\n\n\n\n

    C\u00f2n v\u1ec1 thay \u0111\u1ed5i phi\u00ean b\u1ea3n PHP c\u00e1c b\u1ea1n ch\u1ecdn \u1edf m\u1ee5c Version<\/strong> trong h\u00ecnh ph\u00eda tr\u00ean.<\/p>\n\n\n\n

    Sau khi thay \u0111\u1ed5i b\u1ea5m Save l\u00e0 \u0111\u01b0\u1ee3c. Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng<\/p>\n","protected":false},"excerpt":{"rendered":"

    H\u01b0\u1edbng d\u1eabn \u0111\u1ed5i webserver v\u00e0 \u0111\u1ed5i phi\u00ean php cho t\u1eebng website tr\u00ean Fastpanel<\/p>\n","protected":false},"author":3,"featured_media":26826,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[51],"tags":[262,263,264],"class_list":["post-26823","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fastpanel","tag-change-php","tag-doi-phien-ban-php","tag-doi-webserver"],"_links":{"self":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts\/26823","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/comments?post=26823"}],"version-history":[{"count":0,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts\/26823\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/media\/26826"}],"wp:attachment":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/media?parent=26823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/categories?post=26823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/tags?post=26823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}