Skip to main content

When you change port host accounts lose their ip

Comments

9 comments

  • cPanelMichael
    Hello, I'm unable to reproduce this issue on a test system running cPanel version 66.0.22. Can you define the full step-by-step instructions you are taking when this happens? Thank you.
    0
  • ribo
    i have 4 host accounts. Account1 has 192.168.1.1 (main shared ip(share by root, nobody,account1,account2,account3) ) Account2 has 192.168.1.2 (dedicated ip) Account3 has 192.168.1.3 (dedicated ip) Account4 has 192.168.1.4 (dedicated ip) I am going to Server Configuration-Tweak Settings-Apache non-SSL IP/port [?] and i put 0.0.0.0:8081 And everything is ok Now i am going again to Server Configuration-Tweak Settings-Apache non-SSL IP/port [?] and i put 0.0.0.0:80 default If i will go to Account Functions-Change Site"s IP Address i will see that have Account1 has 192.168.1.1 Account2 has 192.168.1.1 Account3 has 192.168.1.1 Account4 has 192.168.1.1
    0
  • cPanelMichael
    Hello, I've now reproduced this issue and opened internal case CPANEL-15961 to report the behavior where changing the "Apache non-SSL IP/port" option in "WHM >> Tweak Settings" to a custom value (e.g. 0.0.0.0:8081), and then changing the option back to the default value, results in a modification of the dedicated IP address to the main shared IP address in the userdata files for any account assigned a dedicated IP. I'll monitor this case and update this thread with more information as it becomes available. In the meantime, the workaround is to manually update the IP address entries in any files within /var/cpanel/userdata/$username/ that contain the wrong IP address. Thank you.
    0
  • ribo
    Thank you very much for opened internal case CPANEL-15961
    0
  • ribo
    Can you also please test it and when you change port in Apache SSL port [?] for example if you change from 0.0.0.0:443 to 0.0.0.0:4443 and after you roll back from 0.0.0.0:4443 to 0.0.0.0:443 if the ips of account changing again? I am not sure about this but it may happens and for Apache SSL port [?] .
    0
  • cPanelMichael
    Can you also please test it and when you change port in Apache SSL port [?] for example if you change from 0.0.0.0:443 to 0.0.0.0:4443 and after you roll back from 0.0.0.0:4443 to 0.0.0.0:443 if the ips of account changing again? I am not sure about this but it may happens and for Apache SSL port [?] .

    Hello, I tested that when opening the case, but it did not result in the same behavior as changing the non-SSL port. Thank you.
    0
  • gigatech
    This is a really nasty bug, spend hours solving this i have the same problem. any update regarding this?
    0
  • cPanelMichael
    Hi @gigatech, The priority on this case was recently upgraded, but there's no additional information to report at this time. I've linked this thread to the case, and will update this thread with new information as soon as it's available. Thank you.
    0
  • cPanelMichael
    Hello, To update, this is fixed in cPanel version 68.0.10: Fixed case CPANEL-15961: Preserve dedicated IPs when updating userdata. Thank you.
    0

Please sign in to leave a comment.