• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Warning: Current locale is unusable. Using 'C' instead.

Status
Not open for further replies.

OrinocoDelta

Basic Pleskian
Hello,

i am getting this error on a fresh installed machine:

Code:
root@srv1 ~ # /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain domain.tld
Warning: Current locale is unusable. Using 'C' instead.

Any help or suggestions?
 
The correct name of system locale should be 'en_US.UTF-8'.
Please correct your 'export LANG' command. Also make sure that default system locale stored in the '/etc/sysconfig/i18n' file is 'en_US.UTF-8' too.
 
Hello Igor,

how-to correct 'export LANG' command? And i do not have a folder called /etc/sysconfig/i18n

Instead i tried this, but it do not work! See the output please!

Code:
root@srv1 ~ # dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
locales-all installed, skipping locales generation
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_CTYPE = "UTF-8",
    LANG = "C"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
root@srv1 ~ # /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain orcarescues.org
Warning: Current locale is unusable. Using 'C' instead.
root@srv1 ~ # cd /usr/bin/locale
-bash: cd: /usr/bin/locale: Not a directory
root@srv1 ~ #
 
Last edited:
What sort of output of following command:

# locale

?
Actually setting locale is Linux administrative task not related to Plesk.
 
I get this Igor...

root@srv1 ~ # locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
root@srv1 ~ #
 
Status
Not open for further replies.
Back
Top