{"id":4569,"date":"2020-04-03T17:45:24","date_gmt":"2020-04-03T10:45:24","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=4569"},"modified":"2020-04-03T17:45:24","modified_gmt":"2020-04-03T10:45:24","slug":"cach-tao-trang-phpinfo-tren-hosting","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/cach-tao-trang-phpinfo-tren-hosting\/","title":{"rendered":"C\u00e1ch t\u1ea1o trang phpinfo  tr\u00ean hosting"},"content":{"rendered":"<p><span>Trong b\u00e0i n\u00e0y, ch\u00fang t\u00f4i s\u1ebd gi\u1edbi thi\u1ec7u cho b\u1ea1n h\u00e0m <\/span><i><span>phpinfo()<\/span><\/i><span>\u00a0v\u00e0 gi\u1ea3i th\u00edch l\u00fd do t\u1ea1i sao n\u00f3 c\u00f3 th\u1ec3 h\u1eefu \u00edch cho b\u1ea1n.\u00a0Sau \u0111\u00f3, ch\u00fang t\u00f4i s\u1ebd ch\u1ec9 cho b\u1ea1n c\u00e1ch s\u1eed d\u1ee5ng n\u00f3 \u0111\u1ec3 t\u1ea1o trang phpinfo cho trang web WordPress c\u1ee7a b\u1ea1n.<\/span><\/p>\n<h2 id=\"Gi\u1edbi_thi\u1ec7u_v\u1ec1\u00a0H\u00e0m\u00a0phpinfo_()\"><span style=\"font-size: 24pt;\">Gi\u1edbi thi\u1ec7u v\u1ec1\u00a0H\u00e0m\u00a0<i>phpinfo ()<\/i><\/span><span id=\"an-introduction-to-the-phpinfo-function\" class=\"anchor-hash\" aria-hidden=\"true\"><\/span><\/h2>\n<p><a href=\"https:\/\/www.php.net\/manual\/en\/function.phpinfo.php\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><i><span>phpinfo()<\/span><\/i><span>\u00a0l\u00e0 m\u1ed9t h\u00e0m PHP<\/span><\/a><span>\u00a0\u00a0ho\u1eb7c m\u1ed9t \u0111o\u1ea1n m\u00e3 nh\u1eadn m\u1ed9t ho\u1eb7c nhi\u1ec1u tham s\u1ed1 v\u00e0 tr\u1ea3 v\u1ec1 m\u1ed9t gi\u00e1 tr\u1ecb.\u00a0Ch\u1ea1y<\/span><i><span> phpinfo()<\/span><\/i><span>\u00a0s\u1ebd hi\u1ec3n th\u1ecb th\u00f4ng tin li\u00ean quan \u0111\u1ebfn<\/span><a href=\"https:\/\/kinsta.com\/knowledgebase\/what-is-php\/\" rel=\"nofollow noopener\" target=\"_blank\"><span>\u00a0c\u1ea5u h\u00ecnh PHP c\u1ee7a trang web c\u1ee7a b\u1ea1n<\/span><\/a><span>\u00a0, bao g\u1ed3m:<\/span><\/p>\n<ul>\n<li><span>Phi\u00ean b\u1ea3n hi\u1ec7n t\u1ea1i c\u1ee7a PHP trang web c\u1ee7a b\u1ea1n \u0111ang ch\u1ea1y.<\/span><\/li>\n<li><span>Th\u00f4ng tin m\u00e1y ch\u1ee7 v\u00e0 m\u00f4i tr\u01b0\u1eddng c\u1ee7a b\u1ea1n.<\/span><\/li>\n<li><span>M\u00f4i tr\u01b0\u1eddng PHP.<\/span><\/li>\n<li><span>Th\u00f4ng tin phi\u00ean b\u1ea3n H\u1ec7 \u0111i\u1ec1u h\u00e0nh (H\u0110H) c\u1ee7a b\u1ea1n.<\/span><\/li>\n<li><span>\u0110\u01b0\u1eddng d\u1eabn, bao g\u1ed3m c\u1ea3 v\u1ecb tr\u00ed c\u1ee7a\u00a0<\/span><a href=\"https:\/\/kinsta.com\/blog\/wordpress-maximum-upload-file-size\/\" rel=\"nofollow noopener\" target=\"_blank\"><i><span>php.ini<\/span><\/i><\/a><span>\u00a0.<\/span><\/li>\n<li><span>Gi\u00e1 tr\u1ecb Master v\u00e0 local cho c\u00e1c t\u00f9y ch\u1ecdn c\u1ea5u h\u00ecnh PHP.<\/span><\/li>\n<li><a href=\"https:\/\/kinsta.com\/blog\/http-status-codes\/\" rel=\"nofollow noopener\" target=\"_blank\">HTTP headers<\/a>.<\/li>\n<li><a href=\"https:\/\/www.php.net\/license\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\"><span>Gi\u1ea5y ph\u00e9p PHP<\/span><\/a><span>\u00a0.<\/span><\/li>\n<li><span>C\u00e1c m\u00f4-\u0111un v\u00e0 ph\u1ea7n m\u1edf r\u1ed9ng hi\u1ec7n \u0111ang s\u1eed d\u1ee5ng.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: 24pt;\">C\u00e1ch t\u1ea1o trang phpinfo<\/span><\/p>\n<p><em><span style=\"font-size: 14pt;\">B\u01b0\u1edbc 1: t\u1ea1o file\u00a0 c\u00f3 t\u00ean info.php v\u00e0 upload l\u00ean hosting<\/span><\/em><\/p>\n<p><span>\u0110\u1ec3 b\u1eaft \u0111\u1ea7u t\u1ea1o trang n\u00e0y, h\u00e3y m\u1edf tr\u00ecnh so\u1ea1n th\u1ea3o v\u0103n b\u1ea3n \u01b0a th\u00edch c\u1ee7a b\u1ea1n sau \u0111\u00f3 th\u00eam \u0111o\u1ea1n code sau v\u00e0o:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">&lt;?php\r\n\r\nphpinfo( );\r\n\r\n?&gt;<\/pre>\n<p>&nbsp;<\/p>\n<p><em><span style=\"font-size: 14pt;\">B\u01b0\u1edbc 2: Upload file v\u1eeba t\u1ea1o l\u00ean hosting b\u1eb1ng filezilla ho\u1eb7c upload tr\u1ef1c ti\u1ebfp b\u1eb1ng filenamager\u00a0 n\u1ebfu hosting c\u00f3 h\u1ed7 tr\u1ee3.<\/span><\/em><\/p>\n<p>\u0110\u1ed1i v\u1edbi filezilla<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.34.39.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4571\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.34.39.png\" alt=\"\" width=\"1150\" height=\"900\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.34.39.png 1150w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.34.39-300x235.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.34.39-1024x801.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.34.39-768x601.png 768w\" sizes=\"(max-width: 1150px) 100vw, 1150px\" \/><\/a><\/p>\n<p>ho\u1eb7c c\u00f3 th\u1ec3 upload\u00a0 tr\u1ef1c ti\u1ebfp tr\u00ean filemanager<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.35.47.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4572\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.35.47.png\" alt=\"\" width=\"1258\" height=\"956\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.35.47.png 1258w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.35.47-300x228.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.35.47-1024x778.png 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/Screen-Shot-2020-04-03-at-17.35.47-768x584.png 768w\" sizes=\"(max-width: 1258px) 100vw, 1258px\" \/><\/a><\/p>\n<h3 id=\"B\u01b0\u1edbc_3:_Truy_c\u1eadp_Trang_phpinfo_trong_Tr\u00ecnh_duy\u1ec7t_c\u1ee7a_b\u1ea1n\"><em><span style=\"font-size: 14pt;\">B\u01b0\u1edbc 3: Truy c\u1eadp Trang phpinfo trong Tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n<\/span><\/em><span id=\"step-2-access-the-phpinfo-page-in-your-browser\" class=\"anchor-hash\" aria-hidden=\"true\"><\/span><\/h3>\n<p>B\u1ea1n c\u00f3 th\u1ec3 truy c\u1eadp\u00a0 tr\u00ean tr\u00ecnh duy\u1ec7t \u0111\u1ec3 ki\u1ec3m tra th\u00f4ng tin php: https:\/\/domain.ltd\/info.php<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/PHP-7-3-16-phpinfo-.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-4573\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/PHP-7-3-16-phpinfo-.png\" alt=\"\" width=\"957\" height=\"19405\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/PHP-7-3-16-phpinfo--768x15573.png 768w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/04\/PHP-7-3-16-phpinfo--101x2048.png 101w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trong b\u00e0i n\u00e0y, ch\u00fang t\u00f4i s\u1ebd gi\u1edbi thi\u1ec7u cho b\u1ea1n h\u00e0m phpinfo()\u00a0v\u00e0 gi\u1ea3i th\u00edch l\u00fd do t\u1ea1i sao n\u00f3 c\u00f3 th\u1ec3 h\u1eefu \u00edch cho b\u1ea1n.\u00a0Sau \u0111\u00f3, ch\u00fang t\u00f4i s\u1ebd ch\u1ec9 cho b\u1ea1n c\u00e1ch s\u1eed d\u1ee5ng n\u00f3 \u0111\u1ec3 t\u1ea1o trang phpinfo cho trang web WordPress c\u1ee7a b\u1ea1n. Gi\u1edbi thi\u1ec7u v\u1ec1\u00a0H\u00e0m\u00a0phpinfo () phpinfo()\u00a0l\u00e0 m\u1ed9t h\u00e0m PHP\u00a0\u00a0ho\u1eb7c m\u1ed9t [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5167],"class_list":["post-4569","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-cau-hoi-chung-ve-wordpress"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4569","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=4569"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/4569\/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=4569"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=4569"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=4569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}