[ERROR] Exception occured: ISPConfigOSException -> Host name is no FQDN. (/ispconfig.ai.php:15)

Discussion in 'Installation/Configuration' started by londonman67, Jul 4, 2021.

  1. londonman67

    londonman67 New Member

    I get this error when i try to install ispconfig.
    Can you tell me how to fix it?
    [ERROR] The host name artyman.com of your server is no fully qualified domain name (xyz.domain.com). Please check it is correctly set. (/lib/os/class.ISPConfigDebianOS.inc.php:548)
    [ERROR] Exception occured: ISPConfigOSException -> Host name is no FQDN. (/ispconfig.ai.php:15)
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    It tells you the error already: example.com is not a FQDN, you need to have a subdomain, e.g. server1.example.com.
     
  3. londonman67

    londonman67 New Member

    Thanks, now I get this error. Can you tell me whats wrong?
    [ERROR] Exception occured: ISPConfigOSException -> Command hostname -f 2>&1 failed. (/ispconfig.ai.php:15)
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Try rebooting. If that doesn't work, share the output of
    Code:
    hostname -f
     
  5. londonman67

    londonman67 New Member

    After reboot
    root@mydomain:~# hostname -f
    mydomain.com

    I change the hostname but when I reboot the hostname change back to mydomain.com
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Have you edited /etc/hosts and /etc/hostname?
     
  7. londonman67

    londonman67 New Member

    I get Permission denied for /etc/hosts.
    root@mydomain:~# /etc/hosts
    -bash: /etc/hosts: Permission denied
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Are you logged in as root?
     
  9. londonman67

    londonman67 New Member

     
  10. londonman67

    londonman67 New Member

    Yes I am root.
    when I type: nano /etc/hosts
    I get:
    127.0.0.1 localhost.localdomain localhost
    173.214.161.149 server1.mydomain.com.com server1

    ::1 localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
     
  11. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Does it work now?
     
  12. londonman67

    londonman67 New Member

    When I type: nano /etc/hostname
    I get: mydomain.com
     
  13. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Alright, so change that.
     
  14. londonman67

    londonman67 New Member

    When I change it and reboot, it changes back to mydomain.com
     
  15. londonman67

    londonman67 New Member

    I reinstall but now I get this error :
    [ERROR] Exception occured: ISPConfigOSException -> Command mount -o remount / 2>&1 && quotaoff -avug 2>&1 && quotacheck -avugm 2>&1 && quotaon -avug 2>&1 failed. (/ispconfig.ai.php:15)

    Can you help me solve the issue?
     
  16. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I am assuming you are using ISPConfig autoinstall?
    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
    Chapter 2 of the instructions tells how to set up hostname. It also show commands
    Code:
    hostname
    hostname -f
    for checking hostname and domain name is set up properly.
    The autoinstall works well, but it must be started on a freshly installed minimal server of Debian or Ubuntu, which is configured following the instructions in the autoinstall tutorial. If these conditions are not met the autoinstaller does not work.
    If I were you, I would start again from the beginning, with a fresly installed OS. Now you know what to do and are more likely to successfully install ISPConfig.
     
  17. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely, you are using a virtual server where the virtualization system overrides the hostname on each reboot. Change the hostname in the virtual server control panel.
     

Share This Page