Changing Memory limit not taking effect
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
-
I checked on the files php.ini located in usr/local/lib The values is correct, 256MB 0 -
Do you need to restart Apache after making these changes ? 0 -
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 0 -
I did apache restart, no success. The phpinfo() output is 256MB (Local and Master) as I configure it from WHM. 0 -
Look in your wp-config.php file if there is a line that reads 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.0 -
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. 0
Please sign in to leave a comment.
Comments
6 comments