Symptoms
-
plesk login
utility returns incorrect hostname:# plesk login
https://test.example.com:8443/login?secret=*** -
Plesk database includes the incorrect value for
pleskHttpHost
parameter:# plesk db "select * from misc where param='pleskHttpHost';"
+---------------+----------------------------+
| param | val |
+---------------+----------------------------+
| pleskHttpHost |test.example.com:8443 |
+---------------+----------------------------+
Cause
Incorrect hostname test.example.com
was used last time to log in to Plesk by admin instead of the correct server.example.com
.
Resolution
-
Execute command below to set correct value for
pleskHttpHost
parameter:# plesk bin settings --set pleskHttpHost="server.example.com:8443"
Note: In case the above command returns the same address, make sure that there is no custom URL configured.