• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Full hostname

B

baravalle

Guest
Hi,
I'm trying to configure my Plesk installation.

I have a problem with a screen (server -> server preferences): when I try to set up the host name, it doesn't accept any value (none of the domains installed in the server). How do I change it/set a correct value? I did save localhost.localdomain by mystake and now I can eaccess plesk only using the ip.

Thanks,
Andres
 
Is this a Virtuozzo Plesk VPS? or dedicated?

If it's VZ, you may have better luck changing the hostname in the VZPP, :4643

You may even need to get your HSP involved, in some cases.

Have a good one ;)

Jason
 
What happens when you try? Errors appear? Does anything appear in the psa logs?
To find your logs, first find your product root.
Code:
cat `locate psa.conf` | grep PRODUCT_ROOT_D | uniq | awk '{ print $2 }'

(In lots of cases its /usr/local/psa but the above code will tell you for sure)
Code:
tail -f /usr/local/psa/admin/logs/httpsd_error_log

That will give you a real time listing of the error logs from PSA - once you run that code go back to the screen in PLESK and try it again, if any Plesk related errors occur it should display them on the ssh screen. Press Ctrl-C to get back to a prompt.

You can also try fixing it manually from SSH, but this wont update Plesk.

Go into /etc/hosts and setup your local resolver to point locally,
So it looks something like
Code:
127.0.0.1               localhost.localdomain localhost
ip.ip.ip.ip                hostname hostname.domain

you can also go into /etc/sysconfig/network and edit the HOSTNAME item there.

if you change the network settings do
Code:
/sbin/service network restart

Then from the prompt type
Code:
hostname

if its not correct, type
Code:
hostname my.hostname.com

with your real value of course.
 
That will give you a real time listing of the error logs from PSA - once you run that code go back to the screen in PLESK and try it again, if any Plesk related errors occur it should display them on the ssh screen. Press Ctrl-C to get back to a prompt.

You can also try fixing it manually from SSH, but this wont update Plesk.

Hi,
thanks for answering.

It didn't work - no error reported in the relevant error log.

Go into /etc/hosts and setup your local resolver to point locally,
So it looks something like
Code:
127.0.0.1               localhost.localdomain localhost
ip.ip.ip.ip                hostname hostname.domain

that's already correct, checked

you can also go into /etc/sysconfig/network and edit the HOSTNAME item there.

if you change the network settings do
Code:
/sbin/service network restart

Then from the prompt type
Code:
hostname

if its not correct, type
Code:
hostname my.hostname.com

with your real value of course.

and this is correct too. I have restarted the network as well, just in case, and doesn't change the situation:

1) http://ip:8443 -> correct
2) https://ip:8443 -> correct
3) http://domainname:8443 -> incorrect, redirects to localhost.localdomain
4) htts://domainname:8443 -> correct

Any more suggestions?

Thanks again,
Andres
 
Sorted

yeah, thats normal. The 8443 stuff is in /usr/local/psa/admin/conf/httpsd.conf

thank you very much - that was the error - the ServerName was set to localhost.localdomain, and same for the default error page. Corrected both and the problem is sorted now.

Thanks,
Andres
 
Back
Top