Home > Article > Backend Development > Why Is My PHPMyAdmin Import File Size Still Limited to 2MB Even After Modifying php.ini?
Troubleshooting PHPMyAdmin Import File Size Limit
Despite modifying php.ini parameters like upload_max_filesize and post_max_size, users may encounter a persistent 2MB limit in PHPMyAdmin. Here's an in-depth solution that thoroughly addresses the problem.
Step-by-Step Resolution
Locate php.ini File: Open the terminal and use the following command to locate the php.ini file:
sudo find / -name php.ini
Edit php.ini: Use a text editor like gedit to edit the file:
sudo gedit /path/to/php.ini
Adjust Config Settings: Search for the following entries and make the necessary adjustments:
The order of settings should be:
memory_limit > post_max_size > upload_max_filesize
Save and Restart Apache: After saving the changes, restart Apache to apply the new settings:
sudo systemctl restart apache2
Additional Tips
The above is the detailed content of Why Is My PHPMyAdmin Import File Size Still Limited to 2MB Even After Modifying php.ini?. For more information, please follow other related articles on the PHP Chinese website!