How to add Custom Directives in PHP Version Selector in CloudLinux

[Requires LVE Manager 0.6+]

PHP Selector allows customer to edit php.ini settings. Admin has a full control over which settings can be modified.
To allow settings to be modifiable, it has to be whitelisted in:

Here are some of the examples of allowed directives:

Directive = safe_mode
Default   = Off
Type      = bool
Remark    = <5.4.0
Comment   = Enables PHP safe mode. This mode puts a number of restrictions on scripts (say, access to file system) mainly for security reasons.

Directive = safe_mode_include_dir
Type      = value
Remark    = <5.4.0
Comment   = If PHP is in the safe mode and a script tries to access some files, files from this directory will bypass security (UID/GID) checks. Th
e directory must also be in include_path. For example: /dir/inc

php.ini setting
Default value
bool, value (any text), list
list of values for list Type
explanation of the setting to display in UI

Admin can modify the settings using piniset command.
Users can use web interface to modify php.ini settings

Popular posts from this blog

How to Delete WHM Mail Queue through SSH sent from a particular sender

how to change witribe wlan password? how to secure your witribe router

How to Delete all logs in a cpanel server - SSH