Mar 11, 2014
17
1
3
cPanel Access Level
DataCenter Provider
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?
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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):

Code:
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.