1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Changed Hostname, now cannot access adminpanel

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by WbAdminSupport, May 9, 2012.

  1. WbAdminSupport

    WbAdminSupport New Pleskian

    11
     
    Joined:
    Apr 26, 2012
    Messages:
    20
    Likes Received:
    0
    Hello,

    We changed the hsotname on our Linux parralels box today and now we cannot access our Control panel and neither can our customers. When we go to http or https://oursite.com:8443 it redirects to an erro page and shows 127.0.0.1 in the address bar.

    We changed the hostname by going to "Tools&Settings" and modifying the hso tname there. We then restarte PSA and then this issue occured.

    Webiste are viewable, so that is good, but no one can access the control panel.

    I have followed the steps lsited here to perform the cahnge (http://kb.parallels.com/en/1793)

    I then have tried these steps to fix the issue

    1. /etc/hosts
    Your current hostname should be here behind the server’s IP address, change this to the new hostname
    2. /etc/sysconfig/network
    You should have a HOSTNAME variable here, change this to your new hostname.
    3. /var/qmail/control/me
    This contains the old hostname, change it to your new hostname to make qmail identify itself as the new hostname.
    4. /etc/httpd/conf/httpd.include
    You should have a ServerName variable here, change it to your new hostname.
    5. Change the servers hostname while it’s running, normally this is set at boot.
    hostname <newhostname>
    6. Set the new hostname inside Plesk’s database:
    mysql -u admin -pcat /etc/psa/.psa.shadow use psa; update misc set val='NEWHOSTNAME' where param='FullHostName';
    7. Now restart Plesk to activate your changes:
    /etc/init.d/psa stopall /etc/init.d/psa stop /etc/init.d/psa start

    I am running Ubuntu as our server, so the above locations are slightly difrent, but everything is confimred.

    I did notice that in the hosts file it looked a little off to me. Here is what the hosts file looks like. Just to make sure, where it says x.x.x. and my.webserver.com, the correct info is present in the actual file. :)

    x.x.x.x my.webserver.com

    # The following lines are desirable for IPv6 capable hosts
    ::1 localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

    does anyone have any ideas?

    Thanks.
     
  2. WbAdminSupport

    WbAdminSupport New Pleskian

    11
     
    Joined:
    Apr 26, 2012
    Messages:
    20
    Likes Received:
    0
Loading...