Does not see mod_php in php settings. Ubuntu 22.04

During the new installation, mod_php disappeared in the php settings. Although I have installed libapache2-mod-php 8.1 and libapache2-mod-php
image

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Webmin version 2.013
Virtualmin version 7.5
Related packages libapache2-mod-php 8.1, libapache2-mod-php, php8.1*

@Alex385987G,

“mod_php” is NOT installed anymore in favor of PHP-FPM, FCGId and CGI Wrapper.

And what is better to use so that it works from the rights of an individual user?

@Alex385987G,

Any othe available options work as the “domain user” which is why “mod_php” was removed since it runs as “apache” or “nobody”…

PHP-FPM is built into the PHP project, so it’s generally the best one to use, while FCGId would be the next best… CGI Wrapper is really a last resort IMHO.

2 Likes

In the entire lifetime of Virtualmin you should have never been using mod_php. We’ve always discouraged its use in favor of other execution modes (FPM today, seuxec+FCGId in the past).

For the past several years, mod_php has been optional, but not installed by default, while we discouraged its use (and the PHP developers discouraged its use, too!). Now, if you’re using mod_php we can’t/won’t help you. It is dangerous and inefficient. There is not reason to use mod_php.

Don’t use mod_php. You don’t need it. It does nothing good for you or your users.

1 Like

Yes, I tried PHP-FPM Sites do not work logs do not show anything significant.
Here is an example

@Alex385987G,

Your screenshot above shows errors

Undefined variable $charset_connection

Aside from that, what are you having problems with “specifically”?

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