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 Cent OS, you can use the pre installed text editor whic is VIM to edit the configuration file.
You need to add sudo to be able to write what you've added/changed later.
sudo vi /etc/php.ini
Look for this line of code and change 2 to whatever size you like. To edit, press I in your keyboard.
To search, type / or ? and then your keywords and press ENTER
upload_max_filesize = 2M
post_max_size = 8M
You can change this to
upload_max_filesize = 100M
post_max_size = 300M
To save:
Press ESP key
Type :w to save
Type :q! to exit
Restart apache server using the code below:
service httpd restart
That should work! Good luck!
Watch out for more proramming and systems admins related articles.
No comments:
Post a Comment