Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting apache 2.2.8 server = no errors but does nothing

Status
Not open for further replies.

clemcrock

Programmer
Dec 17, 2006
63
US
Hello,
I've installed apache 2.2.8 on Ubuntu and I have gotten as far as setting httpd.conf up as far as it won't throw any errors when I do a sudo httpd -k start.

The only thing, is that when I run sudo httpd -k start, nothing happens.

Where is the first place one would look to diagnose this?

Thanks,
Clem C
 
What do you have defined as ServerRoot? ErrorLog,
I would also use:

CustomLog PATHTOACCESSLOG combined

We need the accesslog output to debug this.

eugene
 
Stop your http server using apachectl stop.
Make sure you see httpd process die using ps.
Start httpd using apachectl start.
make sure httpd is running.
make sure port is bound (netstat -an | grep LIST | grep 80)
check log file to see start message.

It probably bound to localhost port 80.

see if telnet connects
like
telnet localhost 80
get /index.html

eugene
 
Here's my ServerRoot:

ServerRoot "/etc/httpd-2.2.8/"

The only ErrorLog I have defined is:

Code:
<VirtualHost *:80>
   DocumentRoot "/[URL unfurl="true"]www/vhosts/ehermann"[/URL]
   ServerName [URL unfurl="true"]www.ehermann.com[/URL]
   ServerAlias [URL unfurl="true"]www.e-hermann.com[/URL]
   ErrorLog logs/error_log
      <Directory "/[URL unfurl="true"]www/vhosts/ehermann">[/URL]
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
      </Directory>
</VirtualHost>
 
So is CustomLog defined?

I like:

CustomLog logs/access_log combined

Use apachectl to stop/start

make sure the output is going to logs/access_log

eugene


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top