Article ID: 8007, created on Jan 28, 2010, last review on Aug 12, 2014

  • Applies to:
  • Plesk 9.2 for Linux/Unix

Symptoms

After changing of an IP address on a server with Parallels Panel using the reconfigurator.pl Panel tool, everything looks well except a webmail configuration. It still uses the old IP address.

Note! In all examples below the /usr/local/psa/ path got from the $PRODUCT_ROOT_D value of a test server.

How to reproduce the issue?

1) Configure a Panel to use a new IP address.

Example:

a. Create a parameter file for reconfigurator.pl:

# /usr/local/psa/bin/reconfigurator.pl ip_map.txt
Attempting to connect to MySQL: ok
IP map file template ip_map.txt was successfully created
Edit it manually to reflect your configuration


b. Edit the file:

# vi ip_map.txt

In the file:
...
# You should edit IP addresses, netmasks and interfaces to reflect your
# future settings. If you don't want the IP to be changed - leave it untouched,
# comment out it's line or remove entire line from the file.

eth0:192.168.0.1 255.255.255.0 -> eth0:192.168.0.2 255.255.255.0
...


c. Use the edited file for configuration:

# /usr/local/psa/bin/reconfigurator.pl ip_map.txt
Using mapfile ip_map.txt - start checking
Checking done, now Plesk configuration will be updated.
192.168.0.1 -> eth0:192.168.0.2 255.255.255.255
Update ip 192.168.0.2 in database... ok
Reconfiguring DNS settings:
domain test.com... ok
Restarting DNS service... ok
Now reconfigure apache... ok
Mapping procedure successfully done


2) Update Virtual hosts configuration.

Example:

# /usr/local/psa/admin/bin/websrvmng -a -v


3) Check that webmail vhosts are still pointed to the old IP:

Example:

# less /etc/httpd/conf.d/zzz_atmail_vhost.conf | grep -i Virtual
<VirtualHost 192.168.0.1:80>
</VirtualHost>
<VirtualHost 192.168.0.1:443>
</VirtualHost>


Resolution

Replace the $PRODUCT_ROOT_D/bin/reconfigurator.pl file with the attachment.

Read the http://kb.sp.parallels.com/en/8083 article about a hot-fix installation procedure.

Attachments

11a46d8a188d618564f4f0cead9a50f3 a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 6ef0db7f1685482449634a455d77d3f4 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF