You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Hiep Nguyen <hi...@ee.ucr.edu> on 2008/03/04 16:40:50 UTC

[users@httpd] httpd process

hi all,

i just installed apache on centos 5 and have it automatically start up 
when boot:

chkconfig httpd on

[root@dev ~]# ps aux | grep httpd
root      2375  0.0  3.8  26412  9932 ?        Ss   08:02   0:00 
/usr/sbin/httpd
apache    2405  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
apache    2406  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
apache    2407  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
apache    2408  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
apache    2409  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
apache    2410  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
apache    2411  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
apache    2412  0.0  1.9  26548  4972 ?        S    08:02   0:00 
/usr/sbin/httpd
root      2892  0.0  0.2   3896   688 pts/0    S+   10:34   0:00 grep 
httpd

why do i have so many httpd services running?

i can't access to it (http://10.0.0.160), how do i troubleshoot this 
problem?

less /etc/httpd/logs/access_log is empty.
less /etc/httpd/logs/error_log and i got:
[Mon Mar 03 13:30:03 2008] [notice] SELinux policy enabled; httpd running 
as context root:system_r:httpd_
t:s0
[Mon Mar 03 13:30:03 2008] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec)
[Mon Mar 03 13:30:04 2008] [notice] Digest: generating secret for digest 
authentication ...
[Mon Mar 03 13:30:04 2008] [notice] Digest: done
[Mon Mar 03 13:30:04 2008] [notice] mod_python: Creating 4 session mutexes 
based on 256 max processes and
  0 max threads.
[Mon Mar 03 13:30:05 2008] [notice] Apache/2.2.3 (CentOS) configured -- 
resuming normal operations
[Tue Mar 04 08:00:38 2008] [notice] caught SIGTERM, shutting down
[Tue Mar 04 08:02:51 2008] [notice] SELinux policy enabled; httpd running 
as context system_u:system_r:ht
tpd_t:s0
[Tue Mar 04 08:02:51 2008] [notice] suEXEC mechanism enabled (wrapper: 
/usr/sbin/suexec)
[Tue Mar 04 08:02:52 2008] [notice] Digest: generating secret for digest 
authentication ...
[Tue Mar 04 08:02:52 2008] [notice] Digest: done
[Tue Mar 04 08:02:53 2008] [notice] mod_python: Creating 4 session mutexes 
based on 256 max processes and
  0 max threads.
[Tue Mar 04 08:02:53 2008] [notice] Apache/2.2.3 (CentOS) configured -- 
resuming normal operations

anything i have done wrong???

thanks,
t. hiep




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Hiep Nguyen <hi...@ee.ucr.edu>.
On Tue, 4 Mar 2008, Joshua Slive wrote:

> On Tue, Mar 4, 2008 at 1:59 PM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>>
>> On Tue, 4 Mar 2008, Joshua Slive wrote:
>>
>> > On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>> >> On Tue, 4 Mar 2008, Joshua Slive wrote:
>> >>
>> >>> On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>> >>>> hi all,
>> >>>>
>> >>>>  i just installed apache on centos 5 and have it automatically start up
>> >>>>  when boot:
>> >>>
>> >>>>  why do i have so many httpd services running?
>> >>>
>> >>> This is entirely normal. See:
>> >>> http://httpd.apache.org/docs/2.2/mod/prefork.html
>> >>>
>> >>>>  i can't access to it (http://10.0.0.160), how do i troubleshoot this
>> >>>>  problem?
>> >>>
>> >>> What happens when you try to access that URL?
>> >>  The page cannot be displayed
>> >
>> > What is the exact text that appears in the browser? (I'm guessing it
>> > is the standard network failure error message, but I want be sure.)
>> >
>> >>
>> >>
>> >>  <Where are you accessing
>> >>> it from? What happens if you try to access http://127.0.0.1/ from the
>> >>> server? What does the Listen directive in httpd.conf look like?
>> >>>
>> >>
>> >>  i don't have x windows install, but i'll install lynx to test.  i haven't
>> >>  change anything in httpd.conf yet.  i'll into next.  any advice what i
>> >>  should change???
>> >
>> > The most likely explanations for not being able to access a running
>> > server have nothing to do with apache configuration. I would check the
>> > Listen directive just to be sure. But the problem is more likely to
>> > lie with your firewall (either internal to linux or a separate network
>> > firewall) or with other network configuration settings.
>> >
>>  i disabled SELinux, but still not working. there is no firewall between
>>  10.0.0.160 & 10.0.0.128.
>>
>>  Listen 80
>>
>>  so, what might be wrong???
>
> Again, you need to check from the local machine. If you don't have a
> browser, you can do
> telnet 127.0.0.1 80
> GET / HTTP/1.0
> then press enter twice.
>
> If that works, it confirms it is a network problem and not an apache
> config problem.

got it. thanks.
t. hiep

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, Mar 4, 2008 at 1:59 PM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>
> On Tue, 4 Mar 2008, Joshua Slive wrote:
>
>  > On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>  >> On Tue, 4 Mar 2008, Joshua Slive wrote:
>  >>
>  >> > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>  >> >> hi all,
>  >> >>
>  >> >>  i just installed apache on centos 5 and have it automatically start up
>  >> >>  when boot:
>  >> >
>  >> >>  why do i have so many httpd services running?
>  >> >
>  >> > This is entirely normal. See:
>  >> > http://httpd.apache.org/docs/2.2/mod/prefork.html
>  >> >
>  >> >>  i can't access to it (http://10.0.0.160), how do i troubleshoot this
>  >> >>  problem?
>  >> >
>  >> > What happens when you try to access that URL?
>  >>  The page cannot be displayed
>  >
>  > What is the exact text that appears in the browser? (I'm guessing it
>  > is the standard network failure error message, but I want be sure.)
>  >
>  >>
>  >>
>  >>  <Where are you accessing
>  >> > it from? What happens if you try to access http://127.0.0.1/ from the
>  >> > server? What does the Listen directive in httpd.conf look like?
>  >> >
>  >>
>  >>  i don't have x windows install, but i'll install lynx to test.  i haven't
>  >>  change anything in httpd.conf yet.  i'll into next.  any advice what i
>  >>  should change???
>  >
>  > The most likely explanations for not being able to access a running
>  > server have nothing to do with apache configuration. I would check the
>  > Listen directive just to be sure. But the problem is more likely to
>  > lie with your firewall (either internal to linux or a separate network
>  > firewall) or with other network configuration settings.
>  >
>  i disabled SELinux, but still not working. there is no firewall between
>  10.0.0.160 & 10.0.0.128.
>
>  Listen 80
>
>  so, what might be wrong???

Again, you need to check from the local machine. If you don't have a
browser, you can do
telnet 127.0.0.1 80
GET / HTTP/1.0
then press enter twice.

If that works, it confirms it is a network problem and not an apache
config problem.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Hiep Nguyen <hi...@ee.ucr.edu>.
On Tue, 4 Mar 2008, Joshua Slive wrote:

> On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>> On Tue, 4 Mar 2008, Joshua Slive wrote:
>>
>> > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>> >> hi all,
>> >>
>> >>  i just installed apache on centos 5 and have it automatically start up
>> >>  when boot:
>> >
>> >>  why do i have so many httpd services running?
>> >
>> > This is entirely normal. See:
>> > http://httpd.apache.org/docs/2.2/mod/prefork.html
>> >
>> >>  i can't access to it (http://10.0.0.160), how do i troubleshoot this
>> >>  problem?
>> >
>> > What happens when you try to access that URL?
>>  The page cannot be displayed
>
> What is the exact text that appears in the browser? (I'm guessing it
> is the standard network failure error message, but I want be sure.)
>
>>
>>
>>  <Where are you accessing
>> > it from? What happens if you try to access http://127.0.0.1/ from the
>> > server? What does the Listen directive in httpd.conf look like?
>> >
>>
>>  i don't have x windows install, but i'll install lynx to test.  i haven't
>>  change anything in httpd.conf yet.  i'll into next.  any advice what i
>>  should change???
>
> The most likely explanations for not being able to access a running
> server have nothing to do with apache configuration. I would check the
> Listen directive just to be sure. But the problem is more likely to
> lie with your firewall (either internal to linux or a separate network
> firewall) or with other network configuration settings.
>
i disabled SELinux, but still not working. there is no firewall between 
10.0.0.160 & 10.0.0.128.

Listen 80

so, what might be wrong???

[root@dev www]# ls -all /var/www/
total 64
drwxr-xr-x  8 root      root 4096 Mar  3 11:44 .
drwxr-xr-x 21 root      root 4096 Mar  3 11:44 ..
drwxr-xr-x  2 root      root 4096 Jan 15 20:36 cgi-bin
drwxr-xr-x  3 root      root 4096 Mar  3 11:43 error
drwxr-xr-x  2 root      root 4096 Jan 15 20:36 html
drwxr-xr-x  3 root      root 4096 Mar  3 11:44 icons
drwxr-xr-x 14 root      root 4096 Mar  3 11:44 manual
drwxr-xr-x  2 webalizer root 4096 Mar  3 11:44 usage

should i change wwww to apache???

t. hiep

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, Mar 4, 2008 at 11:15 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:

>  i found the problem in /etc/httpd/conf/httpd.conf
>
>  #ServerName www.example.com:80
>
>  should be:
>  ServerName 10.0.0.160:80
>  ServerName dev.jss.com:80

No, that wasn't your problem. When "UseCanonicalName off" is set
(which is typically the default) ServerName doesn't do anything. And
even when it does something, it wouldn't prevent you from connecting
to the server.

>
>  however, i just overwhelming with so many directives in this file.  any
>  advice on how to understand one by one.  it's just so much i don't know
>  where to start.  i assume the link at the very beginning of the file is
>  place to start.
>
>  i'm kinda newbie on this stuff.  i'm setup this box for development, but
>  will duplicate this box for production later on.

If you are completely lost, you should consider buying a book to get started:
http://opensource.atlassian.com/confluence/oss/display/BOOKS/Books+on+Apache+HTTP+Server+%28httpd%29

But if you want to go at it yourself, it's not a bad idea to go
through each directive in httpd.conf and look it up in the list here:
http://httpd.apache.org/docs/2.2/mod/directives.html
to figure out what it does.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Hiep Nguyen <hi...@ee.ucr.edu>.
On Tue, 4 Mar 2008, Joshua Slive wrote:

> On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>> On Tue, 4 Mar 2008, Joshua Slive wrote:
>>
>> > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>> >> hi all,
>> >>
>> >>  i just installed apache on centos 5 and have it automatically start up
>> >>  when boot:
>> >
>> >>  why do i have so many httpd services running?
>> >
>> > This is entirely normal. See:
>> > http://httpd.apache.org/docs/2.2/mod/prefork.html
>> >
>> >>  i can't access to it (http://10.0.0.160), how do i troubleshoot this
>> >>  problem?
>> >
>> > What happens when you try to access that URL?
>>  The page cannot be displayed
>
> What is the exact text that appears in the browser? (I'm guessing it
> is the standard network failure error message, but I want be sure.)
>
>>
>>
>>  <Where are you accessing
>> > it from? What happens if you try to access http://127.0.0.1/ from the
>> > server? What does the Listen directive in httpd.conf look like?
>> >
>>
>>  i don't have x windows install, but i'll install lynx to test.  i haven't
>>  change anything in httpd.conf yet.  i'll into next.  any advice what i
>>  should change???
>
> The most likely explanations for not being able to access a running
> server have nothing to do with apache configuration. I would check the
> Listen directive just to be sure. But the problem is more likely to
> lie with your firewall (either internal to linux or a separate network
> firewall) or with other network configuration settings.
>
i found the problem in /etc/httpd/conf/httpd.conf

#ServerName www.example.com:80

should be:
ServerName 10.0.0.160:80
ServerName dev.jss.com:80

however, i just overwhelming with so many directives in this file.  any 
advice on how to understand one by one.  it's just so much i don't know 
where to start.  i assume the link at the very beginning of the file is 
place to start.

i'm kinda newbie on this stuff.  i'm setup this box for development, but 
will duplicate this box for production later on.

t. hiep

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, Mar 4, 2008 at 10:58 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
> On Tue, 4 Mar 2008, Joshua Slive wrote:
>
>  > On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>  >> hi all,
>  >>
>  >>  i just installed apache on centos 5 and have it automatically start up
>  >>  when boot:
>  >
>  >>  why do i have so many httpd services running?
>  >
>  > This is entirely normal. See:
>  > http://httpd.apache.org/docs/2.2/mod/prefork.html
>  >
>  >>  i can't access to it (http://10.0.0.160), how do i troubleshoot this
>  >>  problem?
>  >
>  > What happens when you try to access that URL?
>  The page cannot be displayed

What is the exact text that appears in the browser? (I'm guessing it
is the standard network failure error message, but I want be sure.)

>
>
>  <Where are you accessing
>  > it from? What happens if you try to access http://127.0.0.1/ from the
>  > server? What does the Listen directive in httpd.conf look like?
>  >
>
>  i don't have x windows install, but i'll install lynx to test.  i haven't
>  change anything in httpd.conf yet.  i'll into next.  any advice what i
>  should change???

The most likely explanations for not being able to access a running
server have nothing to do with apache configuration. I would check the
Listen directive just to be sure. But the problem is more likely to
lie with your firewall (either internal to linux or a separate network
firewall) or with other network configuration settings.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Hiep Nguyen <hi...@ee.ucr.edu>.
On Tue, 4 Mar 2008, Joshua Slive wrote:

> On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
>> hi all,
>>
>>  i just installed apache on centos 5 and have it automatically start up
>>  when boot:
>
>>  why do i have so many httpd services running?
>
> This is entirely normal. See:
> http://httpd.apache.org/docs/2.2/mod/prefork.html
>
>>  i can't access to it (http://10.0.0.160), how do i troubleshoot this
>>  problem?
>
> What happens when you try to access that URL?
The page cannot be displayed

<Where are you accessing
> it from? What happens if you try to access http://127.0.0.1/ from the
> server? What does the Listen directive in httpd.conf look like?
>

i don't have x windows install, but i'll install lynx to test.  i haven't 
change anything in httpd.conf yet.  i'll into next.  any advice what i 
should change???

thanks,
t. hiep

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd process

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, Mar 4, 2008 at 10:40 AM, Hiep Nguyen <hi...@ee.ucr.edu> wrote:
> hi all,
>
>  i just installed apache on centos 5 and have it automatically start up
>  when boot:

>  why do i have so many httpd services running?

This is entirely normal. See:
http://httpd.apache.org/docs/2.2/mod/prefork.html

>  i can't access to it (http://10.0.0.160), how do i troubleshoot this
>  problem?

What happens when you try to access that URL? Where are you accessing
it from? What happens if you try to access http://127.0.0.1/ from the
server? What does the Listen directive in httpd.conf look like?

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org