Plesk 10 Upgrade – WWW Site Prefix Shows Default Page

A recent upgrade from Plesk 9 to Plesk 10 resulted in us experiencing an issue where the Plesk Default Page is shown for the WWW prefix for a number of sites. Turns out it is a documented issue however the Parallels suggested solution hardly scales.

This is frustrating, very frustrating. Someone might want to send a copy of the relevant DNS RFC to Parallels as its also plain wrong.

Disclaimer: I won’t be held liable for any data loss, downtime or customer angst as a result of the following. While this will work in most environments, YMMV. Backup your PSA database before starting.

First step is to create a small shell script (Ie. vim /root/fixissue.sh) containing the following

#! /bin/csh
foreach domain (`cat /root/domains`)
/usr/local/psa/bin/dns --add $domain -cname 'www' -canonical $domain
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain $domain
echo $domain Fixed
end

Following this, complete the following. This could also be scripted without effort.

echo "select host from dns_recs WHERE host LIKE 'www%' AND type = 'A';" | mysql -N -uadmin -p`cat /etc/psa/.psa.shadow` psa > /root/domains

sed -i 's/^.\{4\}//g' /root/domains

sed -i 's/\.$//' /root/domains

echo "delete from dns_recs WHERE host LIKE 'www%' AND `type` = 'A';" | mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

chmod u+x /root/fixissue.sh

/root/fixissue.sh

6 thoughts on “Plesk 10 Upgrade – WWW Site Prefix Shows Default Page

  1. Pingback: Here Ya Go

  2. Pingback: Great Clips Coupons - The Way to Go

  3. Pingback: mujeres article

  4. Pingback: mujeres

  5. Pingback: website

  6. Pingback: website

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>