modify-php-ini

Changes PHP variables for some or all domains This command can be used to change the value of a PHP configuration variable (set in the php.ini file and Apache configuration) for one or many virtual servers at once. The servers to update can be selected with the --domain or --user flags, or you can choose to modify them all with the --all-domains option. If your system supports multiple PHP versions, you can limit the changes to the config for a specific version with the --php-version flag followed by a number, like 7.4 or 8.2.

Changes PHP variables for some or all domains#

This command can be used to change the value of a PHP configuration variable (set in the php.ini file and Apache configuration) for one or many virtual servers at once. The servers to update can be selected with the --domain or --user flags, or you can choose to modify them all with the --all-domains option.

If your system supports multiple PHP versions, you can limit the changes to the config for a specific version with the --php-version flag followed by a number, like 7.4 or 8.2.

The variables to change are set with the --ini-name flag, which can be given multiple times to change more than one variable. The new values are set either with the --ini-value flag (followed by a number or string), or the --no-ini-value flag to completely remove a setting.

Command line help#

virtualmin modify-php-ini --domain name | --user name | --all-domains
 [--php-version number]
 <--ini-name name>+ <--ini-value value>+

Source: https://www.virtualmin.com/docs/development/api-programs/modify-php-ini/

  • virtualmin, apache, php, domain, user, update, command line, modify
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Pre and Post Domain Modification Scripts

Virtualmin allows the use of custom scripts (Shell, Perl, Python and etc.) to automate tasks...

OS Support

Virtualmin runs on top of Webmin. Webmin works on almost every UNIX-like OS, so with some manual...

Professional Features

Virtualmin GPL is already an extremely powerful and flexible virtual hosting control panel, so...

How to Configure Secondary DNS

This guide provides administrators with a quick overview of setting up automatic DNS secondary...

How to Configure Cloudflare DNS

For users looking to integrate Cloudflare with Virtualmin Pro, the process is straightforward and...