"sudo apt-get install libapache2-mod-php7.2" works just fine on a fresh bionic container, it even switches the mpm module:
(...)
Creating config file /etc/php/7.2/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php7.2
(...)
What about those locale errors? Here is mine, in that aforementioned bionic container where it all worked:
$ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=
"sudo apt-get install libapache2- mod-php7. 2" works just fine on a fresh bionic container, it even switches the mpm module: 7.2/apache2/ php.ini with new version
(...)
Creating config file /etc/php/
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php7.2
(...)
What about those locale errors? Here is mine, in that aforementioned bionic container where it all worked: "C.UTF- 8" "C.UTF- 8" "C.UTF- 8" "C.UTF- 8" "C.UTF- 8" "C.UTF- 8" "C.UTF- 8" ON="C.UTF- 8"
$ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC=
LC_TIME="C.UTF-8"
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=