nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Fedora httpd not working

This is a discussion on Fedora httpd not working within the Web servers forums, part of the Mastering Servers category; Hi, I'm a newby so forgive me if this is an absolute dumb question. I just installed fedora core 8 ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 28-08-2008, 11:08 PM
Junior Member
User
 
Join Date: Aug 2008
OS: Fedora8
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
connecties is on a distinguished road
Unhappy Fedora httpd not working

Hi,

I'm a newby so forgive me if this is an absolute dumb question.

I just installed fedora core 8 (also tried 9 with same result)
with the webserver package enabled.

When I first start linux httpd is NOT running although I am in runlevel 3 and there is a Sxxhttpd in the rc3.d directory.

After starting httpd manually with /etc/rc.d/init.d/httpd start I get an [OK].

ps aux | grep http results in:
root 2695 0.1 1.0 27096 10560 ? Ss 16:09 0:01 /usr/sbin/httpd
apache 2697 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd
apache 2698 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd
apache 2699 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd
apache 2700 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd
apache 2701 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd
apache 2702 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd
apache 2703 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd
apache 2704 0.0 0.5 27096 5328 ? S 16:09 0:00 /usr/sbin/httpd

If I do : netstat -tulpn | grep 80 I get:

tcp 0 0 10.0.1.80:80 0.0.0.0:* LISTEN 2695/httpd

I created in the web root (/var/www/html) a simple webpage:
<html><body>hi</body></html>

If I run lynx on the server itself with:
lynx localhost

I get:
Unable to connect to remote host

Also connecting from another computer does not work.
ponting a browser to <ipaddress> results in "Unable to reach host"

I can ping the server, I can ssh to the server.

So what am I missing?

Kind regards,
Werner
Reply With Quote
  #2 (permalink)  
Old 29-08-2008, 01:23 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Hi,

May be firewall is blocking port 80, enter following to disable firewall for testing purpose:
Code:
service iptables stop
lynx localhost
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
  #3 (permalink)  
Old 29-08-2008, 10:35 AM
Junior Member
User
 
Join Date: Aug 2008
OS: Fedora8
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
connecties is on a distinguished road
Smile Yesss. Thank you thank you thank you

That did it.

How could I have forgotten this.

Thank you very much.
My server is already behind a firewall so I completely disabled the firewall.

lynx localhost didn't work but from an external machine I do get a nice webpage.

Regards,
Werner
Reply With Quote
Reply

Tags
apache , fedora , firewall , httpd redhat connect problems newby , iptables


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
httpd.conf deleted! How to re-generate? Any Scripts? vivekv Shell scripting 1 17-07-2008 05:13 PM
httpd.conf deleted! How to re-generate? vivekv Getting started tutorials 2 17-01-2008 03:45 PM
httpd process vimalgoel Getting started tutorials 1 08-10-2007 12:40 AM
HTTPD dead but subsys locked surmandal Web servers 10 31-07-2007 08:53 AM
logwatch httpd kavi2 Linux software 3 22-09-2005 09:28 PM


All times are GMT +5.5. The time now is 06:53 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38