Das war ja zum Fürchten einfach (Ubuntu):
root@big:~# apt-get remove libapache2-mod-php7.2 Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: php7.2-fpm Suggested packages: php-pear The following packages will be REMOVED: libapache2-mod-php libapache2-mod-php7.2 The following NEW packages will be installed: php7.2-fpm 0 upgraded, 1 newly installed, 2 to remove and 0 not upgraded. Need to get 0 B/1,409 kB of archives. After this operation, 162 kB of additional disk space will be used. Do you want to continue? [Y/n] (Reading database ... 288694 files and directories currently installed.) Removing libapache2-mod-php (1:7.2+60ubuntu1) ... Selecting previously unselected package php7.2-fpm. (Reading database ... 288692 files and directories currently installed.) Preparing to unpack .../php7.2-fpm_7.2.10-0ubuntu0.18.04.1_amd64.deb ... Unpacking php7.2-fpm (7.2.10-0ubuntu0.18.04.1) ... dpkg: libapache2-mod-php7.2: dependency problems, but removing anyway as you requested: php7.2 depends on libapache2-mod-php7.2 | php7.2-fpm | php7.2-cgi; however: Package libapache2-mod-php7.2 is to be removed. Package php7.2-fpm is not configured yet. Package php7.2-cgi is not installed. (Reading database ... 288714 files and directories currently installed.) Removing libapache2-mod-php7.2 (7.2.10-0ubuntu0.18.04.1) ... Module php7.2 disabled. apache2_invoke prerm: Disable module php7.2 Setting up php7.2-fpm (7.2.10-0ubuntu0.18.04.1) ... Creating config file /etc/php/7.2/fpm/php.ini with new version NOTICE: Not enabling PHP 7.2 FPM by default. NOTICE: To enable PHP 7.2 FPM in Apache2 do: NOTICE: a2enmod proxy_fcgi setenvif NOTICE: a2enconf php7.2-fpm NOTICE: You are seeing this message because you have apache2 package installed. Created symlink /etc/systemd/system/multi-user.target.wants/php7.2-fpm.service → /lib/systemd/system/php7.2-fpm.service. Processing triggers for ureadahead (0.100.0-20) ... Processing triggers for systemd (237-3ubuntu10.9) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... root@big:~#
Danach noch die NOTICEs befolgt, neu gestartet, und, tataa!