#1  
Old 25th September 2006, 01:10
innerspace innerspace is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default LAMP Hostname problem

First off I'm new to howtoforge and am very impressed with the community!

I used http://www.howtoforge.com/perfect_setup_ubuntu_6.06 to setup a LAMP server on an old Optiplex and was pleased as punch with the instructions.

I'm a n00b when it comes to Linux but the tutorial helped me get my system up and running quickly. Unfortunately, I broke the system shortly thereafter (read *n00b!) and decided to reinstall. I upgraded my system drive to one with greater capacity and proceeded to reinstall the OS.

Everything was going fine until I edited /etc/hosts

hostname returns only my localhost (for example foo)
hostname -f returns as expected localhost.localdomain.org (for example foo.bar.org

my hosts file looks like this:

127.0.0.1 localhost.localdomain localhost
192.168.0.X foo.bar.org foo

::1 ip6-localhost ip6-loopback

etc...etc..

What am I doing wrong?

Thanks in advance for any and all suggestions.
Reply With Quote
Sponsored Links
  #2  
Old 25th September 2006, 11:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

What is the problem you encounter with the hostname?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th September 2006, 17:43
innerspace innerspace is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As I understand hostname, and as the guide I referenced states, both commands should yield the same result from terminal, ie both hostname and hostname -f should output foo.bar.org.

My output doesn't match (see above).
Reply With Quote
  #4  
Old 26th September 2006, 18:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by innerspace
Everything was going fine until I edited /etc/hosts

hostname returns only my localhost (for example foo)
hostname -f returns as expected localhost.localdomain.org (for example foo.bar.org
That's ok, you can go on with the tutorial.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 26th September 2006, 23:36
innerspace innerspace is offline
Junior Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs up mysql threw an error too

Thanks for the replies guys.

well I did go on with the tutorial and after installing mysql I set the root password for MySql ok for localhost but when trying to set the password for foo.bar.org it responds with "can't connect to foo.bar.org:xxxx.

Are these problems related?
Reply With Quote
  #6  
Old 27th September 2006, 22:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
 
Default

Have a look here: http://www.howtoforge.com/forums/sho...r1.example.com
http://www.howtoforge.com/forums/sho...r1.example.com
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 18:58
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 13:20
Changing servers hostname rbartz Installation/Configuration 3 16th September 2006 14:54
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 17:06
What should hostname be? Lil'Brudder General 2 19th October 2005 11:08


All times are GMT +2. The time now is 07:46.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.