There will be cases where in we need to upload a much larger file size in the phpmyadmin. By default, it can only cater a maximum of 2MB which is ok if you don't need to upload files larger than that. PHP configuration file is located on the /etc/php.ini. In Ubuntu, you can use the pre installed text editor which is NANO to edit the configuration file.
You need to add sudo to be able to write what you've added/changed later.
sudo nano /etc/php/7.0/apache/php.ini
Look for this line of code and change 2 to whatever size you like. To search for the word to easily locate it, press CTRL + w and then your keywords and press ENTER. Use keywords such as upload_max or post_max. Below is the default values for the upload_max_filesize and post_max_size.
upload_max_filesize = 2M
post_max_size = 8M
You can change this depending on the file you are going to upload.
upload_max_filesize = 100M
post_max_size = 300M
To save:
CTRL + O
and to exit
CTRL + X
Restart apache server using the code below:
systemctl restart apache2
That should work! Good luck!
Watch out for more programming and systems admins related articles.
No comments:
Post a Comment