Per-Domain PHP.ini settings

  • Hi community,


    I am looking for a way to set custom PHP.ini settings per domain. I know i-MSCP allows me to set a few choice settings via the GUI, but I need to set other things – like extending open_basedir and include_path, or setting default_charset for a legacy application. I also know that I can set these settings server-wide by adding them to i-MSCP's template files, but they really only should apply to some domains.


    So far, I've just set these settings by putting them into the respective files (like /etc/php5/fpm/php.ini and /etc/php5/fpm/pool.d/[domain].conf), and restoring them whenever i-MSCP overwrote them, but clearly that's not a long-term solution.


    Is there a way I can set these custom per-domain PHP.ini settings permanently?