• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Get hosting IP address in psa database

Samuelcr

New Pleskian
Hello,

I guess a change in psa has been made in this version.

In previous versions i could get IP address with hosting.ip_address_id pointing to IP_Addresses table.

Now this reference is always "0". Where can i find that relationship now?

Thank!
 
I answer to mysqelf.

Form some mysterious reason that relationship is now in dom_param.

dom_id points to hosting.dom_id
look for a param = 'ip_addr_id'
Its value points to IP_Addresses.

So, for example...

SELECT domains.name, IP_Addresses.ip_address
FROM domains
INNER JOIN hosting ON domains.id = hosting.dom_id
INNER JOIN dom_param ON hosting.dom_id = dom_param.dom_id AND dom_param.param = 'ip_addr_id'
INNER JOIN IP_Addresses ON dom_param.val = IP_Addresses.id

A pain in the *** to obtain consistently the IP through versions... tough...
 
Back
Top