LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 02-07-2005, 03:52 AM   #1
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Rep: Reputation: 15
howto map localhost correctly?


"Also, if your $dbhost is "localhost", try it as "127.0.0.1". If your host doesn't have localhost mapped correctly for whatever stupid reason, this may cause a problem."

THis from another forum, answered and fixed another problem I was having.. however; I would rather have localhost mapped correctly..

so how do I do this on my fedora3 server?
 
Old 02-07-2005, 04:04 AM   #2
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
first things first...type ifconfig and see if its mapped at all.
 
Old 02-07-2005, 11:36 AM   #3
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
[root@server ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:95:49:F0:66
inet addr:192.168.0.10 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::207:95ff:fe49:f066/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:757775 errors:0 dropped:0 overruns:0 frame:0
TX packets:726062 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:192938222 (184.0 MiB) TX bytes:728276944 (694.5 MiB)
Interrupt:11 Base address:0xd400

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7462 errors:0 dropped:0 overruns:0 frame:0
TX packets:7462 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3582003 (3.4 MiB) TX bytes:3582003 (3.4 MiB)

[root@server ~]#

I guess not? ?
 
Old 02-07-2005, 01:52 PM   #4
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
why u guess so?
 
Old 02-07-2005, 02:29 PM   #5
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
dude this is a help forum, I would appreciate if you keep beligerant comments to yourself.

some people 'are' trying to help around here.

anyways, this morning I tested out a cpgnuke install that I had done on my server, which only happend with sucess because of the 127.0.0.1 and then today, I was unable to connect to database, so I fumbled with it a bit more and for sum reason the only way to connect is to now use the 192.168.0.10 internal ip address... hmm, this really got me stumped.

Last edited by computerdaves; 02-07-2005 at 02:31 PM.
 
Old 02-07-2005, 03:15 PM   #6
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
Red face

You are obviously missing the point here, coz I'm asking why you think it's not mapped?
 
Old 02-08-2005, 01:42 AM   #7
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
computerdaves> lookback is running on your computer as is indicated by your ifconfig. ping it..

ping 127.0.0.1
 
Old 02-08-2005, 02:36 AM   #8
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
so why is my server complaining about no connect to sql, and I have to change config to 192.168.0.10 and then visa versa to 127.0.0.1 the next day?

am I making my sql user permisions wrong?
 
Old 02-08-2005, 02:39 AM   #9
Frustin
Member
 
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512

Rep: Reputation: 30
elaborate on having to change the config.

You say its "complaining" so that would indicate there is some messages, post them here.
 
Old 02-08-2005, 12:42 PM   #10
computerdaves
LQ Newbie
 
Registered: Jan 2005
Location: canada
Posts: 23

Original Poster
Rep: Reputation: 15
yup can not connect to sql data base, the program I am using is irrelavant.

So after hearing what you had said, and pulling off another forum about not having localhost mapped properly, I changed my localhost call for my sql data base to 127.0.0.1, then it started to work for the first time in .... a long time.

Next day it broke again and I changed it to localhost, didn't work, then changed my config to 192.168.0.10 and it worked again.
 
Old 02-08-2005, 03:54 PM   #11
johnnydangerous
Member
 
Registered: Jan 2005
Location: Sofia, Bulgaria
Distribution: Fedora Core 4 Rawhide
Posts: 431

Rep: Reputation: 30
maybe u have to examine hosts file? and are u using the number or the alias in the software?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SYSERR(root): hash map "generics": missing map file /etc/mail/genericstable.db? singying304 Linux - Networking 4 02-28-2005 06:49 AM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
howto map mouse button to keyboard key lopette Linux - Software 2 09-16-2004 03:18 PM
howto mirror a man page correctly bronko Linux - Newbie 2 03-15-2004 10:05 AM
Howto group map in Samba 2.2.x rizza Linux - Networking 0 01-23-2004 05:30 AM


All times are GMT -5. The time now is 05:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration