Article ID: 128791, created on May 4, 2016, last review on May 4, 2016

  • Applies to:
  • Operations Automation 6.0


Using the Plesk in VPS application, provider set Plesk default language to non-default by post-install scripts:

#Change default language
/usr/local/psa/bin/server_pref -sd -locale de-DE

#disable all other languages
for locales in `/usr/local/psa/bin/locales -l`; do

if ! [ $locales == "de-DE" ]
then /usr/local/psa/bin/locales --disable $locales;

fi; done

#enable english language
/usr/local/psa/bin/locales --enable en-US

But when customer logs in from CCP, Plesk uses English localization. How Plesk determines its localization parameters and how to apply correct localization to existing installations?


Despite configured locale, Plesk administrator had incorrectly set City, Country and Zip-code settings. That happened due to not complete configuration of subscription owner's account - these fields were missing.


Plesk in VPS automatically determines target localization during the installation using customer's data, requesting them from the APS bus. In particular, localization settings from first admin-user are retrieved. In case of missing settings for regional parameters, defaults are used:

[country] => US
[zip] => 98057
[state] => WA

Settings are automatically applied if the first account administrator has correct values filled.

However, if it is needed to fix existing installation and prevent the issue from occurring in future, it could be workarounded by using init_conf program. Init_conf is able to setup all admin parameters for Plesk installation, including missing country, region and city.

For example, it could be launched this way:

# /usr/local/psa/bin/init_conf -u -country 'US' -city 'New York' -fax '123456' -phone '1234567' -company 'My.corp' -zip '12345'

-u  update administrator's contact information
-country  administrator's country code (two alphabetic characters)
-city, -fax, -company, -zip are additional contact parameters, no special input rules applied.

This command could be run inside existing customer's VPS to modify settings or added to post-installation scripts of desired PVPS configuration to force defined settings.

More info about this utility could be acquired from integrated help or on Plesk documentation portal.

Please, note that post-install query will fix administrator contact information on Plesk side and will be applied to all new installations based on this PVPS configuration, but not to APS bus. It is impossible to automatically populate settings for customers' accounts on APS bus from Plesk post-install scripts.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF