Hello,
I’ve installed a small Virtualmin server on Ubuntu 20, everything is good, no issues.
Just a small question:
I’ve additionally installed more PHP versions to the server, as instructed in the Docs.
Everything is good and working, but my question is:
After the manual installation of additional PHP versions, now I see in Servers list on the dashboard - some new servers listed for each PHP Version installed - there is a PHP FPM Server.
Since I’m using FCgi mode, why are there PHP FPM servers? Is this normal / expected behaviour of the Virtualmin?
Can I safely remove these PHP FPM servers or they’re not actual services and I should just ignore their presence?
I’ve stopped all PHP-FPM servers from the Server Status - there is no change- the website is working fine. I guess I’ll just leave it that way, stopped? Or I can remove those somehow?
if you dont use fpm you can safely remove php7.x-fpm and/or php8.x-fpm packages from webmin/OS.
eg. : sudo apt purge php7.3-fpm php7.4-fpm php8.0-fpm php8.1-fpm
be sure to run another virtualmin recheck after removal…
I was wondering how these PHP-FPM servers got there in the first place.
This is my first Virtualmin server on Ubuntu, previously always used it on CentOS - and when installing additional PHP versions - such PHP-FPM never appeared.
I’ll probably just keep those, in order not to break anything. It seems, that stopping or starting these FPM servers has no immediate effect on the memory load on the server (although not sure what would be implications on a busy website, under load).
ramones - great band indeed, needless to say - one of my favs
Turns out, a bunch of services DEPEND on these, and if I continue with the removal - it will also remove even apache , and even the virtualmin lampstack.
That means, the php-fpm is required, as you can see from the log - it does NOT look safe to remove it:
server:~$ sudo apt purge php7.3-fpm php7.4-fpm php8.0-fpm php8.1-fpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
apache2 apache2-bin apache2-data apache2-doc apache2-suexec-custom apache2-utils awstats bind9 bind9-utils certbot
clamav clamav-base clamav-daemon clamav-docs clamav-freshclam clamav-testfiles clamdscan etckeeper fonts-lato gcc
gcc-9 geoip-database jailkit javascript-common libapache2-mod-fcgid libapr1 libaprutil1 libaprutil1-dbd-sqlite3
libaprutil1-ldap libasan5 libatomic1 libauthen-oath-perl libberkeleydb-perl libc-dev-bin libc6-dev libcc1-0
libcgi-fast-perl libcgi-pm-perl libclamav9 libcommon-sense-perl libconfig-inifiles-perl libcrypt-dev
libcrypt-openssl-bignum-perl libcrypt-openssl-random-perl libcrypt-openssl-rsa-perl libdbd-mysql-perl libdbi-perl
libdigest-bubblebabble-perl libencode-locale-perl libevent-core-2.1-7 libevent-pthreads-2.1-7 libexporter-tiny-perl
libfcgi-bin libfcgi-dev libfcgi-perl libfcgi0ldbl libfwupdplugin1 libgcc-9-dev libgeoip1 libhiredis0.14
libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhttp-date-perl libhttp-message-perl
libimport-into-perl libio-html-perl libio-multiplex-perl libitm1 libjs-jquery libjson-perl libjson-xs-perl liblsan0
liblua5.2-0 liblwp-mediatypes-perl libmail-authenticationresults-perl libmail-dkim-perl libmail-spf-perl libmecab2
libmemcachedutil2 libmoo-perl libmysqlclient21 libnet-cidr-perl libnet-dns-perl libnet-dns-sec-perl libnet-ip-perl
libnet-rblclient-perl libnet-server-perl libnet-xwhois-perl libnetaddr-ip-perl libparse-syslog-perl
libperl4-corelibs-perl libquadmath0 libruby2.7 libspf2-2 libstrictures-perl libtfm1 libtsan0 libtype-tiny-perl
libtype-tiny-xs-perl libtypes-serialiser-perl libubsan1 linux-libc-dev manpages-dev mecab-ipadic mecab-ipadic-utf8
mecab-utils milter-greylist mysql-client mysql-client-8.0 mysql-client-core-8.0 mysql-common mysql-server
mysql-server-8.0 mysql-server-core-8.0 ntpdate p7zip php7.4-mbstring postgrey procmail-wrapper proftpd-basic
proftpd-doc python3-acme python3-certbot python3-configargparse python3-future python3-icu python3-josepy
python3-mock python3-parsedatetime python3-pbr python3-ply python3-requests-toolbelt python3-rfc3339 python3-tz
python3-zope.component python3-zope.event python3-zope.hookable rake re2c ri ruby ruby-minitest ruby-net-telnet
ruby-power-assert ruby-test-unit ruby-xmlrpc ruby2.7 ruby2.7-doc rubygems-integration sa-compile spamassassin spamc
unrar webalizer
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
php-fpm* php7.3-fpm* php7.4-fpm* php8.0-fpm* php8.1-fpm* virtualmin-lamp-stack*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 20.5 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
not really. only “virtualmin-lamp-stack” depends on it… i don’t use it on my systems, so i guess its not necessary, just some metapackage to bring in all dependencies.
rest of packages shown are also dependencies of virtualmin-lamp-stack, but can remain/be installed without it as well… doesn’t mean they will be removed too.