How to increase the Maximum Upload File Size in WordPress?

There are several ways to increase the maximum upload file size in WordPress that have been introduced. Here we just consider one way that I am applying in practice. That is, modify the php.ini configuration file.
When your users upload a file in the Dashboard (Media -> Add New), there will be a notice about the maximum upload file size like this:

Maximum upload file size is 2M by default. You can increase this value to 20M as shown in the illustration by modifying the configuration lines of /etc/php.ini as follows:

upload_max_filesize = 20M
max_file_uploads = 200
post_max_size = 80M

Finally, do not forget to restart your web server, as the root user:

systemctl restart httpd

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.