What else could be controlling my Server’s PHP Memory Limit?
-
I have a WP installation hosted with cPanel. In cPanel I am setting the php memory_limit to 3G. Checking the Tools > Site Health > Info > Server > PHP Memory Limit setting it reads 3G. Then I go back to cPanel php.ini configuration and I set the memory limit to 128M. Refreshing the WP appropriate page it now reads 256M. I have checked the .htaccess file and the same directives as set in the php.ini file are present there. I checked the wp-config.php file next, and there were no relevant constants set there at all.
I then returned to the WP page, and this time I checked the WordPress Constants drop down, and there I noticed the presence of the WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT options. They were reading 80M and 256M accordingly. That hinted me perhaps I should define both in wp-config, which I did, and I set both to 128M. Refreshing the page of WP’s I can see that under the WordPress Constants drop-down section both WP_MEMORY_LIMIT and WP_MAX_MEMORY_LIMIT are set to 128M, but under Server the PHP Memory Limit remains to 256M still.
That is hinting me that perhaps the wp-config settings have nothing to do with the PHP Memory Limit after all. Is that assumption correct? Had it anything to do with PHP Memory Limit, I should be seeing a PHP Memory Limit of 128M after having changed all three settings to 128M. Where else should I be looking into on the server’s end? Lastly, if what is applying the memory limit to 256M is overriding the php.ini’s setting, shouldn’t that be the case when the php.ini setting is set at 3G also?
What is it that I have been missing? Please advise.
- The topic ‘What else could be controlling my Server’s PHP Memory Limit?’ is closed to new replies.