Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordfence-login-security domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /srv/www/wordpress/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the health-check domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /srv/www/wordpress/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ko-fi-button domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /srv/www/wordpress/wp-includes/functions.php on line 6121
How to Increase Maximum Upload File Size in Wordpress - ASTRO
Close up of computer coding

How to Increase Maximum Upload File Size in WordPress




Assume you are using LAMP stack to deploy wordpress, you can create or edit php.ini to increase the maximum upload file size.

You could find php.ini file by typing find / -iname php.ini, and it should locate at /etc/php/x.x/apache2/php.ini. Then you can edit it using vim or any editor you like.

Find the following lines and change the file size as you would like:

INI
upload_max_filesize = 64M
post_max_size = 64M

Or, if you know what you are doing, create a new php.ini file then upload to replace it.

After that, you should restart the apache service with sudo service apache2 restart. Now you should see the size limit has increased to 64MB in your media upload page.



Leave a Reply

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