Changing Memory limit not taking effect

psytanium

Well-Known Member
Jun 6, 2014
269
12
68
Lebanon
cPanel Access Level
Root Administrator
Hello, I'm running some WordPress websites on my VPS Centos server. I already changed the Memory limit to 256MB from WHM > PHP Configuration Editor

But all my WordPress website ask me to increase the limit from 40 MB to 96MB.

Any ideas why changing the Memory limit is not effective ?

Thanks
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
458
113
UK
cPanel Access Level
Root Administrator
Do you need to restart Apache after making these changes ?
 

twhiting9275

Well-Known Member
Sep 26, 2002
560
28
178
cPanel Access Level
Root Administrator
Twitter
What does your phpinfo page say?
If that's not showing 256M globally, then you likely haven't restarted apache
If it is showing 256M globally, but not locally, then you have a php.ini directive locally conflicting with that
 
  • Like
Reactions: rpvw

rpvw

Well-Known Member
Jul 18, 2013
1,101
458
113
UK
cPanel Access Level
Root Administrator
Look in your wp-config.php file
if there is a line that reads
Code:
define('WP_MEMORY_LIMIT', '64M').
change it to your 256M (or whatever you want) - if it isn't there - add it :)

I don't think this is really a cPanel issue, and a web search for "wordpress showing wrong php memory" would probably have helped you.
 
  • Like
Reactions: acenetgeorge

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
Hello,

Yes, as mentioned, it's likely the result of a configuration value defined by WordPress, or a local php.ini file within the affected account.

Thank you.