Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR

WordPress Memory Limit Increase

Are you getting the "Allowed memory size exhausted" error? Your website performance %100 Guaranteed WordPress memory limit increase guide to increase and fix critical bugs. The most up-to-date and safe methods in 2026 standards.

What is WordPress Memory Limit Error and Why Does It Occur?

Error Message: "Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes)"

WordPress is a PHP-based content management system and each PHP script requires your server's RAM to run. It requires (Random Access Memory) resource. Your server or hosting provider ensures that a single transaction limits the amount of memory it can consume. When this limit is exceeded, your site will display a white screen or Returns Fatal Error.

Why Is More Memory Needed in 2026 ?

  • Complex Themes: Modern themes, visual renderers (Elementor, Divi, etc.) more consumes resources.
  • E-Commerce (WooCommerce): Product variants, cart transactions and payment gateways requires high memory.
  • PHP 8.3+ Requirements: Although newer PHP versions are more performant, modern Plugins may require larger memory space.
  • Background Processes: Backup plugins, cron jobs and synchronization processes It causes instantaneous memory increases.
01

Method 1: Editing wp-config.php File (Most Efficient Method)

It is safest and recommended to increase the memory limit through WordPress' own configuration file. is the method. For this process, you need the File Manager in your FTP or Hosting Panel (cPanel/Plesk). There is.

Step by Step Application:

  1. In the root directory of your site (usually public_html) bulunan wp-config.php Find the file.
  2. Open the file for editing.
  3. /* That's all, stop editing! Happy publishing. */ The following code just before the line add.
wp-config.php
define( 'WP_MEMORY_LIMIT', '256M' );
// Administration Panel for limiti also artırmak isterseniz:
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
Information: A value of '256M' is sufficient for most sites. If you are using WooCommerce, it is recommended to set '512M'.
02

Method 2: Increasing the Limit with .htaccess File

if wp-config.php If this method does not work, the server configuration file .htaccess You can change PHP values via .

How To?

  1. in the root directory .htaccess Locate the file (The file may be hidden, click "Show hidden files" Activate the option).
  2. at the bottom of the file or # END WordPress Add the following code before the line:
.htaccess
php_value memory_limit 256M
03

Method 3: Creating/Editing php.ini File

In some shared hosting environments php.ini Global settings are managed through the file. root If there is this file in the directory, edit it, otherwise php.ini Create a new file named .

php.ini
memory_limit = 256M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
04

Method 4: cPanel & Plesk MultiPHP Manager

You can also increase the memory limit through your hosting control panel without writing code. This method cPanel It is the easiest way for those who use or Plesk.

Steps for cPanel:

  1. Log in to cPanel.
  2. From the "Software" section "MultiPHP INI Editor" Click on the tool.
  3. Select the domain name you want to edit.
  4. memory_limit Find the line and enter the value (for example 256M).
  5. Press the "Apply" button.

Still Having Problems?

Is your site slow or giving errors even though you increased the memory limit? The problem is with your hosting package may be at its physical limits. Our high performance packages with NVMe SSD and Litespeed technology move on.

WordPress Hosting Packages Starting from 100₺

Hosting Packages Memory Comparison (2026)

The minimum amount of memory you need depending on the size of your project:

Website Type Minimum Recommended Ideal (Performance)
Personal Blog / Portfolio 64M 128M
Corporate Website 128M 256M
E-Commerce (WooCommerce) 256M 512M+
News / High Traffic 512M 1024M (1GB)

Related Services

Need help?

Our expert technical team 7/24 is with you.

Support Create Request

Frequently Asked Questions

I increased WordPress Memory Limit but I still get errors?
The physical RAM limit (LVE limits) of your hosting package may have been exceeded. In shared hosting usually Total RAM between 1GB - 2GB is given. In this case Virtual Server (VDS) Switching to packages It may be necessary.
Can I make Memory Limit unlimited?
No, -1 Although its value is theoretically unlimited, it depends on the physical capacity of the server. You are limited. Additionally, an excessively high limit (e.g. 2048M) may cause a poorly coded plugin to consume all server resources. It may cause data consumption and the site to crash.
What is the difference between WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT?
WP_MEMORY_LIMIT While it applies to the front end of your site (the part that visitors see), WP_MAX_MEMORY_LIMIT It is only valid for wp-admin (admin panel). Heavy on admin panel It is recommended that this limit be higher as transactions are made.
Does PHP version affect memory usage?
Absolutely. PHP 8.1, 8.2 and 8.3 versions have much better memory management than older versions (7.4 etc). has. Upgrading your site's PHP version can reduce memory usage and improve performance.
Top