How do I install PHP-FPM on a Webmin-only installation?

SYSTEM INFORMATION
OS type and version Ubuntu 26.xx
Webmin version 2.65x
Apache most recent

PHP-FMP is not available on my newly installed system. All I have is the CLI version. The files are on the server. I just need to know how to tell Webmin to use them. Attaching a SS to show current status. Also attaching a cropped image found in the manual. I don’t really need all those but would like to know how to do it



If I am guessing correctly once it is found / configured I can easily modify the Apache files to use it LoadModule php_module.

Any and all help appreciated

Resolved

The fix was simple once I knew what I needed. Using terminal you need to install:
libapache2-mod-php
php-mysql

Then you have a working web-server that can serve PHP pages.

I’m don’t know if this was an error or my part or the install script. I will add I did not install AMP before I installed Webmin. The much older versions want to install that from the installer and wanted only a fresh OS install to work with.

I also want to thank the developers. This system manager has progressed a lot since I last used it.

That is absolutely not a fix. That’s a disaster.

To be clear, no one should ever use mod_php for anything ever. It is a security risk, especially on a shared hosting system.

You need to remove that package and figure out what’s actually wrong with PHP-FPM, as that’s the recommended way to run PHP apps (not just in Virtualmin, it’s the recommended way to run PHP by upstream). Generally, all necessary packages are installed when you use the Virtualmin installer.

How did you install Virtualmin?

mod_php , I think @Joe has just been triggered :smiley:

Just trying to save someone the pain of a mistake.

Understood. I was just making a light hearted statement for levity as it is something you are definitely not a fan of.

The more people that do not use mod_php the better.

And you did. After doing some reading and realizing how unsafe it was, it was removed at 5:05 this morning. Thank you very much.

I do still need help getting the fpm version config files to show on the PHP Configuration page. It is up and running but not showing there.

I assume you want Virtualmin installed. It will correctly configure everything you need, including PHP-FPM.

Ubuntu 26.04 is technically supported, though it is currently available only as a Grade B system. It will move to Grade A with our next release.

You can install it using:

sudo sh -c "$(curl -fsSL https://download.virtualmin.com/virtualmin-install)" -- --bundle LAMP --os-grade B --branch unstable

However, if you want to install PHP-FPM, you can follow our guide, which also works for Webmin-only installations.