Can't start Apache

Longman, Bill yellowdog-newbie@lists.terrasoftsolutions.com
Mon, 4 Aug 2003 12:28:14 -0700


> > Is httpd running?
> > 
> > ps -ef | grep httpd
> > 
> > should show you.
> 
> Thank you for your reply!
> 
> Yes, it is running.

What does it show here? It's hard to see how httpd could be running....

> > If it is running,
> > 
> > nmap localhost
> > 
> > will tell you which ports are running on localhost. If 
> there's nothing on
> > port 80, there's another problem. If you see any "filtered" 
> ports, then your
> > firewall is the culprit.
> 
> Here is what that command gives me...

....but down here it is NOT running.
 
> Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
> Interesting ports on localhost.localdomain (127.0.0.1):
> (The 1593 ports scanned but not shown below are in state: closed)
> Port       State       Service
> 22/tcp     open        ssh
> 25/tcp     open        smtp
> 111/tcp    open        sunrpc
> 631/tcp    open        ipp
> 879/tcp    open        unknown
> 3306/tcp   open        mysql
> 6000/tcp   open        X11
> 10000/tcp  open        snet-sensor-mgmt
> 
> 
> When I go to  YDL menu->System Settings->Server 
> Settings->HTTP Server  it
> tells me that it is listening to 80, but obviously it isn't.
> 

Exactly. I can tell you have ssh, mail, cups, mysql and webmin running from
this.

You might want to try

service httpd restart

to see if it is a problem with a lock file. [not likely, but possible]

> > If you installed Everything, it might be your firewall 
> software. Shut that
> > down if you installed it. Once it's down,
> > 
> > iptables --list [run this as root].
> > 
> > Should just say policy ACCEPT for input, forward and output.
> > 
> > If it's not running, you should, check your config file
> > [/etc/httpd/conf/httpd.conf]. You should have
> > 
> > Listen 80
> > 
> > somewhere in that file.
> 
> 
> Yes, httpd.conf does say "Listen *:80"

I've never seen *:80, but I'm no apache pro. I'd take out the star colon and
just put 80 there and see how that flies.

Take a look through /var/log/httpd/error_log and see if it's telling you
something we're missing.

Bill