Operating System - HP-UX
1836091 Members
2826 Online
110089 Solutions
New Discussion

make_soc error for second apache instance.

 
RAC_1
Honored Contributor

make_soc error for second apache instance.

Server 16 way superdome running 11.11.
6 nics. 2 ethernet.
1st nic-ip assigned - a.b.c.d
2nd nic-ip assigned - x.y.z.f

both on same subnet. One apache instance running on ip a.b.c.d port -80.

I am configuring second apache instance for ip x.y.z.f port 80.

Apache error logs say port in use error 226. make_soc error.

/etc/services has this.
http 80/tcp www # World Wide Web HTTP
http 80/udp www # World Wide Web HTTP

Listendirective in httpd.conf is as follows.
Listen 172.17.112.81:80

Any clues why this is happening?

No processes running on port except first apache instance.
There is no substitute to HARDWORK
2 REPLIES 2
Jeff Schussele
Honored Contributor

Re: make_soc error for second apache instance.

Hi RAC,

First thing to mention is having two NICs asserting IPs on the same subnet will be problematic. It may work, but it may work unlike what you think it should. For instance traffic may come in an identifiable port, but *which* port should it go out & if ot goes outthe other the next hop will complain because of the different MAC address. So you should put them on separate subnets.

In fact your error may come from the fact that Apache is attempting to create the socket on the "wrong" port.

Second thing is I believe you'll need separate listen directive for each in the httpd.conf file.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
RAC_1
Honored Contributor

Re: make_soc error for second apache instance.

Jeff,

Right on target.

Changes listen directive and it worked.

Can I do the same in ifdefine ssl stuff. i.e can I do listen x.y.z.s:443 in each httpd.conf?

Thanks again.
There is no substitute to HARDWORK