• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

IP Address Changes when Amazon EC2 Restarts

ArtZ

New Pleskian
I am testing Plesk 10.4.4 on Amazon EC2. When the instance restarts, the IP address changes. The amazon_setup_ip command (which was present in previous versions of Plesk) does not exist in Plesk 10.4.4.

What is the recommended procedure for updating everything in Plesk after an Amazon EC2 instance restarts? I need to do at least the following:

* Reload IP addresses
* Change the new IP address to shared
* Assign the new IP address to all subscriptions
* Assign the correct SSL cert to the new IP address
* Change the default web site for the IP address
* Remove the old IP address

In case it matters, I am running Ubuntu 10.04LTS, 64 bit.

Thank you,
-- Art Z.
 
Last edited:
Hm.. Plesk 10.4 wasn't really designed for dynamic IP addresses. Does Amazon offer any way to get a Static?

No. You can have a static public IP address but the internal IP address, the one on which all traffic arrives and the one which the web sites have to be assigned to, changes.

-- Art Z.
 
Any word, Parallels? What do you suggest? Older versions of Plesk included a amazon_setup_ip command but it is missing from 10.4.4.

I ran a script with these commands and it seems to fix the problem but I would love to hear your thoughts on the issue.

#!/bin/bash
ipaddr=$(ifconfig eth0 | awk -F '[ :]+' '/inet addr/ {print $4}')
mysql -uadmin -p$(cat /etc/psa/.psa.shadow) -e "update psa.IP_Addresses set ip_address='$ipaddr' where main='true'"
/usr/local/psa/admin/bin/httpdmng --reconfigure-all

Thank you,
-- Art Z.
 
Back
Top