[Summary :] Apache refusing to bind. (not much joy)

From: chas <sweeting_at_neuronet.com.my>
Date: Tue, 1 Apr 97 09:26:21 -0000

Summary :
---------
No luck at all getting Apache to run. Pinpointed the problem :
the "Listen" directive in httpd.conf is failing to bind to
ports, for either the real or virtual domain. Commenting
the "Listen"s out and using BindAddress, Apache works fine.
(but I need VirtualHosts and Listens to multiple IPs)

I am pretty sure that this can't be an apache bug since this is
with 1.2b7. If anyone has got this latest version of Apache to
run on DU 3.2 system, a note would be well appreciated or else
I may post the possible bug to the apache group.

So, with Apache v1.2b7 failing to work and previous versions
(1.1.1 and 1.1.3) failing to compile with errors complaining
about "JMP_BUF restartbuffer syntax errors", the following
advice from Robert Beazley is much appreciated.
At least I can use multiple Netscape servers (we've lost the
CDROM)


>You should just copy the existing Netscape instance (files in
>ns-home/httpd-80 ) to another and
>configure the new instance with the appropriate aliases IP address. If you
>need assistance, do a
>search on configuring Netscape. This should work just fine.

I would have preferred Apache but with 3 sites to port to the
Alpha by noon, anything will do.

Bottomline :
------------
If X refuses to work no matter what, try Y.

Thank you very much for your help.

Chas

ps. The ifconfig aliasing is working fine and not a problem.

>=== Step 2 : run Apache ===
>I downloaded the most recent version of Apache (1.2b7) and
>compiled it with cc : it automatically detected system
>variables and created the httpd executable.
>
>I configured the httpd.conf, srm.conf and access.conf files
>(something I have done many times before on AIX/FreeBSD) but kept
>getting the "cannot bind to requested port (202.184.153.27)".
>NOTE - it cannot bind to the ifconfig aliased IP....
>which was not previously being used by anything !
>
>Yes, I killed the previous Netscape servers, removed the
>startup scripts for the Netscape servers from rc3.d,
>rebooted the machine, made sure that no webservers were
>answering to either the real or virtual IP.
>
>And yet Apache still refuses to bind to these addresses.
>
>I was running Apache under
>user httpd
>group httpd
>(and checked /logs/error_log to make sure that this was not the problem)
>
>I even tried running Apache under
>user root
>group 1
>
>I also had the /usr/local/etc/apache directory owned by httpd or
>root respectively.
>
>Still no joy :(
>
>
>=== Bottomline : ===
>1) Still can't get Apache to run.
>2) Tried the Apache1.1.1 binary (from apache.org) but that was
> made for DU 4 and fails on DU3.2
>3) Tried compiling Apache 1.1.3 and that produced errors.
>4) Finally, I have put back the Netscape server.
> FWIW, I haven't touched its configuration at all
> yet it answers to both 202.184.153.4 and
> 202.184.153.27
>5) About to go try building Apache1.1.1
>
>
>Thank you very much for your help.
>
>Chas
>
>
>For completion, snippets from httpd.conf for Apache :
>
>
>Listen 202.184.153.4:80
>Listen 202.184.153.27:80
>
><VirtualHost 202.184.153.4>
>ErrorLog logs/mdc.error_log
>TransferLog logs/mdc.access_log
>ServerAdmin webmaster_at_neuronet.com.my
>DocumentRoot /www/mdc/public
>ServerName mdc.com.my
></VirtualHost>
><VirtualHost 202.184.153.27>
>ErrorLog logs/cyclops.error_log
>TransferLog logs/cyclops.access_log
>ServerAdmin webmaster_at_neuronet.com.my
>DocumentRoot /www/cyclops/public
>ServerName cyclops.com.my
>ScriptAlias /cgi-bin/ /www/cyclops/cgi-bin
></VirtualHost>
>
>but even if I configure this for the real domain and no virtual hosts,
>it cannot bind to the IP !



NeWT (Neuronet Web Team)

http://heaven.com.my - Channel X.
http://neuronet.com.my - Home.
Received on Tue Apr 01 1997 - 03:41:38 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT