LOCALE ERROR IN CENTOS 6 !

Quite often you may see the issue in newly build CentOS6 VMs:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)

Saw this error even after installing cPanel in the VPS.

This warning popped up every time you ran a command in shell, though it did not cause any issues

The fix was to run the following command :

localedef --no-archive -i en_US -f UTF-8 en_US.UTF-8

  • CentOS6, localedef
  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

ERROR WHEN UPDATING EMAIL ADDRESS OF DNS ZONE – CPANEL / WHM

When trying to update the email address in DNS zone of a domain from cPanel / WHM, do you get an...

NOT ABLE TO DELETE FILES FROM FILE MANAGER – PAPER LANTERN THEME

When cPanel is viewed using the Paper lantern theme,  an error may occur in which files cannot...

GETTING AN EMPTY /ETC/USERDOMAINS FILE ?

Even with several domains in the cPanel server,  is the file /etc/userdomains empty ? This issue...

CPANEL SERVICE FAILING TO START WITH A PERL ERROR !

When trying to start the cPanel service via /scripts/restart_cpsrvd, you may see  the following...

ROOT MAILS GETTING HUNG IN QUEUE – CPANEL ?

Ever come across a situation in which the root mails are getting hung in the queue? Even if you...

Powered by WHMCompleteSolution