Virtualmin modify php.ini variables - modify-php-ini.pl

Hello,

CentOS Linux release 7.6.1810 (Core) / wbm-virtual-server-6.06.gpl-2.noarch

When you want to disable a php variable using command line:

virtualmin modify-php-ini --domain somedomain.tld --ini-name open_basedir --no-ini-value

virtualmin modify httpd.conf like this: php_value open_basedir and you have an error if you try to reload apache service.

Instead, it should be: php_value open_basedir none

Everything it's ok if you modify /usr/libexec/webmin/virtual-server/modify-php-ini.pl like this:

  elsif ($a eq "--no-ini-value") {
  push(@ini_values, "none");
  }

Regards, Catalin.

Status: 
Active

Comments

Actually, shouldn't Virtualmin just be removing that php_value open_basedir line entirely in this case?