{"id":247,"date":"2013-09-10T08:55:33","date_gmt":"2013-09-10T03:25:33","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=247"},"modified":"2013-09-27T17:30:37","modified_gmt":"2013-09-27T12:00:37","slug":"locale-issue-in-linux-vps-box","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=247","title":{"rendered":"Locale issue in Linux VPS Box"},"content":{"rendered":"<p>In case of a new Linux VPS box it is possible that you might encounter an error like this:<\/p>\n<p><em>perl: warning: Setting locale failed.<\/em><br \/>\n<em>perl: warning: Please check that your locale settings:<\/em><br \/>\n<em> LANGUAGE = (unset),<\/em><br \/>\n<em> LC_ALL = (unset),<\/em><br \/>\n<em> LC_CTYPE = &#8220;UTF-8&#8221;,<\/em><br \/>\n<em> LANG = &#8220;en_US.UTF-8&#8221;<\/em><br \/>\n<em> are supported and installed on your system.<\/em><br \/>\n<em>perl: warning: Falling back to the standard locale (&#8220;C&#8221;).<\/em><\/p>\n<p>To solve this error the following approach worked for me on my Debian box. Execute the following command<\/p>\n<p><em>sudo vi \/etc\/ssh\/sshd_config<br \/>\n<\/em><\/p>\n<p>In this file comment the following line. This line basically allows the client OS to pass it&#8217;s environment parameters to the remote server which can cause issues.<\/p>\n<p><em>AcceptEnv LANG LC_*<\/em><\/p>\n<p>Save the file and reboot the VPS box. After rebooting this error should not ideally come. If you are still getting this error then it is possible that you don&#8217;t have the locale installed. The following command might help you in resolving this problem.<\/p>\n<p><em>sudo locale-gen<\/em><br \/>\n<em>sudo dpkg-reconfigure locales<\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case of a new Linux VPS box it is possible that you might encounter an error like this: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = &#8220;UTF-8&#8221;, LANG = &#8220;en_US.UTF-8&#8221; are supported and installed on your system. perl: warning: Falling back [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,24],"tags":[],"class_list":["post-247","post","type-post","status-publish","format-standard","hentry","category-linux-os","category-tips-and-tricks"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/247","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=247"}],"version-history":[{"count":2,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions"}],"predecessor-version":[{"id":249,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/247\/revisions\/249"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=247"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=247"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=247"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}