{"id":47709,"date":"2024-06-14T05:57:00","date_gmt":"2024-06-13T22:57:00","guid":{"rendered":"https:\/\/wiki.tino.org\/staging\/?p=47709"},"modified":"2026-10-26T10:27:29","modified_gmt":"2026-10-26T03:27:29","slug":"cach-tang-gioi-han-upload-import-phpmyadmin-directadmin","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/cach-tang-gioi-han-upload-import-phpmyadmin-directadmin\/","title":{"rendered":"C\u00e1ch t\u0103ng gi\u1edbi h\u1ea1n upload\/import phpMyAdmin tr\u00ean DirectAdmin"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Gi\u1edbi h\u1ea1n upload\/import c\u1ee7a phpMyAdmin l\u00e0 gi\u1edbi h\u1ea1n c\u1ee7a PHP tr\u00ean m\u00e1y ch\u1ee7, ch\u1ee7 y\u1ebfu l\u00e0 <code>upload_max_filesize<\/code> v\u00e0 <code>post_max_size<\/code>.<\/strong> Tr\u00ean hosting DirectAdmin, b\u1ea1n t\u0103ng hai gi\u00e1 tr\u1ecb n\u00e0y \u1edf <em>Select PHP version<\/em> => <em>Options<\/em>; tr\u00ean VPS c\u00f3 quy\u1ec1n root, b\u1ea1n s\u1eeda file c\u1ea5u h\u00ecnh PHP r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i d\u1ecbch v\u1ee5. File qu\u00e1 l\u1edbn th\u00ec nh\u1eadp b\u1eb1ng SSH thay v\u00ec qua tr\u00ecnh duy\u1ec7t.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">B\u00e0i thu\u1ed9c nh\u00f3m <a href=\"https:\/\/tino.vn\/blog\/truy-cap-va-lay-thong-tin-hosting-tai-tino\/\">qu\u1ea3n tr\u1ecb website tr\u00ean hosting<\/a> trong ch\u1ee7 \u0111\u1ec1 <a href=\"https:\/\/tino.vn\/blog\/hosting-la-gi\/\">hosting<\/a>. N\u1ebfu ch\u01b0a quen c\u00f4ng c\u1ee5, \u0111\u1ecdc tr\u01b0\u1edbc <a href=\"https:\/\/tino.vn\/blog\/phpmyadmin-la-gi\/\">phpMyAdmin l\u00e0 g\u00ec<\/a>; n\u1ebfu file c\u1ea7n t\u1ea3i l\u00e0 m\u00e3 ngu\u1ed3n ch\u1ee9 kh\u00f4ng ph\u1ea3i database, xem <a href=\"https:\/\/tino.vn\/blog\/cach-upload-source-code-php-len-hosting\/\">c\u00e1ch upload source code l\u00ean hosting<\/a> b\u1eb1ng FTP.<\/p>\n\n\n\n<h2 id=\"V\u00ec_sao_ph\u1ea3i_t\u0103ng_gi\u1edbi_h\u1ea1n_upload\/import_phpMyAdmin?\">V\u00ec sao ph\u1ea3i t\u0103ng gi\u1edbi h\u1ea1n upload\/import phpMyAdmin?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">phpMyAdmin l\u00e0 \u1ee9ng d\u1ee5ng PHP, n\u00ean file <code>.sql<\/code> b\u1ea1n ch\u1ecdn \u1edf trang Import \u0111i qua c\u01a1 ch\u1ebf t\u1ea3i file c\u1ee7a PHP. Theo <a href=\"https:\/\/docs.phpmyadmin.net\/en\/latest\/faq.html#i-cannot-upload-big-dump-files-memory-http-or-timeout-problems\" target=\"_blank\" rel=\"noopener nofollow\">FAQ 1.16 c\u1ee7a phpMyAdmin<\/a>, nh\u1eadp file l\u1edbn th\u1ea5t b\u1ea1i th\u01b0\u1eddng do b\u1ed1n thi\u1ebft l\u1eadp: <code>upload_max_filesize<\/code>, <code>post_max_size<\/code>, <code>memory_limit<\/code> v\u00e0 <code>max_execution_time<\/code>; <code>post_max_size<\/code> ph\u1ea3i l\u1edbn h\u01a1n <code>upload_max_filesize<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1400\" height=\"750\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-tang-gioi-han-upload-import-phpmyadmin-directadmin-gioi-han-nao.webp\" alt=\"B\u1ed1n thi\u1ebft l\u1eadp PHP ch\u1eb7n file SQL khi import: upload_max_filesize, post_max_size, memory_limit, max_execution_time; n\u01a1i s\u1eeda tr\u00ean hosting, tr\u00ean VPS v\u00e0 c\u00e1ch nh\u1eadp file r\u1ea5t l\u1edbn\" class=\"wp-image-132172\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-tang-gioi-han-upload-import-phpmyadmin-directadmin-gioi-han-nao.webp 1400w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-tang-gioi-han-upload-import-phpmyadmin-directadmin-gioi-han-nao-300x161.webp 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-tang-gioi-han-upload-import-phpmyadmin-directadmin-gioi-han-nao-1024x549.webp 1024w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2026\/10\/cach-tang-gioi-han-upload-import-phpmyadmin-directadmin-gioi-han-nao-768x411.webp 768w\" sizes=\"(max-width: 1400px) 100vw, 1400px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">B\u1ea1n c\u1ea7n n\u00e2ng gi\u1edbi h\u1ea1n khi:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Import database l\u1edbn:<\/strong> chuy\u1ec3n website sang hosting m\u1edbi, kh\u00f4i ph\u1ee5c b\u1ea3n sao l\u01b0u, file <code>.sql<\/code> v\u01b0\u1ee3t m\u1ee9c t\u1ed1i \u0111a \u0111ang cho ph\u00e9p.<\/li>\n\n\n<li><strong>Kh\u00f4ng mu\u1ed1n chia nh\u1ecf file:<\/strong> c\u1eaft m\u1ed9t dump th\u00e0nh nhi\u1ec1u ph\u1ea7n t\u1ed1n th\u1eddi gian v\u00e0 d\u1ec5 s\u00f3t b\u1ea3ng.<\/li>\n\n\n<li><strong>C\u00f4ng c\u1ee5 kh\u00e1c c\u0169ng c\u1ea7n:<\/strong> c\u00f9ng c\u00e1c thi\u1ebft l\u1eadp n\u00e0y quy\u1ebft \u0111\u1ecbnh dung l\u01b0\u1ee3ng file b\u1ea1n t\u1ea3i l\u00ean qua WordPress ho\u1eb7c \u1ee9ng d\u1ee5ng PHP kh\u00e1c.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"Ki\u1ec3m_tra_dung_l\u01b0\u1ee3ng_gi\u1edbi_h\u1ea1n_upload\/import_hi\u1ec7n_t\u1ea1i\">Ki\u1ec3m tra dung l\u01b0\u1ee3ng gi\u1edbi h\u1ea1n upload\/import hi\u1ec7n t\u1ea1i<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Gi\u1edbi h\u1ea1n hi\u1ec7n t\u1ea1i ghi ngay tr\u00ean trang Import c\u1ee7a phpMyAdmin, \u1edf d\u00f2ng <em>(Max: \u2026MiB)<\/em> c\u1ea1nh n\u00fat ch\u1ecdn t\u1ec7p; \u0111\u00f3 l\u00e0 m\u1ee9c nh\u1ecf h\u01a1n gi\u1eefa <code>upload_max_filesize<\/code> v\u00e0 <code>post_max_size<\/code>.<\/strong> H\u00e3y xem con s\u1ed1 n\u00e0y tr\u01b0\u1edbc khi s\u1eeda: n\u1ebfu file \u0111\u00e3 n\u00e9n nh\u1ecf h\u01a1n m\u1ee9c \u0111\u00f3, b\u1ea1n import lu\u00f4n m\u00e0 kh\u00f4ng c\u1ea7n \u0111\u1ed5i c\u1ea5u h\u00ecnh.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1:<\/strong> \u0110\u0103ng nh\u1eadp DirectAdmin, v\u00e0o <strong>MySQL Management<\/strong> trong <em>Account Manager<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2:<\/strong> B\u1ea5m <strong>Login to phpMyAdmin<\/strong>. N\u1ebfu phpMyAdmin h\u1ecfi t\u00e0i kho\u1ea3n, d\u00f9ng user v\u00e0 m\u1eadt kh\u1ea9u database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3:<\/strong> Ch\u1ecdn database \u1edf c\u1ed9t tr\u00e1i => tab <strong>Import<\/strong> (b\u1ea3n ti\u1ebfng Vi\u1ec7t l\u00e0 <em>Nh\u1eadp<\/em>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 4:<\/strong> Nh\u00ecn d\u00f2ng <em>(Max: \u2026MiB)<\/em> c\u1ea1nh n\u00fat ch\u1ecdn t\u1ec7p. \u1ea2nh d\u01b0\u1edbi l\u00e0 m\u1ed9t hosting DirectAdmin cho ph\u00e9p t\u1ed1i \u0111a 512 MiB.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/05\/upload-code-WordPress-len-hosting-DirectAdmin-20.png\" alt=\"Tab Nh\u1eadp c\u1ee7a phpMyAdmin tr\u00ean hosting DirectAdmin, d\u00f2ng Duy\u1ec7t m\u00e1y t\u00ednh c\u1ee7a b\u1ea1n ghi t\u1ed1i \u0111a 512MiB c\u1ea1nh n\u00fat Ch\u1ecdn t\u1ec7p\" class=\"wp-image-95316\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/05\/upload-code-WordPress-len-hosting-DirectAdmin-20.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/05\/upload-code-WordPress-len-hosting-DirectAdmin-20-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mu\u1ed1n import ngay, b\u1ea5m <strong>Choose File<\/strong> (Ch\u1ecdn t\u1ec7p), ch\u1ecdn file r\u1ed3i b\u1ea5m <strong>Go<\/strong> (Nh\u1eadp).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ch\u1ecdn m\u1ee9c m\u1edbi v\u1eeba \u0111\u1ee7 l\u1edbn h\u01a1n file c\u1ee7a b\u1ea1n, c\u1ed9ng th\u00eam m\u1ed9t kho\u1ea3ng d\u01b0. File \u0111\u00e3 n\u00e9n <code>.sql.gz<\/code> ho\u1eb7c <code>.sql.zip<\/code> nh\u1ecf h\u01a1n nhi\u1ec1u so v\u1edbi b\u1ea3n g\u1ed1c v\u00e0 phpMyAdmin \u0111\u1ecdc \u0111\u01b0\u1ee3c tr\u1ef1c ti\u1ebfp, n\u00ean h\u00e3y th\u1eed n\u00e9n tr\u01b0\u1edbc khi t\u0103ng gi\u1edbi h\u1ea1n.<\/p>\n\n\n\n<h2 id=\"C\u00e1ch_1:_T\u0103ng_gi\u1edbi_h\u1ea1n_tr\u00ean_hosting_DirectAdmin_b\u1eb1ng_PHP_Selector\">C\u00e1ch 1: T\u0103ng gi\u1edbi h\u1ea1n tr\u00ean hosting DirectAdmin b\u1eb1ng PHP Selector<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tr\u00ean hosting DirectAdmin, b\u1ea1n t\u0103ng gi\u1edbi h\u1ea1n \u1edf <em>Select PHP version<\/em> => tab <em>Options<\/em>, ch\u1ecdn gi\u00e1 tr\u1ecb l\u1edbn h\u01a1n cho <code>upload_max_filesize<\/code> v\u00e0 <code>post_max_size<\/code>.<\/strong> T\u00e0i kho\u1ea3n hosting kh\u00f4ng c\u00f3 quy\u1ec1n s\u1eeda file <code>php.ini<\/code> c\u1ee7a m\u00e1y ch\u1ee7, nh\u01b0ng c\u00e1c hosting ch\u1ea1y CloudLinux c\u00f3 c\u00f4ng c\u1ee5 PHP Selector n\u00e0y \u0111\u1ec3 \u0111\u1ed5i thi\u1ebft l\u1eadp PHP theo t\u00e0i kho\u1ea3n.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 1:<\/strong> \u1ede trang ch\u00ednh DirectAdmin, m\u1ee5c <em>Extra Features<\/em>, ch\u1ecdn <strong>Select PHP version<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 2:<\/strong> M\u1edf tab <strong>Options<\/strong> (c\u1ea1nh tab <em>Extensions<\/em> trong \u1ea3nh).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/05\/upload-code-WordPress-len-hosting-DirectAdmin-26.png\" alt=\"PHP Selector trong DirectAdmin v\u1edbi hai tab Extensions v\u00e0 Options, \u00f4 Current PHP version v\u00e0 danh s\u00e1ch PHP Extensions\" class=\"wp-image-95321\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/05\/upload-code-WordPress-len-hosting-DirectAdmin-26.png 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/05\/upload-code-WordPress-len-hosting-DirectAdmin-26-300x161.png 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 3:<\/strong> T\u00ecm <code>upload_max_filesize<\/code> v\u00e0 <code>post_max_size<\/code>, ch\u1ecdn gi\u00e1 tr\u1ecb l\u1edbn h\u01a1n trong danh s\u00e1ch. \u0110\u1eb7t <code>post_max_size<\/code> b\u1eb1ng ho\u1eb7c cao h\u01a1n <code>upload_max_filesize<\/code>. N\u1ebfu file l\u1edbn v\u1eabn b\u1ecb ng\u1eaft gi\u1eefa ch\u1eebng, t\u0103ng th\u00eam <code>memory_limit<\/code> v\u00e0 <code>max_execution_time<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>B\u01b0\u1edbc 4:<\/strong> L\u01b0u thay \u0111\u1ed5i (m\u1ed9t s\u1ed1 giao di\u1ec7n t\u1ef1 l\u01b0u khi ch\u1ecdn gi\u00e1 tr\u1ecb), \u0111\u1ee3i kho\u1ea3ng m\u1ed9t ph\u00fat r\u1ed3i t\u1ea3i l\u1ea1i trang Import c\u1ee7a phpMyAdmin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Danh s\u00e1ch gi\u00e1 tr\u1ecb l\u00e0 m\u1ee9c tr\u1ea7n nh\u00e0 cung c\u1ea5p m\u1edf cho g\u00f3i. Kh\u00f4ng th\u1ea5y tab Options, ho\u1eb7c gi\u00e1 tr\u1ecb t\u1ed1i \u0111a v\u1eabn nh\u1ecf h\u01a1n file, th\u00ec nh\u1edd b\u1ed9 ph\u1eadn k\u1ef9 thu\u1eadt nh\u1eadp gi\u00fap ho\u1eb7c d\u00f9ng c\u00e1ch 3.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>\u1ede m\u1ed9t s\u1ed1 m\u00e1y ch\u1ee7, tab Options kh\u00f4ng hi\u1ec7n khi \u0111ang ch\u1ecdn b\u1ea3n PHP m\u1eb7c \u0111\u1ecbnh c\u1ee7a h\u1ec7 th\u1ed1ng (native); ch\u1ecdn m\u1ed9t b\u1ea3n PHP c\u1ee5 th\u1ec3 nh\u01b0 8.3 th\u00ec tab m\u1edbi xu\u1ea5t hi\u1ec7n.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Hosting d\u00f9ng <a href=\"https:\/\/tino.vn\/blog\/cpanel-la-gi\/\">cPanel<\/a> (nh\u01b0 c\u00e1c g\u00f3i hosting c\u1ee7a Tino) l\u00e0m t\u01b0\u01a1ng t\u1ef1 \u1edf <strong>Software<\/strong> => <strong>Select PHP Version<\/strong> => <strong>Options<\/strong>. M\u1ee9c t\u1ed1i \u0111a ch\u1ecdn \u0111\u01b0\u1ee3c tu\u1ef3 g\u00f3i hosting.<\/p>\n\n\n\n<h2 id=\"C\u00e1ch_2:_T\u0103ng_gi\u1edbi_h\u1ea1n_tr\u00ean_VPS_ho\u1eb7c_m\u00e1y_ch\u1ee7_DirectAdmin_c\u00f3_quy\u1ec1n_root\">C\u00e1ch 2: T\u0103ng gi\u1edbi h\u1ea1n tr\u00ean VPS ho\u1eb7c m\u00e1y ch\u1ee7 DirectAdmin c\u00f3 quy\u1ec1n root<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Tr\u00ean m\u00e1y ch\u1ee7 t\u1ef1 qu\u1ea3n, b\u1ea1n s\u1eeda c\u1ea5u h\u00ecnh PHP do CustomBuild c\u1ee7a DirectAdmin c\u00e0i. Theo <a href=\"https:\/\/docs.directadmin.com\/webservices\/php\/php-options.html\" target=\"_blank\" rel=\"noopener nofollow\">t\u00e0i li\u1ec7u DirectAdmin<\/a>, file ch\u00ednh th\u01b0\u1eddng l\u00e0 <code>\/usr\/local\/phpXX\/lib\/php.ini<\/code> (XX l\u00e0 phi\u00ean b\u1ea3n, v\u00ed d\u1ee5 83), c\u00f2n th\u01b0 m\u1ee5c <code>php.conf.d<\/code> b\u00ean c\u1ea1nh ch\u1ee9a c\u00e1c file <code>.ini<\/code> ph\u1ee5 (CustomBuild t\u1ea1o s\u1eb5n <code>10-directadmin.ini<\/code> v\u00e0 <code>50-webapps.ini<\/code>) v\u00e0 cho ph\u00e9p b\u1ea1n th\u00eam file ri\u00eang.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">K\u1ebft n\u1ed1i SSH v\u00e0o m\u00e1y ch\u1ee7 tr\u01b0\u1edbc (<a href=\"https:\/\/tino.vn\/blog\/truy-cap-ssh-vao-share-hosting-voi-putty\/\">c\u00e1ch truy c\u1eadp SSH b\u1eb1ng PuTTY<\/a>).<\/p>\n\n\n\n<h3 id=\"T\u00ecm_file_php.ini_\u0111ang_d\u00f9ng\">T\u00ecm file php.ini \u0111ang d\u00f9ng<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Ch\u1ea1y l\u1ec7nh sau \u0111\u1ec3 xem file c\u1ea5u h\u00ecnh m\u00e0 PHP \u0111ang n\u1ea1p:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/local\/bin\/php --ini | grep 'Loaded Configuration File'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">L\u1ec7nh tr\u00ean cho bi\u1ebft c\u1ea5u h\u00ecnh c\u1ee7a b\u1ea3n PHP m\u1eb7c \u0111\u1ecbnh. N\u1ebfu m\u00e1y ch\u1ee7 c\u00e0i nhi\u1ec1u b\u1ea3n PHP, ki\u1ec3m tra phpMyAdmin \u0111ang ch\u1ea1y b\u1ea3n n\u00e0o trong <code>\/usr\/local\/directadmin\/custombuild\/options.conf<\/code> (d\u00f2ng <code>php1_release<\/code>, <code>php2_release<\/code>).<\/p>\n\n\n\n<h3 id=\"Ch\u1ec9nh_s\u1eeda_k\u00edch_th\u01b0\u1edbc_upload\/import\">Ch\u1ec9nh s\u1eeda k\u00edch th\u01b0\u1edbc upload\/import<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">T\u1ea1o file thi\u1ebft l\u1eadp ri\u00eang cho b\u1ea3n PHP \u0111\u00f3, v\u00ed d\u1ee5 PHP 8.3. C\u00e1c file trong th\u01b0 m\u1ee5c \u0111\u01b0\u1ee3c n\u1ea1p theo th\u1ee9 t\u1ef1 t\u00ean, n\u00ean \u0111\u1eb7t s\u1ed1 \u0111\u1ea7u l\u1edbn (99) \u0111\u1ec3 thi\u1ebft l\u1eadp c\u1ee7a b\u1ea1n n\u1ea1p sau c\u00f9ng:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/usr\/local\/php83\/lib\/php.conf.d\/99-custom.ini<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">D\u00e1n n\u1ed9i dung sau, \u0111\u1ed5i gi\u00e1 tr\u1ecb theo nhu c\u1ea7u, r\u1ed3i b\u1ea5m <code>Ctrl+O<\/code>, <code>Enter<\/code> \u0111\u1ec3 l\u01b0u v\u00e0 <code>Ctrl+X<\/code> \u0111\u1ec3 tho\u00e1t:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>upload_max_filesize = 256M\npost_max_size = 264M\nmemory_limit = 512M\nmax_execution_time = 300<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">N\u1ebfu quen <code>vi<\/code>: b\u1ea5m <code>i<\/code> \u0111\u1ec3 s\u1eeda, xong b\u1ea5m <code>Esc<\/code> r\u1ed3i g\u00f5 <code>:wq<\/code> v\u00e0 <code>Enter<\/code> \u0111\u1ec3 l\u01b0u. Ch\u1ec9 b\u1ea5m <code>Esc<\/code> th\u00ec file ch\u01b0a \u0111\u01b0\u1ee3c l\u01b0u.<\/p>\n\n\n\n<h3 id=\"Kh\u1edfi_\u0111\u1ed9ng_l\u1ea1i_webserver\">Kh\u1edfi \u0111\u1ed9ng l\u1ea1i webserver<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PHP ch\u1ec9 \u0111\u1ecdc l\u1ea1i c\u1ea5u h\u00ecnh khi d\u1ecbch v\u1ee5 \u0111\u01b0\u1ee3c kh\u1edfi \u0111\u1ed9ng l\u1ea1i. Xem m\u00e1y ch\u1ee7 \u0111ang d\u00f9ng web server v\u00e0 ch\u1ebf \u0111\u1ed9 PHP n\u00e0o:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -E '^(webserver|php1_mode)=' \/usr\/local\/directadmin\/custombuild\/options.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sau \u0111\u00f3 kh\u1edfi \u0111\u1ed9ng l\u1ea1i \u0111\u00fang d\u1ecbch v\u1ee5:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>PHP-FPM<\/strong> (<code>php1_mode=php-fpm<\/code>): <code>systemctl restart php-fpm83<\/code>, thay 83 b\u1eb1ng phi\u00ean b\u1ea3n c\u1ee7a b\u1ea1n. T\u00ean d\u1ecbch v\u1ee5 c\u00f3 th\u1ec3 kh\u00e1c gi\u1eefa c\u00e1c m\u00e1y; xem b\u1eb1ng <code>systemctl list-units | grep php<\/code>.<\/li>\n\n\n<li><strong>Apache<\/strong> (bao g\u1ed3m nginx_apache): <code>systemctl restart httpd<\/code>.<\/li>\n\n\n<li><strong>Nginx<\/strong>: <code>systemctl restart nginx<\/code>.<\/li>\n\n\n<li><strong>LiteSpeed, OpenLiteSpeed<\/strong> ho\u1eb7c khi kh\u00f4ng ch\u1eafc t\u00ean d\u1ecbch v\u1ee5: \u0111\u0103ng nh\u1eadp DirectAdmin b\u1eb1ng t\u00e0i kho\u1ea3n admin, v\u00e0o <em>Service Monitor<\/em> v\u00e0 b\u1ea5m Restart \u1edf d\u1ecbch v\u1ee5 web.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"C\u00e1ch_3:_File_qu\u00e1_l\u1edbn,_nh\u1eadp_database_b\u1eb1ng_SSH\">C\u00e1ch 3: File qu\u00e1 l\u1edbn, nh\u1eadp database b\u1eb1ng SSH<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Nh\u1eadp qua SSH kh\u00f4ng \u0111i qua tr\u00ecnh duy\u1ec7t, n\u00ean kh\u00f4ng b\u1ecb <code>upload_max_filesize<\/code> hay th\u1eddi gian ch\u1edd c\u1ee7a PHP ch\u1eb7n. \u0110\u00e2y l\u00e0 c\u00e1ch \u1ed5n \u0111\u1ecbnh cho file v\u00e0i tr\u0103m MB tr\u1edf l\u00ean. T\u1ea3i file <code>.sql<\/code> l\u00ean hosting b\u1eb1ng FTP tr\u01b0\u1edbc, r\u1ed3i ch\u1ea1y:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u user_database -p ten_database &lt; \/home\/user\/backup.sql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">File n\u00e9n <code>.gz<\/code> th\u00ec gi\u1ea3i n\u00e9n tr\u1ef1c ti\u1ebfp v\u00e0o l\u1ec7nh nh\u1eadp:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gunzip &lt; \/home\/user\/backup.sql.gz | mysql -u user_database -p ten_database<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">L\u1ec7nh h\u1ecfi m\u1eadt kh\u1ea9u database r\u1ed3i ch\u1ea1y, kh\u00f4ng hi\u1ec7n ti\u1ebfn \u0111\u1ed9. G\u00f3i hosting c\u1ea7n b\u1eadt SSH (<a href=\"https:\/\/tino.vn\/blog\/ssh-tren-share-cloud-hosting-su-dung-terminal\/\">d\u00f9ng SSH tr\u00ean hosting qua Terminal<\/a>). Kh\u00f4ng c\u00f3 SSH, <a href=\"https:\/\/docs.phpmyadmin.net\/en\/latest\/faq.html#i-cannot-upload-big-dump-files-memory-http-or-timeout-problems\" target=\"_blank\" rel=\"noopener nofollow\">phpMyAdmin<\/a> g\u1ee3i \u00fd c\u1ea5u h\u00ecnh <code>$cfg['UploadDir']<\/code> (c\u1ea7n quy\u1ec1n qu\u1ea3n tr\u1ecb m\u00e1y ch\u1ee7) ho\u1eb7c c\u1eaft nh\u1ecf file b\u1eb1ng c\u00f4ng c\u1ee5 nh\u01b0 BigDump.<\/p>\n\n\n\n<h2 id=\"Ki\u1ec3m_tra_l\u1ea1i_k\u00edch_th\u01b0\u1edbc_upload\/import\">Ki\u1ec3m tra l\u1ea1i k\u00edch th\u01b0\u1edbc upload\/import<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>T\u1ea3i l\u1ea1i trang Import c\u1ee7a phpMyAdmin v\u00e0 xem d\u00f2ng <em>(Max: \u2026MiB)<\/em>: con s\u1ed1 t\u0103ng l\u00ean \u0111\u00fang m\u1ee9c b\u1ea1n \u0111\u1eb7t ngh\u0129a l\u00e0 thi\u1ebft l\u1eadp \u0111\u00e3 c\u00f3 hi\u1ec7u l\u1ef1c.<\/strong> N\u1ebfu con s\u1ed1 ch\u01b0a \u0111\u1ed5i sau v\u00e0i ph\u00fat, ki\u1ec3m tra l\u1ea7n l\u01b0\u1ee3t:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\u00e1ch 1: ki\u1ec3m tra \u0111\u00e3 l\u01b0u \u1edf \u0111\u00fang b\u1ea3n PHP \u0111ang d\u00f9ng cho website v\u00e0 phpMyAdmin ch\u01b0a.<\/li>\n\n\n<li>C\u00e1ch 2: ki\u1ec3m tra file <code>99-custom.ini<\/code> \u0111\u1eb7t \u0111\u00fang th\u01b0 m\u1ee5c c\u1ee7a b\u1ea3n PHP \u0111\u00f3 v\u00e0 d\u1ecbch v\u1ee5 \u0111\u00e3 kh\u1edfi \u0111\u1ed9ng l\u1ea1i.<\/li>\n\n\n<li>Gi\u00e1 tr\u1ecb Max l\u00e0 gi\u00e1 tr\u1ecb nh\u1ecf h\u01a1n gi\u1eefa <code>upload_max_filesize<\/code> v\u00e0 <code>post_max_size<\/code>, n\u00ean ph\u1ea3i t\u0103ng c\u1ea3 hai.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\">Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_n\u00ean_t\u0103ng_gi\u1edbi_h\u1ea1n_upload\/import_phpMyAdmin_kh\u00f4ng?\">C\u00f3 n\u00ean t\u0103ng gi\u1edbi h\u1ea1n upload\/import phpMyAdmin kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">T\u0103ng v\u1eeba \u0111\u1ee7 cho file c\u1ea7n nh\u1eadp th\u00ec kh\u00f4ng \u1ea3nh h\u01b0\u1edfng t\u1ed1c \u0111\u1ed9 website. \u0110\u1eb7t m\u1ee9c qu\u00e1 cao tr\u00ean m\u00e1y ch\u1ee7 d\u00f9ng chung l\u00e0m c\u00e1c y\u00eau c\u1ea7u t\u1ea3i l\u1edbn chi\u1ebfm nhi\u1ec1u b\u1ed9 nh\u1edb h\u01a1n; nh\u1eadp xong c\u00f3 th\u1ec3 tr\u1ea3 l\u1ea1i m\u1ee9c c\u0169.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"B\u1ea3ng_\u0111i\u1ec1u_khi\u1ec3n_DirectAdmin_c\u00f3_mi\u1ec5n_ph\u00ed_kh\u00f4ng?\">B\u1ea3ng \u0111i\u1ec1u khi\u1ec3n DirectAdmin c\u00f3 mi\u1ec5n ph\u00ed kh\u00f4ng?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Kh\u00f4ng. Theo <a href=\"https:\/\/www.directadmin.com\/pricing.php\" target=\"_blank\" rel=\"noopener nofollow\">trang gi\u00e1 DirectAdmin<\/a> ng\u00e0y 25\/10\/2026, gi\u1ea5y ph\u00e9p c\u00f3 c\u00e1c g\u00f3i Personal Plus 5 USD\/th\u00e1ng (2 t\u00e0i kho\u1ea3n), Lite 15 USD\/th\u00e1ng (10 t\u00e0i kho\u1ea3n) v\u00e0 Standard 29 USD\/th\u00e1ng (kh\u00f4ng gi\u1edbi h\u1ea1n t\u00e0i kho\u1ea3n). Khi thu\u00ea hosting, ph\u00ed panel \u0111\u00e3 n\u1eb1m trong g\u00f3i; khi t\u1ef1 c\u00e0i tr\u00ean VPS, b\u1ea1n mua gi\u1ea5y ph\u00e9p ri\u00eang, v\u00ed d\u1ee5 t\u1ea1i <a href=\"https:\/\/tino.vn\/directadmin-license\">DirectAdmin license c\u1ee7a Tino<\/a>.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Qu\u00ean_m\u1eadt_kh\u1ea9u_\u0111\u0103ng_nh\u1eadp_phpMyAdmin_th\u00ec_l\u00e0m_sao?\">Qu\u00ean m\u1eadt kh\u1ea9u \u0111\u0103ng nh\u1eadp phpMyAdmin th\u00ec l\u00e0m sao?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">phpMyAdmin d\u00f9ng t\u00e0i kho\u1ea3n database. Trong DirectAdmin, v\u00e0o MySQL Management, m\u1edf database c\u1ea7n d\u00f9ng, ch\u1ecdn user v\u00e0 \u0111\u1ed5i m\u1eadt kh\u1ea9u, r\u1ed3i \u0111\u0103ng nh\u1eadp l\u1ea1i. Nh\u1edb c\u1eadp nh\u1eadt m\u1eadt kh\u1ea9u m\u1edbi v\u00e0o file c\u1ea5u h\u00ecnh website, v\u00ed d\u1ee5 wp-config.php.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"L\u00e0m_sao_t\u1ea1o_m\u1ed9t_b\u1ea3ng_MySQL_trong_phpMyAdmin?\">L\u00e0m sao t\u1ea1o m\u1ed9t b\u1ea3ng MySQL trong phpMyAdmin?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p class=\"wp-block-paragraph\">Ch\u1ecdn database \u1edf c\u1ed9t tr\u00e1i, t\u00ecm khung Create table (T\u1ea1o b\u1ea3ng), nh\u1eadp t\u00ean b\u1ea3ng v\u00e0 s\u1ed1 c\u1ed9t, b\u1ea5m Go (Th\u1ef1c hi\u1ec7n), r\u1ed3i khai b\u00e1o t\u00ean, ki\u1ec3u d\u1eef li\u1ec7u c\u1ee7a t\u1eebng c\u1ed9t v\u00e0 b\u1ea5m Save (L\u01b0u).<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 n\u00ean t\u0103ng gi\u1edbi h\u1ea1n upload\/import phpMyAdmin kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>T\u0103ng v\u1eeba \u0111\u1ee7 cho file c\u1ea7n nh\u1eadp th\u00ec kh\u00f4ng \u1ea3nh h\u01b0\u1edfng t\u1ed1c \u0111\u1ed9 website. \u0110\u1eb7t m\u1ee9c qu\u00e1 cao tr\u00ean m\u00e1y ch\u1ee7 d\u00f9ng chung l\u00e0m c\u00e1c y\u00eau c\u1ea7u t\u1ea3i l\u1edbn chi\u1ebfm nhi\u1ec1u b\u1ed9 nh\u1edb h\u01a1n; nh\u1eadp xong c\u00f3 th\u1ec3 tr\u1ea3 l\u1ea1i m\u1ee9c c\u0169.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"B\u1ea3ng \u0111i\u1ec1u khi\u1ec3n DirectAdmin c\u00f3 mi\u1ec5n ph\u00ed kh\u00f4ng?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Kh\u00f4ng. Theo <a>trang gi\u00e1 DirectAdmin<\/a> ng\u00e0y 25\/10\/2026, gi\u1ea5y ph\u00e9p c\u00f3 c\u00e1c g\u00f3i Personal Plus 5 USD\/th\u00e1ng (2 t\u00e0i kho\u1ea3n), Lite 15 USD\/th\u00e1ng (10 t\u00e0i kho\u1ea3n) v\u00e0 Standard 29 USD\/th\u00e1ng (kh\u00f4ng gi\u1edbi h\u1ea1n t\u00e0i kho\u1ea3n). Khi thu\u00ea hosting, ph\u00ed panel \u0111\u00e3 n\u1eb1m trong g\u00f3i; khi t\u1ef1 c\u00e0i tr\u00ean VPS, b\u1ea1n mua gi\u1ea5y ph\u00e9p ri\u00eang, v\u00ed d\u1ee5 t\u1ea1i <a>DirectAdmin license c\u1ee7a Tino<\/a>.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Qu\u00ean m\u1eadt kh\u1ea9u \u0111\u0103ng nh\u1eadp phpMyAdmin th\u00ec l\u00e0m sao?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>phpMyAdmin d\u00f9ng t\u00e0i kho\u1ea3n database. Trong DirectAdmin, v\u00e0o MySQL Management, m\u1edf database c\u1ea7n d\u00f9ng, ch\u1ecdn user v\u00e0 \u0111\u1ed5i m\u1eadt kh\u1ea9u, r\u1ed3i \u0111\u0103ng nh\u1eadp l\u1ea1i. Nh\u1edb c\u1eadp nh\u1eadt m\u1eadt kh\u1ea9u m\u1edbi v\u00e0o file c\u1ea5u h\u00ecnh website, v\u00ed d\u1ee5 wp-config.php.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"L\u00e0m sao t\u1ea1o m\u1ed9t b\u1ea3ng MySQL trong phpMyAdmin?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>Ch\u1ecdn database \u1edf c\u1ed9t tr\u00e1i, t\u00ecm khung Create table (T\u1ea1o b\u1ea3ng), nh\u1eadp t\u00ean b\u1ea3ng v\u00e0 s\u1ed1 c\u1ed9t, b\u1ea5m Go (Th\u1ef1c hi\u1ec7n), r\u1ed3i khai b\u00e1o t\u00ean, ki\u1ec3u d\u1eef li\u1ec7u c\u1ee7a t\u1eebng c\u1ed9t v\u00e0 b\u1ea5m Save (L\u01b0u).<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">C\u1ea7n hosting \u1ed5n \u0111\u1ecbnh cho website? <a href=\"https:\/\/tino.vn\/hosting-gia-re\">Hosting c\u1ee7a Tino<\/a> d\u00f9ng \u1ed5 NVMe, LiteSpeed v\u00e0 cPanel \u0111\u1ec3 b\u1ea1n t\u1ef1 qu\u1ea3n tr\u1ecb. Xem c\u1ea5u h\u00ecnh v\u00e0 gi\u00e1 tr\u00ean trang s\u1ea3n ph\u1ea9m.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Gi\u1edbi h\u1ea1n upload\/import c\u1ee7a phpMyAdmin l\u00e0 gi\u1edbi h\u1ea1n c\u1ee7a PHP tr\u00ean m\u00e1y ch\u1ee7, ch\u1ee7 y\u1ebfu l\u00e0 upload_max_filesize v\u00e0 post_max_size. Tr\u00ean hosting DirectAdmin, b\u1ea1n t\u0103ng hai gi\u00e1 tr\u1ecb n\u00e0y \u1edf Select PHP version => Options; tr\u00ean VPS c\u00f3 quy\u1ec1n root, b\u1ea1n s\u1eeda file c\u1ea5u h\u00ecnh PHP r\u1ed3i kh\u1edfi \u0111\u1ed9ng l\u1ea1i d\u1ecbch v\u1ee5. File qu\u00e1 l\u1edbn th\u00ec [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":132119,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7726],"tags":[6394],"class_list":["post-47709","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hosting","tag-kien-thuc-hosting"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/47709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"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=47709"}],"version-history":[{"count":3,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/47709\/revisions"}],"predecessor-version":[{"id":132268,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/47709\/revisions\/132268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/132119"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=47709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=47709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=47709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}