Question: How do I increase WordPress memory limit on GHFS Hosting? Print

  • GHFS Hosting, best hosting provider, GHFS cloud hosting, shared hosting guide, hosting knowledge base, GHFS web hosting, managed hosting services, VPS hosting setup, domain and hosting tutorials, SSD web hosting, how to register a domain, DNS configuration guide, email hosting setup, how to transfer a domain, hosting control panel tutorial, SSL installation guide, DNS records explained, A record guide, MX record setup, CNAME configuration, SSL certificate troubleshooting, WordPress installation GHFS, WordPress migration guide, optimize WordPress performance, fix internal server error, FTP upload guide, enable SSH access, secure VPS server, MySQL database tutorial, PHP configuration guide, Linux server commands, website security tutorial, malware removal guide, secure hosting best practices, DDoS protection GHFS, firewall configuration VPS, cloud server configuration, disable root login SSH, how to manage Linux VPS, VPS hosting tutorial, install Docker on VPS, Apache configuration guide, Nginx setup GHFS, Node.js on VPS, Redis installation, Python hosting tutorial, MySQL optimization, hosting troubleshooting guide, secure website setup, SSL troubleshooting, hosting performance optimization, Plesk tutorial, email deliverability guide, cPanel tutorial, server hardening tutorial, SMTP configuration guide
  • 0

Answer : 

Some WordPress themes and plugins require more memory than the default PHP limit. If your site shows errors like “Allowed memory size exhausted”, you may need to increase your WordPress memory limit. This article explains how to do it safely on GHFS Hosting using Plesk.


1. What Is the WordPress Memory Limit?

WordPress has two memory limits:

  1. PHP Memory Limit – Set in the server/PHP settings

  2. WP Memory Limit – Set inside WordPress via wp-config.php

Both must be high enough for your site to run smoothly.


2. Step 1: Increase PHP Memory Limit in Plesk

The server-level memory limit must be equal to or higher than the WordPress limit.

Steps:

  1. Log in to your Plesk control panel

  2. Go to Websites & Domains

  3. Click PHP Settings for your domain

  4. Find the option memory_limit

  5. Increase it (examples):

    • 128M

    • 256M

    • 512M (only if needed)

  6. Save changes

This increases the maximum memory PHP can use.


3. Step 2: Increase WordPress Memory Limit in wp-config.php

After increasing PHP memory, update WordPress' own memory setting.

Steps:

  1. Open Plesk → File Manager

  2. Edit the file wp-config.php

  3. Add or update this line:

 
 
define('WP_MEMORY_LIMIT', '256M');

You can choose a different value (must be within your PHP limit).

  1. Save the file


4. Step 3: Check Admin Memory Limit (Optional)

For WordPress admin tasks, you can increase the backend limit:

 
 
define('WP_MAX_MEMORY_LIMIT', '512M');

Use only if you run heavy admin operations like page builders or imports.


5. Recommended Memory Values

  • Small sites: 128M

  • Medium sites: 256M

  • WooCommerce or page builders: 256M – 512M

  • Large or complex sites: 512M+ (consult support first)

Memory should not be set higher than needed.


6. Step 4: Restart PHP (If Required)

Some PHP settings may require a restart.

In Plesk:

  1. Go to PHP Settings

  2. Click Apply

  3. Or use Restart PHP if available


7. How to Verify Memory Limit Is Updated

You can check the new limit using:

Option 1: WordPress Site Health

  • WordPress Dashboard

  • Tools → Site Health → Info → Server

Option 2: phpinfo()

Create a phpinfo.php file with this content:

 
 
<?php phpinfo(); ?>

Upload it, visit /phpinfo.php, check the value for memory_limit.

(Delete the file afterward for security.)


8. When to Contact GHFS Hosting Support

Contact support if:

  • Changes to memory_limit don’t take effect

  • You receive continuous memory errors

  • Your hosting plan restricts memory usage

  • You are unsure how much memory your site needs

GHFS Hosting support can adjust PHP settings or advise the ideal configuration.

 


Was this answer helpful?

« Back