|As suPhp is getting old, and doesn't have the performance of newer php types, many Admin's would want to combine the faster methods, while still keeping the ability to have per-item settings to allow custom changes where needed.|
If you're using mod_php (cli), the bulk of the php settings can be set in the Custom Httpd Config with the standard php_admin_flag/php_admin_value settings right in the VirtualHost.
However, you might want even more control, say with a variable that isn't supported in that way, or with a path, rather than a host.
For this case, CustomBuild 2.0 uses a folder for additional php.ini files, loaded if they exist in the folder.
The install path can vary depending on the php mode; in this example, we'll use
/usr/local/lib/php.conf.dbut for other php modes, if the php version is , the path might be:
/usr/local/lib/php55/php.conf.dYou can determine where you php.ini and php.conf.d folder is by using the Where is my php.ini? guide.
Once you know the path, let's use in our example, you can then create your custom ini file. The load of the ini files is done alphabetically, so we number the files to control in which order they're loaded in. Usually the order doesn't matter too much, unless you're altering settings for a module that should be loaded first.
In the above examples, it's implying the use of one file for each item you want to separate. This is not required. You can use one additional file to make load times faster, but also to hide the list of domains from the phpinfo() output, as all "additional" loaded php.ini files are displayed, so if you were to use:
/usr/local/lib/php.conf.d/30-custom-domains.iniyou could add many [HOST=xx] entries into the same file, one after the other.
Based on: http://php.net/manual/en/ini.sections.php
|Adding custom httpd.conf code to the VirtualHosts of a domain|
|Where is my php.ini?|
|per-User php.ini settings in php-fpm|
© 2018 JBMC Software, Suite 173 3-11 Bellerose Drive, St Albert, AB T8N 1P7 Canada. Mon-Fri 9AM-5PM MST