LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-24-2007, 11:35 PM   #1
grob115
Member
 
Registered: Oct 2005
Posts: 542

Rep: Reputation: 32
Why apache doesn't serve pages when it's running


Hello,

Just wondering why my Apache wasn't serving pages when the system says "httpd (pid 7302) is running...". The following is a snippet of what I entered into the system:

[root@vps ~]# service httpd status
httpd (pid 7302) is running...
[root@vps ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@vps 2007.02]# service httpd status
httpd (pid 13328 13327 13325 12254 12253 12252 12251 12250 12249 12248 12247 12243) is running...
 
Old 02-25-2007, 12:03 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Did you remember to open the firewall port(s)?
 
Old 02-25-2007, 07:37 AM   #3
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
Please explain... how does it have to do with firewall ports...
 
Old 02-25-2007, 10:48 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
A web server transfers data over network ports (by default, ports 80 and 443). In order for you to connect, the firewall must allow data to pass on those ports.
 
Old 02-25-2007, 06:09 PM   #5
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
I see. It should be opened and set properly. What I actually was saying is that Apache wasn't serving pages before I restarted it even though it says "httpd (pid 7302) is running..."

It's serving pages only when it says "httpd (pid 13328 13327 13325 12254 12253 12252 12251 12250 12249 12248 12247 12243) is running..." Why are there so many processes?
 
Old 02-25-2007, 06:26 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The number of servers is defined in your httpd.conf file. This allows Apache to service multiple concurrent requests, and to distribute workload over multiple CPUs (if available).
 
Old 02-25-2007, 08:19 PM   #7
grob115
Member
 
Registered: Oct 2005
Posts: 542

Original Poster
Rep: Reputation: 32
Ah I see. So what does it mean when there's only one process ID running and it is not serving pages. What type of problems can cause this?
 
Old 02-25-2007, 08:32 PM   #8
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Check '/var/log/http/error.log' for messages.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
NVIDIA DRIVER ERROR: You appear to be running an X serve snakt Linux - Newbie 8 10-01-2005 11:49 AM
apache won't serve pages gvaught Linux - Networking 6 12-08-2004 09:37 PM
apache just won't serve flash.. help ! Mandangelo Programming 6 06-23-2004 06:56 AM
Using Squid and Apache in order to better serve pages xbaez Linux - Networking 2 04-07-2004 05:26 PM
Squid Proxy starts, but will not serve pages Kaniaz Linux - Software 5 03-29-2004 11:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration