You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Boyle Owen <Ow...@swx.com> on 2003/12/01 10:06:15 UTC

RE: [users@httpd] Problem with 1.3.27

See inlined comments:

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> -----Original Message-----
> From: Andrea Riela [mailto:ml@nesys.it]
> Sent: Samstag, 29. November 2003 17:06
> To: users@httpd.apache.org
> Subject: [users@httpd] Problem with 1.3.27
> 
> 
> Hi folks,
> 
> I've problem with my apache server (1.3.27) and ssl support.
> My system: OpenBSD 3.3 with OpenSSL
> observe# httpd -v
> Server version: Apache/1.3.27 (Unix)
> Server built:   Nov 12 2003 17:12:08
> 
> If I use -u in rc.conf and apachectl, I haven't problems, but 
> if I add -DSSL
> for ssl support, the apache server couldn't restart.
> 
> My rc.conf:
> # use -u to disable chroot, see httpd(8)
> httpd_flags="-u -DSSL"  # for normal use: "" (or "-DSSL" after reading
> ssl(8))

Never heard of "-u". Must be a BSD thing...

> 
> My apachectl:
> # the path to your PID file
> PIDFILE=/var/www/logs/httpd.pid
> #
> # the path to your httpd binary, including options if necessary
> HTTPD="/usr/sbin/httpd -u -DSSL" # <...>
> 
> In my error_log:
> [Sat Nov 29 15:43:56 2003] [notice] caught SIGTERM, shutting 
> down [Sat Nov
> 29 15:44:54 2003] [crit] (48)Address already in use: 
> make_sock: could not
> bind to port 80 [Sat Nov 29 15:45:18 2003] [crit] (48)Address 
> already in
> use: make_sock: could not bind to port 80 [Sat Nov 29 
> 15:45:27 2003] [crit]
> (48)Address already in use: make_sock: could not bind to port 
> 80 [Sat Nov 29
> 15:45:46 2003] [crit] (48)Address already in use: make_sock: 
> could not bind
> to port 80

It's not clear if these repeated errors come from you repeatedly trying
to start apache or if you get them when you try to start apache once.

In any case, what the error means is that you are trying to start apache
when it is already running. To explain: the first thing apache does on
startup is to open a socket on TCP/IP port 80. If this port is already
in use, apache fails. So if you start apache once, it will block port 80
then if you try another start it will fail with this message. 

If you are going to switch from an non-SSL apache to apache-with-SSL, I
don't think a "restart" is sufficient. Restart sends a -HUP signal to
the apache process and I don't think that is sufficient. Try a full
"apachectl stop" then "apachectl start".

> 
> The problem is the PID file, I think. Is a bug, but I don't 
> understand how
> could I patch that.

Why do you suspect the PID file? This is just the file where apache
stores the process id number (PID) of the parent apache process. If
apache can write to the directory (/var/www/logs) there should be no
problem. Is the file being created?

> Could you give me an advice?
> Thanks for all
> Regards
> Andrea
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 



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