php:ini

Get or set PHP config directive for the currently active PHP version

Syntax

box php:ini [-l|--list-files] [--] [<key>] [<value>]
To retrieve a value from the currently installed PHP version, you can use the `box php:ini ` command. For example, to get the current `mysql.default_socket` value: box php:ini mysql.default_socket To change this value into something else, append the new value: box php:ini mysql.default_socket /path/to/new/socket The script puts these directives into an additional config file that overrides the default values. To remove the directive again, pass in an empty value: box php:ini mysql.default_socket "" If you want to get the list of the scanned .ini files, run the command without arguments: box php:ini

Arguments

key
Name of the directive to lookup or update
value
New value

Options

--list-files , -l