Results 1 to 4 of 4

Thread: apache error

  1. #1
    Join Date
    Jun 2008
    Location
    Chicago
    Beans
    202
    Distro
    Ubuntu 14.04 Trusty Tahr

    apache error

    i can't seem to view my website. i get this error, how do i fix this.

    Code:
    fertech@fertech-desktop:~$ sudo /etc/init.d/apache2 restart
    [sudo] password for fertech: 
     * Restarting web server apache2                                                apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
     ... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
                                                                             [ OK ]
    fertech@fertech-desktop:~$

  2. #2
    Join Date
    Nov 2005
    Location
    NEK Vermont
    Beans
    Hidden!
    Distro
    Ubuntu UNR

    Re: apache error

    are you try to view from outside the LAN? Have you tried typing the WAN ip address?
    To fix that error add the line:
    Code:
    ServerName Your.domain.com
    or
    ServerName WAN.IP.Address
    to your httpd.conf file

  3. #3
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: apache error

    Verify that /etc/hosts begins something like:
    Code:
    127.0.0.1 localhost
    127.0.1.1 <hostname>.<domain> <hostname>
    Your file should have appropriate hostname and (possibly) domain.
    That problem actually gets discussed here.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  4. #4
    Join Date
    Nov 2005
    Location
    NEK Vermont
    Beans
    Hidden!
    Distro
    Ubuntu UNR

    Re: apache error

    When in doubt, read the manual:
    http://httpd.apache.org/docs/2.0/mod/core.html

    In addition to adding ServerName <fqdn or ip> to httpd.conf, if you are using virtual hosts, ServerName should be placed inside a <VirtualHost> section.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •