Locales Missing - Linux
Print
On newer installation of Linux, you may find that you only have English locales when using the locale -a command.
This may cause issues with certain applications and web servers. The fix however is straighforward:
RHEL Derivitives:
Download the language packs:
dnf -y install glibc-all-langpacks
Edit the fiile with your preferred language from locale -a
Source to apply the changes
source /etc/locale.conf
Restart Webserver or reboot the server:
systemctl restart <webserver>
Debian
edit the file /etc/locale.gen
then run the locale-gen command.
Alternatively, run dpkg-reconfigure locales as root
locale-gen takes the locales it generates from /etc/locale.gen. Uncommenting en_US.UTF-8 or any of language will also work,
Debian Derivitives
locale-gen en_US.UTF-8
Was this answer helpful?