• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Unable to set admin user's locale via command line

kassi

Basic Pleskian
Server operating system version
Ubuntu 22.04
Plesk version and microupdate number
18.0.56
During setup I wanted to change the admin user's locale.

Code:
$ plesk bin locales --set-default en-US
$ plesk bin user --update admin -locale en-US
$ plesk bin user --info admin
User Admin:
Contact name: admin
...
Locale: en-US
Role: Admin
SUCCESS: Information is successfully retrieved.

$ plesk bin locales --status
...
GERMAN (Germany                de-DE    [Enabled]
GREEK (Greece                  el-GR    [Disabled]
ENGLISH (United States         en-US    [Enabled]
...
Installed: 32.
Available for users: 2.
Disabled: 30.
Allowed by license: 32.
Default: ENGLISH (United States "en-US".
Admin: GERMAN (Germany "de-DE".
When I re-log in into plesk admin with user "admin", then the language is still German.

Anything I miss or is it broken?
 
The language upon login is determined by the selection on the login page. I guess your expectation is that the setting overrides what the user has set in his browser on the login page?
 
Actually I didn't set anything on the log in page and I guess then "default" is used.
My expectation is that the language that I set in the admin user's profile page is used, which is usually the case
Anyway: This one is not updated either.
So my expectation is that when I run the command plesk bin user --update admin -locale en-US, and I log in to Plesk as admin and go to the Admin user's profile page, I see "Plesk language: en-US", but it is still "de-DE".
 
According to admin: Administration Panel Preferences, you can change the admin locale with:
Code:
plesk bin admin --update -locale <locale>
Afterwards, you will need to relogin due to some extension and session caches in the database.

The command you are using changes the locale column in the client database, and I'm not sure what it's for. The command above changes the admin_locale column in the misc table, which seems to work.

It's possible that the admin settings are somehow mixed with client configuration and redundant. I haven't tested if your command works with regular user.
 
Back
Top