Hướng dẫn tăng giới hạn upload import phpMyAdmin | VN-Zoom | Cộng đồng Chia Sẻ Kiến Thức Công Nghệ và Phần Mềm Máy Tính

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We need money to operate the site, and almost all of it comes from our online advertising.

If possible, please support us by clicking on the advertisements.

Please add vn-z.vn to your ad blocking whitelist or disable your adblocking software.

×

Hướng dẫn tăng giới hạn upload import phpMyAdmin

VNZ-ROAD

NEXTVNZ
Hướng dẫn tăng giới hạn upload import phpMyAdmin



Thông thường, phpMyAdmin giới hạn dung lượng file tải lên để import và database là 8MB. Nếu bạn có file sql lớn hơn dung lượng này, việc import sẽ thất bại.
Để tăng dung lượng upload, bạn thực hiện các bước sau:
- kết nối ssh vào VPS
- kiểm tra file php.ini đang được sử dụng

php -i | grep php.ini
Configuration File (php.ini)
Path => /usr/local/php55/libLoaded
Configuration File => /usr/local/php55/lib/php.ini

- dùng trình soạn thảo văn bản để sửa file php.ini này, ở ví dụ này dùng Vim

nano /usr/local/php55/lib/php.ini


- tìm dòng upload_max_filesize và post_max_size, thay đổi giá trị mặc định thành con số bạn muốn

upload_max_filesize = 64M
post_max_size = 64M

- Bấm tổ hợp phím Ctrl + O để lưu lại


- khởi động lại httpd

/etc/init.d/httpd restart
 


Top