LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache won't start (https://www.linuxquestions.org/questions/linux-software-2/apache-wont-start-67630/)

FNC 06-24-2003 12:55 AM

Apache won't start
 
Hi, I just installed redhat8, minimal installed and then installed apache. The problem is apache won't start.
When i run "apachectl start" it looks like it start but it does not. There is no httpd pid running. I don't get any error messages.

Any ideas?

Evilone 06-24-2003 02:23 AM

yeah , log files...

Look under /var/log/messages or if not one of the apache logfiles.
These could be in a number of places depending on your distro, not sure about Mandrake.

FNC 06-24-2003 02:30 AM

This is what I got in error_log

[Tue Jun 24 08:24:27 2003] [alert] (22002)Name or service not known: mod_unique_id: unable to find IPv4 address of "localhost"
Configuration Failed

What does it mean?

FNC 06-24-2003 02:52 AM

Ok, I got it working.

There was a problem in "/etc/hosts"

Thanks for the help.

MasterC 06-24-2003 02:55 AM

Did you edit/modify your httpd.conf file at all? You'll need to tailor it to your needs, such as your IP that your serving files from.

There is a great guide to that on apache's site:
www.apache.org
However if you get lost (or if you have already done this) post back with any questions you have about it.

As I see it, apache is looking for your IP, but you've supplied localhost instead.

Cool

Evilone 06-24-2003 03:04 AM

logfiles usually hold the key.. Nice work FNC

FNC 06-24-2003 03:17 AM

Ok, I now have a little different problem, maybe you can help.

This Linux box is on a win2000 domain. I can ping the ip from any pc, but not the pcname. From the linux box i can ping any pc by it's pc name. Where would I bind the linux pc name to it's IP?
Do I need to configure it on the DNS on WINS server?

MasterC 06-24-2003 03:38 AM

You were there:
/etc/hosts

You can set it up as:
1.2.3.4 linux-fire

Assuming IP 1.2.3.4 and linux-fire are the IP and name of the box.

Cool

Evilone 06-25-2003 02:37 AM

If your part of a larger company domain, then yes, you will need to add the IP and name to the domains DNS server. I'm assuming your using the DNS servers IP as your DNS lookup server. My setup here is the same, and any new linux box, as well as editing /etc/hosts i have to add it to the main DNS box.

FNC 06-25-2003 02:50 AM

Thanks, thats what i thought


All times are GMT -5. The time now is 05:55 AM.