• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Contribution [HowTo] One-step SQL query to fix IP address assignment issues

Bernard T

New Pleskian
Hi everyone,

mods: if this is wrong section for this post, please move it.

After a big migration from two older Plesk servers to a new Plesk 12 server I had to fix IP address assignment problems found by Plesk Webserver Configuration Troubleshooter in our server configs.
Since there is a manual 2-steps process described in KB http://kb.odin.com/en/113475, I made a new SQL query which will do everything in one step.

I thought someone else would be interested for it, so I decided to share it:
Code:
UPDATE IpAddressesCollections
    LEFT JOIN DomainServices ON IpAddressesCollections.ipCollectionId = DomainServices.ipCollectionId
    LEFT JOIN domains ON DomainServices.dom_id = domains.id
    LEFT JOIN dom_param ON dom_param.dom_id = domains.id
SET ipAddressId = cast(dom_param.val as char)
WHERE IpAddressesCollections.ipAddressId = 0
    AND dom_param.param LIKE 'ip%_addr_id'

I hope it will be useful to someone else, maybe you can update it to the subject KB.
 
Back
Top