Issue
How to change PHP Selector options?
Environment
- PHP Selector
- CloudLinux OS
Solution
1. Edit the Range line in the /etc/cl.selector/php.conf:
Directive = error_reporting
Range = ~E_ALL,E_ALL & ~E_NOTICE,E_ALL
Type = list
Comment = The error reporting level.
2. It should look like the following:
Directive = error_reporting
Range = ~E_ALL,E_ALL & ~E_NOTICE,E_ALL,E_ALL & ~E_NOTICE ~E_Deprecated
Type = list
Comment = The error reporting level.
3. Then run:
cagefsctl --force-update && cagefsctl -M
4. The option should appear in PHP Selector.
Please note that the Default option was deprecated in the latest versions of PHP Selector.
Default values, that are shown in PHP Selector web interface, are taken from '/opt/alt/phpXX/usr/bin/php -i' runtime values, if directive is not there, it will use the output of phpinfo() function. So, if you wish to change default value of any option for "alternative" php version, please modify /opt/alt/phpXX/etc/php.ini files (where XX = 55, 54, 53, etc according to php version).
Comments
0 comments
Please sign in to leave a comment.