Bug#974922: libapache2-mod-perl2: "mod_perl interferes with mod_php locales, unable to use gettext translations"
Damyan Ivanov
dmn at debian.org
Wed Nov 18 07:35:50 GMT 2020
Hi Claudio,
-=| Claudio Kuenzler, 16.11.2020 15:26:45 +0100 |=-
> When using mod_perl and mod_php at the same time, mod_perl somehow
> interferes with PHPs ability to translate texts using gettext.
> The PHP translation works fine using CLI but not via Apache web server.
>
> $ curl localhost/translate.php
> My original English text (not translated)
>
> As soon as mod_perl is disabled, the translations work:
>
> # a2dismod perl
> # systemctl restart apache2
>
> $ curl localhost/translate.php
> Mein deutscher Text (translated)
>
> This happened on Debian 10. Language in the PHP script was set to
> de_CH.UTF-8. mod_php is 7.3.19.
It would be nice if you could share the translate.php contents (or
a minimal version) so that the issue can be reproduced and any
prospective fixes/workarounds be tested.
-- Damyan
More information about the pkg-perl-maintainers
mailing list