You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/09/23 13:20:19 UTC

DO NOT REPLY [Bug 45863] New: (98)Address already in use: make_sock: could not bind to address [::]:80

https://issues.apache.org/bugzilla/show_bug.cgi?id=45863

           Summary: (98)Address already in use: make_sock: could not bind to
                    address [::]:80
           Product: Apache httpd-2
           Version: 2.2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P1
         Component: All
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: apache2@mob.com


Source install of Apache 2.2.9 on RHEL 5 (Redhat Enterprise Linux 5) will not
start and is giving the following error:

(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Searching the net, this problem seems to be widespread (over 7,500 results),
with none of the reviewed threads having a solution.

We were able to pin down the problem - it is caused by the following global
environment variable in httpd.conf:

PidFile run/httpd.pid

Commenting out this line is a quick fix to solve this problem.

As there is no mention of pidfile in the error message, and as it is happening
in the default install of the most widely used Linux Server OS (RHEL5), this
can be a major headache for many installers of the latest Apache.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


MOB.COM <ap...@mob.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




--- Comment #10 from MOB.COM <ap...@mob.com>  2008-09-23 15:35:32 PST ---
(In reply to comment #9)
> Note that this is neither a user support forum, nor bugzilla @redhat.com.
> 
> If there is a server already running or any of a host of issues applies,
> such as failing to uninstall RedHat provisioned httpd, you need to consult
> with your peers at the users list.  This issue tracker is for bugs in the
> ASF httpd project source code, docs etc.
> 
> RedHat uses a proprietary layout, not the ASF httpd project layout, so any
> issues with how RHEL resources are laid out is a RH issue.
> 

Noted. 

Note that this is not a Redhat only problem. There are over 1,000 search
results for all major Linux distros related to users getting this error, 
yet there was nothing on it in ASF Bugzilla, so for starters, hopefully this
thread will provide a solution for anyone looking for info here in future.

And it can not be expected for users to know that the most widely used Linux
server distros - Redhat, CentOS, Fedora, use a proprietary layout, and not the
ASF httpd project layout.

In fact, Ubuntu, Debian, and Solaris servers also use /var/run/httpd.pid for
default Pidfile path, and not the ASF httpd project layout.

So this can be a very common problem across ALL major Linux distros, that is
confusing and time consuming to debug and fix for new users.

Would like to recommend simple improvements in how Apache handles it:

a) Immediately displaying users the error when they try to start the server:
e.g. "could not log pid to file /etc/httpd/run/httpd.pid"

Reason: Currently it only logs one instance of the above error into error_log
(at best case scenario) on the first attempt to start the server, following
attempts display the binding error, which new user will assume is the problem.

b) Informing users of ASF httpd project layout's default Pidfile path in the
httpd.conf

Reason: As noted above ALL major Linux distros - Redhat, CentOS, Fedora,
Ubuntu, Debian, Solaris use a default layout that is not the ASF httpd project
layout. So users who searched this ASF Bugzilla (pre this ticket), did not find
anything, after which they most likely searched the manuals and user support
forums of their distros, which all provided them with a Pidfile path that was
not of the ASF httpd project layout.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


MOB.COM <ap...@mob.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #5 from MOB.COM <ap...@mob.com>  2008-09-23 06:53:10 PST ---
1. When no httpd processes are running and attempt is made to start httpd,
nothing happens, no error messages.

2. When httpd process is running and try to start/restart, gives binding error.

Source of the problem is that pidfile line is uncommented by default and no
pidfile is created.


Apache looks for the pidfile in "/etc/httpd/run/httpd.pid" or whatever the
ServerRoot is set to by the user. There is no "run" directory created into the
ServerRoot by the Apache 2.2.9 source install.

Possible Solution:
If Apache is not able to create pidfile into $ServerRoot/run/ due to "run"
directory not existing, then if this is the default location for Pidfiles,
Apache should create the run directory also during install, or add another
default Pidfile location into the httpd.conf if this is not the default
location.

Vendor Specific factor:
This depends whether RHEL5 is the only OS that sets Pidfile location in
httpd.conf files to "PidFile run/httpd.pid" by default.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #12 from MOB.COM <ap...@mob.com>  2008-09-23 18:43:45 PST ---
(In reply to comment #11)
> > So this can be a very common problem across ALL major Linux distros, that is
> > confusing and time consuming to debug and fix for new users.
> 
> When I configure an invalid PidFile in 2.2.8, a message is logged to the
> errorlog and Apache exits.  mod_cgi's cgid daemon was left stranded, but it did
> not keep listening ports open.   I
> 

in 2.2.9 it keeps listening ports open.


> What makes you think it's common for people to have invalid PidFiles
> configured, whether they come from a vendor or are compiled and configured by
> users?   

Most people import their vendor httpd.conf over to the source installation
rather than re-typing everything manually.


> I posit that it's a very slim minority of "listening port..." errors
> that are a result of some mismanagement of the pidfile.
> 

I can not argue how popular this problem is, but I do think it is a complicated
problem to solve for users who are new to building Apache from source and can
give a negative first impression about Apache.

Imho. the user-friendliest solution would be to have Apache try the ASF layout
Pidfile path if the vendor path set in httpd.conf does not work and notify the
user of the problem.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


MOB.COM <ap...@mob.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




--- Comment #14 from MOB.COM <ap...@mob.com>  2008-09-24 08:52:53 PST ---
(In reply to comment #13)
> If you are enough of an asshole to reopen this bug again, I'll be an equivalent
> asshole and veto all changes which improve your situation on RH; the only delta
> being that I have the karma to do so.  Comprende?
> 

I know better than to start arguing with someone of your level of
professionalism, magical veto powers, and spelling skills... as the saying goes
- Never argue with idiots. They'll drag you down to their level, then beat you
with experience.

I do not have a situation on RH, so there are no changes You can veto. 

I started duplicating the error and opened this thread from goodwill and cannot
believe, You are calling people assholes, for wanting improve Apache and get
bugs fixed.

> "There are over 1,000 search results"
> 
> YOUR error message indicates a program is already sering traffic on ports 80
> and 443 which mean you are already running a webserver.  Well DUH - of course
> their are thousands of reports!  There are thousands of users who didn't know
> they were running a webserver.
> 
> Take this to a user list, issue closed.
> 

Why do you think there are over 10,000 users who didn't know they were running
a web server and posted about it one the web? From the threads I read, users
initially and logically assume there is a misconfiguration in their httpd.conf,
not that another instance of Apache is already running.

Issue is the way Apache handles this, it takes focus away from the root of the
problem (pidfile) and puts focus on the resulting problem (could not bind). 

Will, You said You will use your karma to veto all changes that improve the
situation (wow!), so You admitted there is a situation that should be improved!


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #11 from Eric Covener <co...@gmail.com>  2008-09-23 17:20:18 PST ---
> So this can be a very common problem across ALL major Linux distros, that is
> confusing and time consuming to debug and fix for new users.

When I configure an invalid PidFile in 2.2.8, a message is logged to the
errorlog and Apache exits.  mod_cgi's cgid daemon was left stranded, but it did
not keep listening ports open.   I

What makes you think it's common for people to have invalid PidFiles
configured, whether they come from a vendor or are compiled and configured by
users?   I posit that it's a very slim minority of "listening port..." errors
that are a result of some mismanagement of the pidfile.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #4 from Eric Covener <co...@gmail.com>  2008-09-23 06:30:58 PST ---
Are you missing any environment setup by invoking httpd instead of apachectl?

Your two appends are a little inconsistent as to whether or not you see an
error message, can you elaborate?  Are you doing an immedaite back-to-back -k
stop / -k start?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


rahul <ra...@sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #7 from rahul <ra...@sun.com>  2008-09-23 07:05:34 PST ---
On the other hand, what you describe is a valid problem.
if the PidFile is set, but the directory does not exist
no errors are shown to the user. It is a valid bug that should be fixed.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #8 from MOB.COM <ap...@mob.com>  2008-09-23 07:19:21 PST ---
(In reply to comment #4)
> Are you missing any environment setup by invoking httpd instead of apachectl?
> 
> Your two appends are a little inconsistent as to whether or not you see an
> error message, can you elaborate?  Are you doing an immedaite back-to-back -k
> stop / -k start?
> 

Can invoke by apachectl also.

Not doing an immediate back-to-back stop/start because as there is no pidfile
the stop does not work:

/etc/httpd/bin/httpd -k stop
httpd (no pid file) not running

Only options are to reboot the server or manually kill all apache processes to
restart apache.


Pidfile uncommented:

1. No error message when httpd processes are not running - Apache does not
start, does not say that there was an error, nor log an error.

2. Error message when an Apache process is running and trying to start/restart.
When no pidfile exists, must kill all httpd processes manually before being
able to restart or start Apache again, otherwise will get the binding error,
stopping Apache does not work.



If the problem is RHEL5 specific, then there are two possible scenarios, both
bad:

Scenario A:
1. User installs Apache source.
2. Apache gets started. (no pidfile path specified in default source install,
so Apache starts successfully.)
3. User imports old RHEL5 httpd.conf file with Pidfile path and all other
settings.
4. User restarts Apache server, gets binding error, nothing in error logs about
Pidfile being the problem.


Scenario B:
1. User installs Apache source.
2. Apache is NOT started.
3. User imports old RHEL5 httpd.conf file with Pidfile path and all other
settings.
4. User tries to start Apache server, nothing happens, no error, no response,
nothing.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


Will Rowe <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




--- Comment #13 from Will Rowe <wr...@apache.org>  2008-09-23 20:58:29 PST ---
If you are enough of an asshole to reopen this bug again, I'll be an equivalent
asshole and veto all changes which improve your situation on RH; the only delta
being that I have the karma to do so.  Comprende?

"There are over 1,000 search results"

YOUR error message indicates a program is already sering traffic on ports 80
and 443 which mean you are already running a webserver.  Well DUH - of course
their are thousands of reports!  There are thousands of users who didn't know
they were running a webserver.

Take this to a user list, issue closed.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #23 from Eric Covener <co...@gmail.com>  2009-01-09 04:28:46 PST ---
Use the mailing list.  Your strace doesn't capture any of apache (-f) and the
messages should not be construed as missing files/permissions. Finally, include
your errorlog and the grep of your config on the mailing list.  


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #16 from MOB.COM <ap...@mob.com>  2008-09-24 13:04:09 PST ---
(In reply to comment #15)

> I see no patch, and have no clue from this thread what change you are asking
> for other than "make things better".  That's not a useful ticket and must be
> closed.
> 

Here is the explicit request for improvements from previous post:

a) Immediately displaying users the error when they try to start the server:
e.g. "could not log pid to file /etc/httpd/run/httpd.pid"

b) Informing users of ASF httpd project layout's default Pidfile path in the
httpd.conf

I hope these recommendations are clear enough and all feedback is appreciated.
I will leave this thread closed and if anyone experiences these problems in
future they can atleast now find information here and reply.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


rahul <ra...@sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




--- Comment #6 from rahul <ra...@sun.com>  2008-09-23 07:03:20 PST ---
> Source of the problem is that pidfile line is uncommented by default and no
> pidfile is created.

httpd 2.2.9 from httpd.apache.org does not have the PidFile statement enabled
by default. This seems to be a vendor modification. The default location of
pidfile is $ServerRoot/logs/httpd.pid


> Vendor Specific factor:
> This depends whether RHEL5 is the only OS that sets Pidfile location in
> httpd.conf files to "PidFile run/httpd.pid" by default.

see above. 


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


Istvan <sz...@yahoo.com.hk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |szemet1@yahoo.com.hk




--- Comment #19 from Istvan <sz...@yahoo.com.hk>  2009-01-08 04:22:19 PST ---
(In reply to comment #18)
> On Apache.org the Pidfile path is only specified on
> http://httpd.apache.org/docs/2.2/mod/mpm_common.html and that page is only
> linked from the bottom of http://httpd.apache.org/docs/2.2/install.html through
> a small link titled "Listen", which is very hard to find online, so it's good
> to know it is specified in and extra directory configuration file also.
> 
> Is there a reason why the pidfile error should only be logged and not displayed
> on console as the binding error is. It causes a fatal problem, for which users
> get no notification on the console, whereas even the smallest misconfigurations
> of httpd.conf result in console error messages.
> 
> We are willing to write the necessary patch code for this, unless it is better
> for some reason, to have this error only logged and not on console.
> 

Thanks John for the good intention to help, I was one of the unfortunate user
myself too, who just hit this bug on Fedora 10 with default httpd 2.2.10
installed.

The error message was exactly the same, but first I thought it's related to
IPv6 configuration which I disabled, but the issue remaind.
I'm afraid the PidFile solution I found on this page was no help either.
Eventually after some long hours spent on googling and tryring to fix the issue
myself, I found the solution to this issue.

I had to comment the

Include conf.d/*.conf

line in httpd.conf to be able to start the daemon. 

I don't know why it happened and why it fixed the issue, but now I have no PHP
configuration which is part of this conf.d directory and wanted to use the
server for PHP development.

If it's an ASF issue, or not, the users are suffering and those poor buggers on
the Fedora forums keep reinstalling their OS to try to fix this annoying issue.

Pity not this oraganization nor the OS distributor is willing to get this issue
fixed once and for all...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #18 from MOB.COM <ap...@mob.com>  2008-09-24 14:32:10 PST ---
(In reply to comment #17)
> (In reply to comment #16)
> > Here is the explicit request for improvements from previous post:
> > 
> > a) Immediately displaying users the error when they try to start the server:
> > e.g. "could not log pid to file /etc/httpd/run/httpd.pid"
> 
> Apache httpd 2.2.9 does log the following error if the pid file directory does
> not exist:
> 
> [Wed Sep 24 22:22:57 2008] [error] (2)No such file or directory: could not
> create /my/test/directory/httpd.pid
> [Wed Sep 24 22:22:57 2008] [error] httpd: could not log pid to file
> /my/test/directory/httpd.pid
> 
> So the message is already there. It does not appear on the console, but instead
> in the error log file (where it belongs).
> 
> > b) Informing users of ASF httpd project layout's default Pidfile path in the
> > httpd.conf
> 
> It is already contained in the default configuration file
> (conf/extra/httpd-mpm.conf), and the actual path used is contained in the above
> log message.
> 
> Furthermore the build installations concerning the use of configure explain how
> to set a default, what is the name of the default layout, and in which file it
> is described:
> 
> http://httpd.apache.org/docs/2.2/programs/configure.html
> 
> Regards,
> 
> Rainer
> 

Thanks for the reply, 

On Apache.org the Pidfile path is only specified on
http://httpd.apache.org/docs/2.2/mod/mpm_common.html and that page is only
linked from the bottom of http://httpd.apache.org/docs/2.2/install.html through
a small link titled "Listen", which is very hard to find online, so it's good
to know it is specified in and extra directory configuration file also.

Is there a reason why the pidfile error should only be logged and not displayed
on console as the binding error is. It causes a fatal problem, for which users
get no notification on the console, whereas even the smallest misconfigurations
of httpd.conf result in console error messages.

We are willing to write the necessary patch code for this, unless it is better
for some reason, to have this error only logged and not on console.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #17 from Rainer Jung <ra...@kippdata.de>  2008-09-24 13:31:19 PST ---
(In reply to comment #16)
> Here is the explicit request for improvements from previous post:
> 
> a) Immediately displaying users the error when they try to start the server:
> e.g. "could not log pid to file /etc/httpd/run/httpd.pid"

Apache httpd 2.2.9 does log the following error if the pid file directory does
not exist:

[Wed Sep 24 22:22:57 2008] [error] (2)No such file or directory: could not
create /my/test/directory/httpd.pid
[Wed Sep 24 22:22:57 2008] [error] httpd: could not log pid to file
/my/test/directory/httpd.pid

So the message is already there. It does not appear on the console, but instead
in the error log file (where it belongs).

> b) Informing users of ASF httpd project layout's default Pidfile path in the
> httpd.conf

It is already contained in the default configuration file
(conf/extra/httpd-mpm.conf), and the actual path used is contained in the above
log message.

Furthermore the build installations concerning the use of configure explain how
to set a default, what is the name of the default layout, and in which file it
is described:

http://httpd.apache.org/docs/2.2/programs/configure.html

Regards,

Rainer


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #20 from Eric Covener <co...@gmail.com>  2009-01-08 05:01:15 PST ---
(In reply to comment #19)
> 
> Pity not this oraganization nor the OS distributor is willing to get this issue
> fixed once and for all...
> 

You should ask on users@httpd.apache.org to figure out what's going on in your
system, since it doesn't seem like you know the source of the error.  It's not
clear there's anything for developers/distributors to fix.

If httpd is  running, and you delete the PID file, you can manually kill the
server by determining the PID of the parent.
http://httpd.apache.org/docs/2.2/stopping.html

It would help if your initial email included lsof/fuser output for the port
being complained about and a grep -ri Listen of your entire apache config.

http://wiki.apache.org/httpd/CouldNotBindToAddress


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


rahul <ra...@sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




--- Comment #3 from rahul <ra...@sun.com>  2008-09-23 06:27:13 PST ---
Could you please try the same with a self-compiled apache with the source from 
http://httpd.apache.org/download.cgi 

I would like to rule out any vendor related changes in the source.

Also before trying out. Kill all the http processes in the system 
(ps -aux | grep httpd should not give any processes)

Also make sure that 80 is not occupied. 
i.e (nc localhost 80) should not connect.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


MOB.COM <ap...@mob.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED




--- Comment #2 from MOB.COM <ap...@mob.com>  2008-09-23 05:45:09 PST ---
tcp        0      0 127.0.0.1:25                0.0.0.0:*                  
LISTEN
tcp        0      0 :::80                       :::*                       
LISTEN


"ps aux" shows a list of httpd processes on port 80. Trying to stop Apache:

/etc/httpd/bin/httpd -k stop
httpd (no pid file) not running

Restarting server to make port 80 open

/etc/httpd/bin/httpd -k start

Gives no error or status, httpd is not started, ps aux lists no httpd
processes.

Restarting server added the following to error_log:
[error] (2)No such file or directory: could not create /etc/httpd/run/httpd.pid
[error] httpd: could not log pid to file /etc/httpd/run/httpd.pid

Commenting out pidfile, successfully starting httpd server, uncommenting
pidfile, now gives error again:

/etc/httpd/bin/httpd -k start
(98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down


Conclusion:
Users trying to install Apache will not be able to start it and will not get
any error messages in response to the unsuccessful start command nor any error
messages into error_log, until they restart the server.

The pid error seems to be very common, so it is unlikely that users comment out
the pidfile line, start Apache, and uncomment the pidfile line. 

It is more likely that after fresh install one httpd process does get started,
that is before httpd.conf gets fully configured with virtual hosts, etc. - so
sites will not work. Then users after finishing their httpd.conf changes, try
to restart the server and will receive the binding error as Apache is unable to
stop the service "httpd (no pid file) not running" (this is shown ONLY when
they try to stop, most will try to start/restart). No error is written into the
error_logs either, until server is restarted and users will only see the
binding error.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


rahul <ra...@sun.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from rahul <ra...@sun.com>  2008-09-23 04:45:06 PST ---
Before commenting out Pid and restarting, what does this output?
 |netstat -ltn


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


Will Rowe <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID




--- Comment #15 from Will Rowe <wr...@apache.org>  2008-09-24 10:28:11 PST ---
No, mr. anonymous troll;

I said I would veto changes to the default layout to match some arbitrary
vendor package; if you make RH users happy you confound Sun users, etc etc etc.
Because vendors haven't brought their changes to the table but have forked out
on their own in this respect, that's fine.  Seek them out for their support.

I see no patch, and have no clue from this thread what change you are asking
for other than "make things better".  That's not a useful ticket and must be
closed.

Are you asking for "Address already in use" error messages to read

"Someone is already running a program that is listening to TCP/IP port
[...]:####
and you need to stop that program or change this server's IP Address or Port
before Apache will start.  It is up to you to figure out which program might
be doing this, perhaps another instance of httpd even?  In any case, the
authors
humbly ask your forgiveness for this unfortunate circumstance."

Reopen with an explicit request, rather than regurgitating an FAQ.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863


Will Rowe <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |INVALID




--- Comment #9 from Will Rowe <wr...@apache.org>  2008-09-23 10:11:46 PST ---
Note that this is neither a user support forum, nor bugzilla @redhat.com.

If there is a server already running or any of a host of issues applies,
such as failing to uninstall RedHat provisioned httpd, you need to consult
with your peers at the users list.  This issue tracker is for bugs in the
ASF httpd project source code, docs etc.

RedHat uses a proprietary layout, not the ASF httpd project layout, so any
issues with how RHEL resources are laid out is a RH issue.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #21 from Istvan <sz...@yahoo.com.hk>  2009-01-09 03:39:34 PST ---
> If httpd is  running, and you delete the PID file, you can manually kill the
> server by determining the PID of the parent.
> http://httpd.apache.org/docs/2.2/stopping.html
> 
> It would help if your initial email included lsof/fuser output for the port
> being complained about and a grep -ri Listen of your entire apache config.
> 
> http://wiki.apache.org/httpd/CouldNotBindToAddress

Thank you Eric for the information.
My impression after reading through this bug report was that no one wants to
fix the issue but rather pointing fingers to each other. I just put my
workaround here to help others who, just like me are desperately searching for 
solutions and the wiki page you quoted seems to have nothing to do with the
issue.
I have no other daemons bound to port 80, nor double Listen directive in the
httpd.conf file, nor trying to start httpd as a limited Linux user.

Please, find my configuration here, I changed it back to the original one
before running the commands:

# service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to
address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

# hostname
fedora10.fedora.local

# ping fedora10.fedora.local
PING fedora10 (192.168.1.7) 56(84) bytes of data.
64 bytes from fedora10 (192.168.1.7): icmp_seq=1 ttl=64 time=0.129 ms
64 bytes from fedora10 (192.168.1.7): icmp_seq=2 ttl=64 time=0.055 ms
^C

# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0C:29:A8:F2:B3
          inet addr:192.168.1.7  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:100325 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56960 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:139953746 (133.4 MiB)  TX bytes:5021699 (4.7 MiB)

# netstat -an|grep ":80"
# lsof -i:80
# netstat -an|grep LISTEN
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                  
LISTEN      
tcp        0      0 0.0.0.0:111                 0.0.0.0:*                  
LISTEN      
tcp        0      0 192.168.122.1:53            0.0.0.0:*                  
LISTEN      
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                  
LISTEN      
tcp        0      0 127.0.0.1:631               0.0.0.0:*                  
LISTEN      
tcp        0      0 127.0.0.1:25                0.0.0.0:*                  
LISTEN      
tcp        0      0 0.0.0.0:34943               0.0.0.0:*                  
LISTEN  

# service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to
address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

# ps aux|egrep -i 'http|apac'
#

ServerTokens OS                                   
ServerRoot "/etc/httpd"                           
PidFile run/httpd.pid                             
Timeout 120                                       
KeepAlive Off                                     
MaxKeepAliveRequests 100                          
KeepAliveTimeout 15                               
<IfModule prefork.c>                              
StartServers       8                              
MinSpareServers    5                              
MaxSpareServers   20                              
ServerLimit      256                              
MaxClients       256                              
MaxRequestsPerChild  4000                         
</IfModule>                                       
<IfModule worker.c>                               
StartServers         2                            
MaxClients         150                            
MinSpareThreads     25                            
MaxSpareThreads     75                            
ThreadsPerChild     25                            
MaxRequestsPerChild  0                            
</IfModule>                                       
Listen 80                                         
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so  
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_anon_module modules/mod_authn_anon.so  
LoadModule authn_dbm_module modules/mod_authn_dbm.so    
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so      
LoadModule authz_user_module modules/mod_authz_user.so      
LoadModule authz_owner_module modules/mod_authz_owner.so    
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so            
LoadModule authz_default_module modules/mod_authz_default.so    
LoadModule ldap_module modules/mod_ldap.so                      
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so        
LoadModule include_module modules/mod_include.so                
LoadModule log_config_module modules/mod_log_config.so          
LoadModule logio_module modules/mod_logio.so                    
LoadModule env_module modules/mod_env.so                        
LoadModule ext_filter_module modules/mod_ext_filter.so          
LoadModule mime_magic_module modules/mod_mime_magic.so          
LoadModule expires_module modules/mod_expires.so                
LoadModule deflate_module modules/mod_deflate.so                
LoadModule headers_module modules/mod_headers.so                
LoadModule usertrack_module modules/mod_usertrack.so            
LoadModule setenvif_module modules/mod_setenvif.so              
LoadModule mime_module modules/mod_mime.so                      
LoadModule dav_module modules/mod_dav.so                        
LoadModule status_module modules/mod_status.so                  
LoadModule autoindex_module modules/mod_autoindex.so            
LoadModule info_module modules/mod_info.so                      
LoadModule dav_fs_module modules/mod_dav_fs.so                  
LoadModule vhost_alias_module modules/mod_vhost_alias.so        
LoadModule negotiation_module modules/mod_negotiation.so        
LoadModule dir_module modules/mod_dir.so                        
LoadModule actions_module modules/mod_actions.so                
LoadModule speling_module modules/mod_speling.so                
LoadModule userdir_module modules/mod_userdir.so                
LoadModule alias_module modules/mod_alias.so                    
LoadModule rewrite_module modules/mod_rewrite.so                
LoadModule proxy_module modules/mod_proxy.so                    
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so  
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so            
LoadModule proxy_http_module modules/mod_proxy_http.so          
LoadModule proxy_connect_module modules/mod_proxy_connect.so    
LoadModule cache_module modules/mod_cache.so                    
LoadModule suexec_module modules/mod_suexec.so                  
LoadModule disk_cache_module modules/mod_disk_cache.so          
LoadModule file_cache_module modules/mod_file_cache.so          
LoadModule mem_cache_module modules/mod_mem_cache.so            
LoadModule cgi_module modules/mod_cgi.so                        
User apache                                                     
Group apache                                                    
ServerAdmin root@localhost                                      
ServerName fedora10.fedora.local                                
UseCanonicalName Off                                            
DocumentRoot "/var/www/html"                                    
<Directory />                                                   
    Options FollowSymLinks                                      
    AllowOverride None                                          
</Directory>                                                    
<Directory "/var/www/html">                                     
    Options Indexes FollowSymLinks                              
    AllowOverride None                                          
    Order allow,deny                                            
    Allow from all                                              
</Directory>                                                    
<IfModule mod_userdir.c>                                        
    UserDir disabled                                            
</IfModule>                                                     
DirectoryIndex index.html index.html.var                        
AccessFileName .htaccess                                        
<Files ~ "^\.ht">                                               
    Order allow,deny                                            
    Deny from all                                               
</Files>                                                        
TypesConfig /etc/mime.types                                     
DefaultType text/plain                                          
<IfModule mod_mime_magic.c>                                     
    MIMEMagicFile conf/magic                                    
</IfModule>                                                     
HostnameLookups Off                                             
ErrorLog logs/error_log                                         
LogLevel warn                                                   
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common                                    
LogFormat "%{Referer}i -> %U" referer                                           
LogFormat "%{User-agent}i" agent                                                
CustomLog logs/access_log combined                                              
ServerSignature On                                                              
Alias /icons/ "/var/www/icons/"                                                 
<Directory "/var/www/icons">                                                    
    Options Indexes MultiViews FollowSymLinks                                   
    AllowOverride None                                                          
    Order allow,deny                                                            
    Allow from all                                                              
</Directory>                                                                    
<IfModule mod_dav_fs.c>                                                         
    DAVLockDB /var/lib/dav/lockdb                                               
</IfModule>                                                                     
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"                                       
<Directory "/var/www/cgi-bin">                                                  
    AllowOverride None                                                          
    Options None                                                                
    Order allow,deny                                                            
    Allow from all                                                              
</Directory>                                                                    
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8      
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip                 
AddIconByType (TXT,/icons/text.gif) text/*                                      
AddIconByType (IMG,/icons/image2.gif) image/*                                   
AddIconByType (SND,/icons/sound2.gif) audio/*                                   
AddIconByType (VID,/icons/movie.gif) video/*                                    
AddIcon /icons/binary.gif .bin .exe                                             
AddIcon /icons/binhex.gif .hqx                                                  
AddIcon /icons/tar.gif .tar                                                     
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv                           
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip                               
AddIcon /icons/a.gif .ps .ai .eps                                               
AddIcon /icons/layout.gif .html .shtml .htm .pdf                                
AddIcon /icons/text.gif .txt                                                    
AddIcon /icons/c.gif .c                                                         
AddIcon /icons/p.gif .pl .py                                                    
AddIcon /icons/f.gif .for                                                       
AddIcon /icons/dvi.gif .dvi                                                     
AddIcon /icons/uuencoded.gif .uu                                                
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl                        
AddIcon /icons/tex.gif .tex                                                     
AddIcon /icons/bomb.gif core                                                    
AddIcon /icons/back.gif ..                                                      
AddIcon /icons/hand.right.gif README                                            
AddIcon /icons/folder.gif ^^DIRECTORY^^                                         
AddIcon /icons/blank.gif ^^BLANKICON^^                                          
DefaultIcon /icons/unknown.gif                                                  
ReadmeName README.html                                                          
HeaderName HEADER.html                                                          
AddLanguage ca .ca                                                              
AddLanguage cs .cz .cs                                                          
AddLanguage da .dk                                                              
AddLanguage de .de                                                              
AddLanguage el .el                                                              
AddLanguage en .en                                                              
AddLanguage eo .eo                                                              
AddLanguage es .es                                                              
AddLanguage et .et                                                              
AddLanguage fr .fr                                                              
AddLanguage he .he                                                              
AddLanguage hr .hr                                                              
AddLanguage it .it                                                              
AddLanguage ja .ja                                                              
AddLanguage ko .ko                                                              
AddLanguage ltz .ltz                                                            
AddLanguage nl .nl                                                              
AddLanguage nn .nn                                                              
AddLanguage no .no                                                              
AddLanguage pl .po                                                              
AddLanguage pt .pt                                                              
AddLanguage pt-BR .pt-br                                                        
AddLanguage ru .ru                                                              
AddLanguage sv .sv                                                              
AddLanguage zh-CN .zh-cn                                                        
AddLanguage zh-TW .zh-tw                                                        
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl
pt pt-BR ru sv zh-CN zh-TW
ForceLanguagePriority Prefer Fallback                                           
AddDefaultCharset UTF-8                                                         
AddType application/x-compress .Z                                               
AddType application/x-gzip .gz .tgz                                             
AddType application/x-x509-ca-cert .crt                                         
AddType application/x-pkcs7-crl    .crl                                         
AddHandler type-map var                                                         
AddType text/html .shtml                                                        
AddOutputFilter INCLUDES .shtml
Alias /error/ "/var/www/error/"
<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    <Directory "/var/www/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>
</IfModule>
</IfModule>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider"
redirect-carefully
BrowserMatch "MS FrontPage" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[0123]" redirect-carefully
BrowserMatch "^gnome-vfs/1.0" redirect-carefully
BrowserMatch "^XML Spy" redirect-carefully
BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully

# strace -o /tmp/strace.txt service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to
address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]
# cat /tmp/strace.txt                                                           
execve("/sbin/service", ["service", "httpd", "start"], [/* 61 vars */]) = 0     
brk(0)                                  = 0x2026000                             
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f489de51000           
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f489de50000           
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory) 
open("/etc/ld.so.cache", O_RDONLY)      = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=139604, ...}) = 0                       
mmap(NULL, 139604, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f489de2d000               
close(3)                                = 0                                     
open("/lib64/libtinfo.so.5", O_RDONLY)  = 3                                     
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\310\0\2114\0\0\0@"..., 832)
= 832       
fstat(3, {st_mode=S_IFREG|0755, st_size=134280, ...}) = 0                       
mmap(0x3489000000, 2228320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x3489000000    
mprotect(0x348901d000, 2093056, PROT_NONE) = 0                                  
mmap(0x348921c000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x348921c000
mmap(0x3489220000, 96, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3489220000        
close(3)                                = 0                                     
open("/lib64/libdl.so.2", O_RDONLY)     = 3                                     
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340\r`z4\0\0\0@"...,
832) = 832                        
fstat(3, {st_mode=S_IFREG|0755, st_size=23208, ...}) = 0                        
mmap(0x347a600000, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x347a600000               
mprotect(0x347a602000, 2097152, PROT_NONE) = 0                                  
mmap(0x347a802000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x347a802000  
close(3)                                = 0                                     
open("/lib64/libc.so.6", O_RDONLY)      = 3                                     
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\346\341y4\0\0\0@"..., 832)
= 832                   
fstat(3, {st_mode=S_IFREG|0755, st_size=1835416, ...}) = 0                      
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f489de2c000                      
mmap(0x3479e00000, 3609208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0x3479e00000               
mprotect(0x3479f68000, 2097152, PROT_NONE) = 0                                  
mmap(0x347a168000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x168000) = 0x347a168000
mmap(0x347a16d000, 17016, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x347a16d000      
close(3)                                = 0                                     
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f489de2b000                       
arch_prctl(ARCH_SET_FS, 0x7f489de2b6f0) = 0                                     
mprotect(0x347a802000, 4096, PROT_READ) = 0                                     
mprotect(0x347a168000, 16384, PROT_READ) = 0                                    
mprotect(0x3478c1f000, 4096, PROT_READ) = 0                                     
munmap(0x7f489de2d000, 139604)          = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
open("/dev/tty", O_RDWR|O_NONBLOCK)     = 3                                     
close(3)                                = 0                                     
brk(0)                                  = 0x2026000                             
brk(0x2047000)                          = 0x2047000                             
open("/usr/lib/locale/locale-archive", O_RDONLY) = 3                            
fstat(3, {st_mode=S_IFREG|0644, st_size=80625888, ...}) = 0                     
mmap(NULL, 80625888, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f4899146000             
close(3)                                = 0                                     
getuid()                                = 0                                     
getgid()                                = 0                                     
geteuid()                               = 0                                     
getegid()                               = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
gettimeofday({1230908887, 346414}, NULL) = 0                                    
open("/proc/meminfo", O_RDONLY)         = 3                                     
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0                            
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f489de4f000                       
read(3, "MemTotal:      1026348 kB\nMemFree"..., 1024) = 826                    
close(3)                                = 0                                     
munmap(0x7f489de4f000, 4096)            = 0                                     
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
0}, 8) = 0                        
rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
0}, 8) = 0                         
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0 
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
0}, 8) = 0                        
rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigaction(SIGQUIT, {0x1, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0    
uname({sys="Linux", node="fedora10.fedora.local", ...}) = 0                     
stat("/etc/httpd/conf", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0          
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0                        
getpid()                                = 12583                                 
open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3                      
fstat(3, {st_mode=S_IFREG|0644, st_size=26050, ...}) = 0                        
mmap(NULL, 26050, PROT_READ, MAP_SHARED, 3, 0) = 0x7f489de49000                 
close(3)                                = 0                                     
getppid()                               = 12582                                 
getpgrp()                               = 12582                                 
rt_sigaction(SIGCHLD, {0x437df0, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=1024, rlim_max=8*1024}) = 0                   
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
open("/sbin/service", O_RDONLY)         = 3                                     
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffa5e50c80) = -1 ENOTTY
(Inappropriate ioctl for device)             
lseek(3, 0, SEEK_CUR)                   = 0                                     
read(3, "#!/bin/sh\n\n. /etc/init.d/function"..., 80) = 80                      
lseek(3, 0, SEEK_SET)                   = 0                                     
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0                    
dup2(3, 255)                            = 255                                   
close(3)                                = 0                                     
fcntl(255, F_SETFD, FD_CLOEXEC)         = 0                                     
fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE)   
fstat(255, {st_mode=S_IFREG|0755, st_size=1692, ...}) = 0                       
lseek(255, 0, SEEK_CUR)                 = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
read(255, "#!/bin/sh\n\n. /etc/init.d/function"..., 1692) = 1692                
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
stat("/etc/init.d/functions", {st_mode=S_IFREG|0644, st_size=13852, ...}) = 0   
access("/etc/init.d/functions", X_OK)   = -1 EACCES (Permission denied)         
access("/etc/init.d/functions", R_OK)   = 0                                     
open("/etc/init.d/functions", O_RDONLY) = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=13852, ...}) = 0                        
read(3, "# -*-Shell-script-*-\n#\n# function"..., 13852) = 13852                
close(3)                                = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
umask(022)                              = 022                                   
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
pipe([3, 4])                            = 0                                     
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0                                    
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0                                
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f489de2b780) = 12584 
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigaction(SIGCHLD, {0x437df0, [], SA_RESTORER, 0x3479e32f90}, {0x437df0, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
close(4)                                = 0                                     
read(3, "pty\n"..., 128)                = 4                                     
read(3, ""..., 128)                     = 0                                     
close(3)                                = 0                                     
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0                                    
rt_sigaction(SIGINT, {0x438a10, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0  
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 2}], 0, NULL) = 12584             
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
--- SIGCHLD (Child exited) @ 0 (0) ---                                          
wait4(-1, 0x7fffa5e4fd44, WNOHANG, NULL) = -1 ECHILD (No child processes)       
rt_sigreturn(0xffffffffffffffff)        = 0                                     
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {0x438a10, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0  
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
stat("/etc/sysconfig/i18n", {st_mode=S_IFREG|0644, st_size=47, ...}) = 0        
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
stat("/etc/profile.d/lang.sh", {st_mode=S_IFREG|0644, st_size=2693, ...}) = 0   
access("/etc/profile.d/lang.sh", X_OK)  = -1 EACCES (Permission denied)         
access("/etc/profile.d/lang.sh", R_OK)  = 0                                     
open("/etc/profile.d/lang.sh", O_RDONLY) = 3                                    
fstat(3, {st_mode=S_IFREG|0644, st_size=2693, ...}) = 0                         
read(3, "# /etc/profile.d/lang.sh - set i1"..., 2693) = 2693                    
close(3)                                = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
stat("/root/.i18n", 0x7fffa5e4fcb0)     = -1 ENOENT (No such file or directory) 
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
stat("/etc/sysconfig/init", {st_mode=S_IFREG|0644, st_size=1029, ...}) = 0      
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
stat("/etc/sysconfig/init", {st_mode=S_IFREG|0644, st_size=1029, ...}) = 0      
access("/etc/sysconfig/init", X_OK)     = -1 EACCES (Permission denied)         
access("/etc/sysconfig/init", R_OK)     = 0                                     
open("/etc/sysconfig/init", O_RDONLY)   = 3                                     
fstat(3, {st_mode=S_IFREG|0644, st_size=1029, ...}) = 0                         
read(3, "# color => new RH6.0 bootup\n# ver"..., 1029) = 1029                   
close(3)                                = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
open("/usr/share/locale/locale.alias", O_RDONLY) = 3                            
fstat(3, {st_mode=S_IFREG|0644, st_size=2512, ...}) = 0                         
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f489de48000                         
read(3, "# Locale name alias data base.\n# "..., 4096) = 2512                   
read(3, ""..., 4096)                    = 0                                     
close(3)                                = 0                                     
munmap(0x7f489de48000, 4096)            = 0                                     
open("/usr/share/locale/en_US/LC_MESSAGES/initscripts.mo", O_RDONLY) = -1
ENOENT (No such file or directory)      
open("/usr/share/locale/en/LC_MESSAGES/initscripts.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)         
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
brk(0x2068000)                          = 0x2068000                             
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
pipe([3, 4])                            = 0                                     
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0                                    
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0                                
lseek(255, -1622, SEEK_CUR)             = 70                                    
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f489de2b780) = 12586  
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
--- SIGCHLD (Child exited) @ 0 (0) ---                                          
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12586       
wait4(-1, 0x7fffa5e50224, WNOHANG, NULL) = -1 ECHILD (No child processes)       
rt_sigreturn(0xffffffffffffffff)        = 0                                     
rt_sigaction(SIGCHLD, {0x437df0, [], SA_RESTORER, 0x3479e32f90}, {0x437df0, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
close(4)                                = 0                                     
read(3, "service\n"..., 128)            = 8                                     
read(3, ""..., 128)                     = 0                                     
close(3)                                = 0                                     
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0                                    
rt_sigaction(SIGINT, {0x438a10, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0  
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {0x438a10, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0  
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
read(255, "USAGE=\"Usage: `basename $0` < opt"..., 1692) = 1622                 
pipe([3, 4])                            = 0                                     
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0                                    
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0                                
lseek(255, -1517, SEEK_CUR)             = 175                                   
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f489de2b780) = 12587  
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
--- SIGCHLD (Child exited) @ 0 (0) ---                                          
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 12587       
wait4(-1, 0x7fffa5e50224, WNOHANG, NULL) = -1 ECHILD (No child processes)       
rt_sigreturn(0xffffffffffffffff)        = 0                                     
rt_sigaction(SIGCHLD, {0x437df0, [], SA_RESTORER, 0x3479e32f90}, {0x437df0, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
close(4)                                = 0                                     
read(3, "service\n"..., 128)            = 8                                     
read(3, ""..., 128)                     = 0                                     
close(3)                                = 0                                     
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0                                    
rt_sigaction(SIGINT, {0x438a10, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0  
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {0x438a10, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0  
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
read(255, "SERVICE=\nSERVICEDIR=\"/etc/init.d\""..., 1692) = 1517               
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
chdir("/")                              = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0                                     
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0                                    
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
stat("/etc/init.d/httpd", {st_mode=S_IFREG|0755, st_size=3099, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/sbin/env", 0x7fffa5e509e0)       = -1 ENOENT (No such file or directory)
stat("/usr/sbin/env", 0x7fffa5e509e0)   = -1 ENOENT (No such file or directory)
stat("/bin/env", {st_mode=S_IFREG|0755, st_size=34496, ...}) = 0
access("/bin/env", X_OK)                = 0
access("/bin/env", R_OK)                = 0
stat("/bin/env", {st_mode=S_IFREG|0755, st_size=34496, ...}) = 0
access("/bin/env", X_OK)                = 0
access("/bin/env", R_OK)                = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [INT CHLD], 8) = 0
rt_sigprocmask(SIG_SETMASK, [INT CHLD], NULL, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD,
child_tidptr=0x7f489de2b780) = 12588
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x438a10, [], SA_RESTORER, 0x3479e32f90}, {SIG_DFL, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 12588
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fffa5e50674, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff)        = 0
rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3479e32f90}, {0x438a10, [],
SA_RESTORER, 0x3479e32f90}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, ""..., 1692)                  = 0
exit_group(1)                           = ?

As you can see on the strace output the starting process has loads of issues
with missing files/directories, wrong permissions, etc. 


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 45863] (98)Address already in use: make_sock: could not bind to address [::]:80

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45863





--- Comment #22 from Istvan <sz...@yahoo.com.hk>  2009-01-09 03:52:42 PST ---
> Thank you Eric for the information.

One more extra information to this bug:

These files were sitting in /etc/httpd/conf.d directory:

BackupPC.conf  manual.conf  perl.conf  php.conf  proxy_ajp.conf  python.conf 
README  squid.conf  ssl.conf  system-config-httpd.conf  webalizer.conf 
welcome.conf

with root:root 644 permission. I deleted most and left only these files:

#  ls -lrt
total 24
-rw-r--r-- 1 root root  352 2004-09-10 00:22 webalizer.conf
-rw-r--r-- 1 root root 9534 2008-07-15 23:44 ssl.conf
-rw-r--r-- 1 root root  560 2008-09-14 01:15 php.conf
-rw-r--r-- 1 root root  392 2008-10-21 22:52 README

# service httpd start
Starting httpd:                                            [  OK  ]

with the Include directive enabled...

I'm not sure which file caused the issue, one of them might have some error,
but 'apachectl configtest' have not complained to any of them.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org