In cwp there are two PHP configuration files i.e. "php.ini" and ".user.ini" for configuring user side PHP values/options.
For ADMIN/root you can always adjust PHP options in respected PHP modules i.e. PHP edit option are added in the switcher, selector, and php-fpm selector.
How to Edit root side php configuration file :
Login to CWP admin and navigate to cwpAdmin >> Php settings find the module name >> PHP.ini Configuration here you can edit php options, this module is only for php switcher/main php
To edit php.ini for php-fpm selector navigate to cwpAdmin >> Php settings find the module name >> PHP-FPM Selector and in this module you will be showed multi php version and for each version there is an "[Edit php.ini]" option you can do necessary changes there. Don't forget to reload/restart the fpm service after php options are modified.
To edit php.ini for php-cgi selector navigate to cwpAdmin >> Php settings find the module name >> PHP Selector 2 and in this module you will be showed multi php version and for each version there is an "[Edit php.ini]" option you can do necessary changes there.
How to create User side php configuration file :
We have two options either the user needs to create the files manually (via file manager, FTP or sFTP) or edit the PHP options from the user panel option.
Login to user panel find Edit php.ini option :
Now choose the desired domain name for which you want to create php.ini or .user.ini for in the doc root path, also you can disable some option by clicking on "tick mark" to toggle disable and enable options:
Once you edited the config click on the update changes button to save it.
Also you can directly write your own PHP config in advanced php.ini editor :
when creating manual PHP configuration via FTP, sFTP or file manager always create two .ini files with the same contents i.e. php.ini and .user.ini so when you switch fpm and CGI PHP respectively, so you don't need to come back to create them again.