Skip to content

How to set PHP INI_SYSTEM options not available in PHP Selector GUI

The Hawk Host PHP selector allows modification of PHP INI_SYSTEM options; however, we offer only a limited set in the GUI. For the majority of websites, if other options need to be changed, they are INI_USER, INI_PERDIR, or INI_ALL, meaning you can use our MultiPHP Manager INI editor or insert a php file.ini file into the folder of execution.

If, however, there is an INI_SYSTEM option you wish to modify that is not available, you can complete this by doing the following:

To set the APC SHM size for PHP 5.2, you would add the following file /etc/cl.php.d/alt-php52/custom.ini:

apc.shm_size=64M

This would set the APC SHM size to 64MB for PHP 5.2 on the account.

To set the OPcache memory limit for PHP 8.2, you would add the following file /etc/cl.php.d/alt-php82/custom.ini:

opcache.memory_consumption=256M

This would set the OPcache memory limit to 256MB for PHP 8.2 on the account.

You can set PHP INI_SYSTEM options not available in the PHP Selector GUI by creating a custom.ini file in the appropriate directory for your PHP version.

PHP VersionDirectory
PHP 5.2/etc/cl.php.d/alt-php52/custom.ini
PHP 5.3/etc/cl.php.d/alt-php53/custom.ini
PHP 5.4/etc/cl.php.d/alt-php54/custom.ini
PHP 5.5/etc/cl.php.d/alt-php55/custom.ini
PHP 5.6/etc/cl.php.d/alt-php56/custom.ini
PHP 7.0/etc/cl.php.d/alt-php70/custom.ini
PHP 7.1/etc/cl.php.d/alt-php71/custom.ini
PHP 7.2/etc/cl.php.d/alt-php72/custom.ini
PHP 7.3/etc/cl.php.d/alt-php73/custom.ini
PHP 7.4/etc/cl.php.d/alt-php74/custom.ini
PHP 8.0/etc/cl.php.d/alt-php80/custom.ini
PHP 8.1/etc/cl.php.d/alt-php81/custom.ini
PHP 8.2/etc/cl.php.d/alt-php82/custom.ini
PHP 8.3/etc/cl.php.d/alt-php83/custom.ini
PHP 8.4/etc/cl.php.d/alt-php84/custom.ini
PHP 8.5/etc/cl.php.d/alt-php85/custom.ini