0

I'm running a WordPress plan on bluehost servers! It's 1 Core with 2GB of RAM.

PHP Memory Limit is set to 512MB and WordPress has:

define('WP_MEMORY_LIMIT', '256M')

Is this proportion OK?

I'm only running this WordPress website. Should I increase WordPress memory? Any thoughts on this?

3
  • It really depends what you are using the website for and the plugins you are using. For a regular blog that sounds plenty.
    – MrWhite
    Commented Oct 14, 2015 at 19:46
  • City Guide.. Woocommerce, backups plugin.. Actually im using a total of 38 Plugins.. Commented Oct 14, 2015 at 19:51
  • If this is the only site on the server then what's the reason for reducing the (default) PHP memory limit from 512MB to 256MB?
    – MrWhite
    Commented Oct 15, 2015 at 0:38

3 Answers 3

1

Rather than defining it in wp-config.php, a php.ini file can allow you to set not only the memory, but also max_execution_time, file upload size, and other settings that frequently cause issues with WordPress themes. Make sure you kill the PHP processes (some cPanel dashboards offer it) for it to go into effect. Or you can toggle the PHP version to do the same effect.

Alternatively, you can also usually modify the limits in the PHP settings inside of cPanel, if that's what you're using (and that is what BlueHost uses) and just change the limits of what I mentioned above there without manually setting them in a php.ini file.

You can verify your settings have gone into effect by creating a phpinfo.php file with <? phpinfo(); ?> and then call that file from your browser to verify the new limits are in effect, as that will show all the PHP values for your hosting environment / account.

0

Go to Woocommerce > system status and it will tell you if the memory limit is optimal.

0

Yes, you can. Depends memory limit on your hosting space. You can minimise and maximise memory limit using Php.ini file configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.