hostname

guerra

Verified User
Joined
Jan 13, 2009
Messages
9
NOTE:
mydomain.com is example because I don't want to spam your board with my URL::eek:

So my problem is:
when I install my directadmin on my new dedicated server I make a mistake..
I have seleted in hostname mydomain.com and now how can I change to server.mydomain.com

I try this:
echo server.mydomain.com > /etc/hostname

and reboot the system:
shutdown -r now

and in the hostname file at:
/etc/hostname is okay now I have server.mydomain.com

now the problem is to start some programs like httpd etc...

I take a look at:
http://www.directadmin.com/forum/showthread.php?t=29639

--------------------------------------------------------------------
the admin from directadmin on this thread:
http://help.directadmin.com/item.php?id=16

said this:
1) hostname must not match any domain that is being used on the system. Example, if you have a domain called domain.com and you want to recieve mail on [email protected], you must *not* set your hostname to domain.com. We recommend using server.domain.com instead. You must make sure that you add the A record for server.domain.com so that it resolves.

---------------------------------------------------------------------


I try this:
echo server.mydomain.com > /etc/hostname

and reboot the system:
shutdown -r now

and in the hostname file at:
/etc/hostname is okay now I have server.mydomain.com

now the problem is to start some programs like httpd etc...

I don't know how to solve this problem, or maybe I have to install again directadmin ?

the problem is also I don't want to install again my debian OS at the begining with minium OS

I need to config my server to use the Mail System, run my own dns like ns1.mydomain.com. ns2.mydomain.com.
etc ...

I will apreciate any help from you guys :)
 
Use DirectAdmin to change the hostname under Administrator Settings.

What does the httpd error_log show when you try to start apache?
 
Use DirectAdmin to change the hostname under Administrator Settings.

What does the httpd error_log show when you try to start apache?


DONE !!!

I did this to solve my problem:
echo server.mydomain.com > /etc/hostname

and reboot the system:
reboot

and in the hostname file at:


And in DirectAdmin I change the hostname under Administrator Settings.

Thank you for your help br0tha
 
Back
Top