WordPress

How to increase WordPress Memory Limit, Max Input Time, Max Input Vars, Upload Max Size, Max Execution Time, Post Max Size in just 2 min.

#1. By editing the .htaccess file

php_value memory_limit 512M
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value max_execution_time 5000
php_value max_input_time 5000
php_value max_input_vars 5000

#2. By editing wp-config.php

Add this to the top, before the line that says, “Happy Blogging”:

set_time_limit(300);
define (‘WP_MEMORY_LIMIT’, ‘256M’);

#3. By editing php.ini

Search for the below terms and increase them as per your requirements

post_max_filesize = 64M
upload_max_filesize = 64M
memory_limit = 32M
max_execution_time = 40
max_input_vars = 2000
max_input_time = 1000
Abhijit Mhasagar

Recent Posts

CSS Grid Template example easy to understand

https://codepen.io/abhijitmhasagar/pen/dyjRwxX # HTML <div class="container"> <div class="box">box 1</div> <div class="box">box 2</div> <div class="box">box 3</div> <div…

1 year ago

Redirect to URL on HTML Select option change

<select class="form-select lang-select" aria-label="Language Change" onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"> <option disabled>Language</option> <option value="https://google.com" selected>English</option>…

2 years ago

Default WordPress .htaccess

# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME}…

2 years ago

How to reduce image size online in 1 minute without losing the quality

Go to Photopea | Online Photo Editorclick on FILE > OPEN OR click on OPEN FROM…

2 years ago

How to center an element with CSS

#1 .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); } #2 .center{…

2 years ago

Security Headers .htaccess

put it in .htaccess Header always set Strict-Transport-Security: "max-age=31536000" env=HTTPS Header always set Content-Security-Policy "upgrade-insecure-requests"…

2 years ago