• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Changed Hostname, now cannot access adminpanel

WbAdminSupport

New Pleskian
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.
 
Back
Top