Please help "perl: warning: Setting locale failed"

halalaA

Member
Sep 30, 2021
5
0
1
Ottawa
cPanel Access Level
Website Owner
My server is used Centos 7.

After following the instructions on this How to fix "perl: warning: Setting locale failed" , when access SSH through root doesn't see any error:

1685211462885.jpg


However, I still see the following error message when access through Jailed Shell:



-----
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = (unset)
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

----

1685212185632.jpg

Is it because Cpanel sets locale differently and it's per application and more complex?

How can I fix this? Please help me.
 
Last edited by a moderator:

halalaA

Member
Sep 30, 2021
5
0
1
Ottawa
cPanel Access Level
Website Owner
Hey there! Can you post the bashrc file for the affected cPanel user so we can see that?
-----

# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

----

Thanks for your reply. I found this .bashrc on the root file of the affected cPanel user. Does this look right to you?