phpMyAdmin Unable to Upload Large Files

Issue: CentOS server running cPanel / WHM, when attempting to import a larger database, on screen messages indicate maximum file site is 50MB or 55MB and editing the following Global PHP directives do not seem to help:

upload_max_filesize = 50M
post_max_size = 50M

Note: Editing the global php.ini at /usr/local/lib/php.ini does not increase values in the internal PHP for cPanel for phpMyAdmin

Solution: Edit the php.ini file that is used by phpMyAdmin:

nano /usr/local/cpanel/3rdparty/etc/php.ini

Find post_max_size and upload_max_filesize; edit values as required


Log back into phpMyAdmin, and restoration of larger databases will be possible.

Leave a comment