Could not determine the server's fully qualified domain name, using 127.0.0.1

Discussion in 'Installation/Configuration' started by teedo757, Aug 16, 2006.

  1. teedo757

    teedo757 New Member

    Ok I setup ISPconfig and now I am having trouble connecting to it. I am able to connect https://192.168.1.xxx:81 from on the server (fedora core 5) but not from any other computer on the network. When I restart ISPconfig i get this alert:"ispconfig_httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName." I dont know if this is part of the problem but it might be. I have opened port 81 on the firewall but I continue to get a page not displayed message. Also I have a domain name setup for the server however even on the server itself I need to put in https://192.168.1.xxx:81 and cant put in https://sitename:81 for it to work. Any suggestions are welcome. Thanks
     
    Last edited: Aug 16, 2006
  2. edge

    edge Active Member Moderator

    Why are you hiding the xxx part of that IP if I may ask?
    I mean.. If you do it for that IP you should also do it for the 127.0.0.1 IP! :)
     
  3. teedo757

    teedo757 New Member

    ...

    Please respond to the question.....127.0.0.1 is a special address that calls your own computer everyone knows that, i did not show my internal ip address for my network because that could compromise my network and allow others to know how things are setup internally. If you have an answer to the question it would be greatly appriciated if not please do not respond!
     
  4. edge

    edge Active Member Moderator

    What did you use as the fully qualified domain name when you installed ISPconfig?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems you did not configure a hostanme for your server. What is the output of:

    Code:
    hostname -f
    and what is in the file: /etc/hosts
     
  6. teedo757

    teedo757 New Member

    you are right but I dont know how to name it.

    [root@zuzu install_ispconfig]# hostname -f
    hostname: Unknown host

    /etc/hosts - contains
    [root@zuzu etc]# cat hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost zuzu


    Do I make the change in the /etc/hosts file to change the domain name?
     
  7. narut0b0y

    narut0b0y New Member

    if your going to access it on your local network,

    * edit the network file under /etc/sysconfig and put HOSTNAME=[your hostname]

    # cd /etc/sysconfig
    # vi network

    HOSTNAME=testserver <--- network file should contain this, just change the "testserver" with your choice hostname. don't forget to save.

    * on your hosts file, add 192.168.1.xxx [your hostname]

    # cd /etc
    # vi hosts

    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 localhost.localdomain localhost zuzu
    192.168.1.xxx testserver <--- change the "testserver" with your choice hostname. don't forget to save.

    * restart network service and ispconfig <--- not sure if you still have to this

    # service network restart
    # service ispconfig_server restart

    * also add 192.168.1.xxx [your hostname] on the hosts file of the client pc or workstation that will access your ispconfig. if the client workstation o.s. is windows 2000 professional, the hosts file is located at [windows folder]\system32\drivers\etc

    127.0.0.1 localhost
    192.168.1.xxx testserver <--- change the "testserver" with your choice hostname. don't forget to save.
     
  8. kaanadanali

    kaanadanali New Member

    "ispconfig_httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName."

    not to get that alert

    in
    /root/ispconfig/httpd/conf/httpd.conf

    i change ServerName like this:

    ServerName hostname.domain.tld.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    To set the hostname of your server, execute these two commands:

    "server1.example.com" must be replaced with your hostname
     
  10. teedo757

    teedo757 New Member

    Ok it fixed the error message by using what kaanadanali said (also tried everyone elses fixes) but I am still unable to connect to ISPconfig via the web address. I still get a page cannot be displayed error. Any suggestions on where to start looking?

    Plus when I go to the website (not the https) it says that the address is a shared Ip but I am pretty sure I set up the web site correctly in ISPconfig...actually its the only one I have setup.
     
    Last edited: Aug 23, 2006
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Does the domain / hostname exists in DNS?

    You have to connect on port 81, not port 80.
     
  12. teedo757

    teedo757 New Member

    I purchased the domain name and pointed it to my web server. I am assuming that is what you meant by your question. I have another box running ispconfig at home and have never had problems with but the one in the office is giving me trouble. I know i need to connect using https to access ispconfig I was just saying that when I try to browse to the website I get the shared IP error. I was not sure if this would help anyone narrow down what my problem was.
     
  13. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    ifconfig
    ? What's in Vhosts_ispconfig.conf?
     
  14. teedo757

    teedo757 New Member

    Works! I checked the Vhosts_ispconfig.conf file and it had a www in front of my domain which was incorrect. Fix it and BAM everything looks great. Thanks for all the help.
     
  15. zenny

    zenny Member

    I came across a similar problem which reports error as:

    This happened after I upgraded from v2.2.9 to v2.2.12 to find out whether the problem posted here (http://www.howtoforge.com/forums/showthread.php?t=12666) is associated with the formerversion. But the problem in the thread still exists besides a new error popped up! :-(

    My Vhosts_ispconfig.conf reads like:

     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    You mix up different things ispconfig_httpod has nothing to do with the Vhosts_ispconfig.conf file. Also the alert is just a warning that can be ignored, it has no impact on your setup.
     
  17. zenny

    zenny Member

    Thank you, Till for the info. However, I could create the A records and other CNAME and other records after I deleted all other entries from the DNS manager.

    My situation is that I have a static public IP which has been defined as ns1.domain.com in the domain registrar's domain control panel and tried to follow Falko's tutorial with a second nameserver from another host (actually I am the one who handles them, too)

    However, when I type the domain.com on the browser it does not point to my server.

    And interestingly, after I upgraded from the 2.2.9 to 2.2.12, the page rendered by entering the IP (as the domain.tld does not load) address, gives me an apache2 index page default to centos rather than ISPconfig page.

    Looking forward to reply. thanks.
     
  18. falko

    falko Super Moderator Howtoforge Staff

    So you want to host records for domain.com on ns1.domain.com? Then you need a glue record: http://en.wikipedia.org/wiki/Dns#Circular_dependencies_and_glue_records

    What's the output of
    Code:
    ifconfig
    and what's in Vhosts_ispconfig.conf?
     
  19. zenny

    zenny Member

    Dear Falko:

    But how to create a glue record with ISPConfig.

    And the output of ifconfig (hosted in the openvz virtual environment) is:


    # ifconfig
    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:336 errors:0 dropped:0 overruns:0 frame:0
    TX packets:3227093782 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:3227114968 (3.0 GiB) TX bytes:21963 (21.4 KiB)

    venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
    UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
    RX packets:47092 errors:0 dropped:0 overruns:0 frame:0
    TX packets:54422 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:25121772 (23.9 MiB) TX bytes:21531826 (20.5 MiB)

    venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
    inet addr:192.168.1.204 P-t-P:192.168.1.204 Bcast:192.168.1.204 Mask:255.255.255.255
    UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1




    The contents of the /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf are:


    NameVirtualHost 81.216.XXX.YYY:80
    <VirtualHost 81.216.XXX.YYY:80>
    ServerName localhost
    ServerAdmin root@localhost
    DocumentRoot /var/www/sharedip
    </VirtualHost>
    #
    #
    ######################################
    # Vhost: www.domain.tld:80
    ######################################
    #
    #
    <VirtualHost 81.216.XXX.YYY:80>
    ServerName www.domain.tld:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web2/web
    ServerAlias aristoli.com www.81.216.XXX.YYY
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ScriptAlias /cgi-bin/ /var/www/web2/cgi-bin/
    ....
     
  20. falko

    falko Super Moderator Howtoforge Staff

    This is not created within ISPConfig. You must ask your domain registrar to create one for you.

    You are using the wrong IP address in ISPConfig. You must use the IP address that you see in the ifconfig output (i.e. 192.168.1.204), not 81.216.XXX.YYY.
     

Share This Page