{"id":2188,"date":"2019-09-23T20:45:24","date_gmt":"2019-09-23T13:45:24","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=2188"},"modified":"2019-09-23T20:45:24","modified_gmt":"2019-09-23T13:45:24","slug":"tep-tin-php-ini-nam-o-dau","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/tep-tin-php-ini-nam-o-dau\/","title":{"rendered":"T\u1ec7p tin php.ini n\u1eb1m \u1edf \u0111\u00e2u ?"},"content":{"rendered":"<p>Tr\u01b0\u1eddng h\u1ee3p b\u1ea1n ch\u01b0a bi\u1ebft t\u1ec7p tin PHP.ini \u0111\u1ec3 c\u00f3 th\u1ec3 thay \u0111\u1ed5i th\u00ec c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh sau \u0111\u1ec3 t\u00ecm t\u1ec7p tin.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/usr\/local\/bin\/php --ini | grep 'Loaded Configuration File'<\/pre>\n<p>Sau \u0111\u00f3 k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 s\u1ebd c\u00f3 d\u1ea1ng :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">[admin@sv ~]$ \/usr\/local\/bin\/php --ini | grep 'Loaded Configuration File'\r\nPHP Warning:  Module 'memcached' already loaded in Unknown on line 0\r\nLoaded Configuration File:         \/usr\/local\/php72\/lib\/php.ini<\/pre>\n<p>V\u1edbi th\u00f4ng tin tr\u00ean th\u00ec php.ini s\u1ebd \u1edf v\u1ecb tr\u00ed <strong>\/usr\/local\/php72\/lib\/php.ini<\/strong><\/p>\n<p>N\u1ebfu b\u1ea1n \u0111ang ho\u1ea1t \u0111\u1ed9ng v\u1edbi phi\u00ean b\u1ea3n m\u1eb7c \u0111\u1ecbnh CLI php, th\u00ec v\u1ecb tr\u00ed php.ini t\u1ea1i :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/usr\/local\/lib\/php.ini<\/pre>\n<p>N\u1ebfu b\u1ea1n \u0111ang ho\u1ea1t \u0111\u1ed9ng v\u1edbi phi\u00ean b\u1ea3n php5 trong ch\u1ebf \u0111\u1ed9 CGI mod (suPhp), th\u00ec v\u1ecb tr\u00ed php.ini t\u1ea1i :<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">\/usr\/local\/etc\/php5\/cgi\/php.ini<\/pre>\n<p>&nbsp;<\/p>\n<p>N\u1ebfu b\u1ea1n s\u1eed d\u1ee5ng l\u1ec7nh <strong>VI<\/strong> \u0111\u1ec3 thao t\u00e1c th\u00ec b\u1ea1n c\u00f3 th\u1ec3 t\u00ecm nhanh m\u1ed9t t\u1eeb n\u00e0o \u0111\u00f3 nh\u01b0 <strong>memory_limit<\/strong> th\u00ec c\u00f3 th\u1ec3 so\u1ea1n v\u1edbi c\u00fa ph\u00e1p : <strong>\/memory_limit<\/strong> v\u00e0 nh\u1ea5n Enter s\u1ebd t\u1edbi n\u01a1i b\u1ea1n c\u1ea7n t\u00ecm.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tr\u01b0\u1eddng h\u1ee3p b\u1ea1n ch\u01b0a bi\u1ebft t\u1ec7p tin PHP.ini \u0111\u1ec3 c\u00f3 th\u1ec3 thay \u0111\u1ed5i th\u00ec c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh sau \u0111\u1ec3 t\u00ecm t\u1ec7p tin. \/usr\/local\/bin\/php &#8211;ini | grep &#8216;Loaded Configuration File&#8217; Sau \u0111\u00f3 k\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 s\u1ebd c\u00f3 d\u1ea1ng : [admin@sv ~]$ \/usr\/local\/bin\/php &#8211;ini | grep &#8216;Loaded Configuration File&#8217; PHP Warning: Module &#8216;memcached&#8217; already [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[23],"class_list":["post-2188","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-control-panel-direct-admin"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2188","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=2188"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2188\/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=2188"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=2188"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=2188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}