Skip WHM Setup PHP memory_limit check?
Question:
When creating a new server / installing cPanel, is there a way to skip cPanel from doing it's checking on PHP's memory_limit?
We are setting the values via a push of the configs from Saltstack and we have run that package again because that check overnight our changes already places on the server.
Or is there a way to pass a variable to a file to skip this step?
-
Hello, This only runs at install time, so you could use the following WHM API 1 function post installation to configure the memory_limit to your own preferred value: WHM API 1 Functions - php_ini_set_directives - Software Development Kit - cPanel Documentation Here's an example of the commands you could use (for each PHP version that's installed): whmapi1 php_ini_set_directives directive-1=memory_limit%3A128M version=ea-php56 whmapi1 php_ini_set_directives directive-1=memory_limit%3A128M version=ea-php70 whmapi1 php_ini_set_directives directive-1=memory_limit%3A128M version=ea-php71
Thank you.0 -
Thanks for the info. 0
Please sign in to leave a comment.
Comments
2 comments