How to increase file upload size – memory limit – execution time in WordPress?

Table of Contents

Increase Upload Size Limit In a Multisite Install
  1. In your WordPress dashboard click into Network Admin and into Settings. Multisite network settings.
  2. Scroll down and double-check the “Max upload file size” settings. You can increase this to something higher than the default of 1500 KB (1.5 MB). Then click “Save Changes.”

1. php.ini codes
===============
upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 256M
file_uploads = On
upload_max_filesize = 128M
max_execution_time = 300
max_allowed_packet_size = 524288000

2. .htaccess codes
===================
php_value max_input_vars 5000
php_value max_execution_time 300
php_value post_max_size 128M
php_value upload_max_filesize 128M
php_value memory_limit 256M

Advertisements

3. wp-config.php code
=====================
define( ‘WP_MEMORY_LIMIT’, ‘128M’ );

 

Others Blog Post:

0 0 votes
Article Rating
Subscribe
Notify of
guest
5 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Liner
Liner
3 years ago

Wow It’s working

My Orders

My Downloads

My Booked Services

My Subscriptions