TurnKey Linux Virtual Appliance Library

Could not reliably determine the server's fully qualified domain name

flexbean's picture

On the status.net appliance when apache is restart

/usr/sbin/service apache2 restart

I get the following message:

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

In researching the message it appears that /etc/hosts needs to have the site domain name to be added to the statusnet line. From:

127.0.0.1 localhost
127.0.1.1 statusnet

#Required for IPv6 capable hosts
...

To:

127.0.0.1 localhost
127.0.1.1 mydomain.com statusnet

#Required for IPv6 capable hosts
...

Where mydomain.com is added on line 2.

With the update the apache warning message goes away (both on the command line and in /var/log/apache2/error.log). Assuming this is the correct way to handle the problem, does it make sense for mydomain.com to be automatically set when the appliance is initially setup?

Jeremy's picture

Perhaps but it's not an issue to leave as is...

And as you've seen it's easy to fix if you want to.

flexbean's picture

I'm open to giving it a go

How would I go about making an update to the current status.net appliance install script so the fix could go out with the next release of the appliance?


Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)