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


MOB.COM <[EMAIL PROTECTED]> changed:

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




--- Comment #2 from MOB.COM <[EMAIL PROTECTED]>  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to