How to increase memory allocated to php

Posted in: Newspaper
Post count: 2

Hi

Any help is appreciated
I have tried to increase the memory limit of my website to 256MB by putting this code “define( ‘WP_MEMORY_LIMIT’ , ‘256M’) on wp-config.php, but it didn’t work at all.
I have two questions please:
1-Is Hostgator allows this to work ??
2-What’s your recommendation to solve my problem?

Thanks

Post count: 2

How to increase memory allocated to php

  • This reply was modified 7 years by Ahmedlam.
Post count: 20688

Hi,

You could check their documentation, for example in this guide they seem to mention that in order to increase the memory you need to add a line of code in the php.ini file
https://support.hostgator.com/articles/specialized-help/technical/php-memory-limit-error
https://support.hostgator.com/articles/specialized-help/technical/php-and-php-settings

If you need help with it, try and contact them and ask them to do it for you. Setting the memory to 256M should be enough for most websites.

Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.