PHP FPM Configuration

OS type and version Ubuntu Linux 20.04.5
Webmin version 2.013
Virtualmin version 7.5

Only direct editing is allowed for mod_php, cgi and cli in Webmin > Tools > PHP Configuration page,
please add support for PHP FPM ini files in next releases.

Is see this

maybe you have something misconfigured
as a side note don’t use mod_php in production …it has some really odd effects


If you installed mod_php, you shouldn’t have. Get rid of it.

1 Like

mod_php breaks all other execution modes. You should not have installed it.

I’m pretty sure we do allow editing configs for PHP-FPM, as well…looks like it’s in Services->PHP-FPM Configuration. I don’t know why it’s in a different place (though it does allow more config options than the other execution modes, as each domain gets its own PHP with PHP-FPM, so maybe that’s why).

1 Like

Anyway i mentioned global configuration.

No, you didn’t.

This is the Webmin / Tools / PHP Configuration page:

You will note there is only one option on mine because only one version of PHP is installed. The Global page is reached by clicking the gear and list all options, not options available on what is actually installed. There’s a big difference between the two pages.

If you have mod_php listed on this page, you should uninstall it.

1 Like

I mean Global PHP FPM configuration. Nevermind.

What I directed you to is not global PHP-FPM configuration. It is for the currently selected virtual server. Note under the title it’ll say something like /etc/php-fpm.d/161703721891639.conf. Each domain has its own FPM configuration.

That was not always so, but it should be now, at least with recent systems and recently created virtual servers.

1 Like

What the OP is saying here is
using webmin->tools->php configuration he can not see all php ini files
I have a staging server running wmin/vmin gpl (this is where I test everything before release) and this server does list all php.ini files (even the cli ones)
my production server is running wmin/vmin pro which does not show all php.ini filess


not that it bothers me in production it just works (nearly but that’s another story) but as a php coder access to the global ini files is useful and luckily on my staging server it works

I am a php developer and develop using apache in fpm mode, this works most of the time
my development cycle is dev machine → real world testing server → end user
I have had, on occasions the following :
dev machine → code working
real world testing → code working
end user → code fails
the error was the end users system was using mod_php as the execution mode for php, which his hosting supplier could/would not change. In the end I installed mod_php on both the dev server & the real world testing server and wrote around the issue. since then I have a domain setup to work with mod_php on the real world testing server to test out my code works in this execution mode.The real world testing server is managed by vmin and has been setup like this for quite some time with no detriment to vmin or other domains on the server. Net result is if you know what your doing there is no need to remove mod_php but remember don’t use it where it’s not required

Fun Fact: mod_php breaks just about everything it touches in Virtualmin. It is, to my knowledge, the number one cause of basic issues and has been for a long time.

That is why @Joe has constantly preached to never install it and get rid of it if you have. It simply breaks far more than it fixes.

hasn’t broken mine – you just have to respect it

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.