Apache SSL hangs (79 Views)
Reply
Occasional Advisor
Garnett Yeatts
Posts: 7
Registered: ‎01-21-2003
Message 1 of 14 (79 Views)
Accepted Solution

Apache SSL hangs

I have installed HP Apache 2.0.43 on a D380 server. It hangs if I try to start it in SSL mode (using apachectl startssl) but works OK non-SSL (using apachectl start). No messages to the log files, no errors, the command just hangs.

Any ideas or help would be appreciated.
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 2 of 14 (79 Views)

Re: Apache SSL hangs

Check /etc/services

make sure nothing is on the ssl port

check netstat -an

make sure nothing is on the ssl port


I'd think you'd get an error under those circumstances.

There is a guide on apache ssl issues at http://www.apache.org

There is also documentation in the httpd.conf file. Its worth reading, becuase its verbose and helps me with problem diagnosis.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Occasional Advisor
Garnett Yeatts
Posts: 7
Registered: ‎01-21-2003
Message 3 of 14 (79 Views)

Re: Apache SSL hangs

Thanks for the quick reply.

I'm sure there isn't anything on 443. I get the same problem when I try to run Jakarta Tomcat ssl on port 8443. Both Apache and Tomcat run fine on port 80 and 8080, but neither run in secure mode (on 443 and 8443).

I wondered if some kind of reverse lookup or domain lookup is going on when running in SSL mode - this server is not configured for DNS and does not have a domain set, but I have tested both of those items on another server by turning off NIS Client and unsetting the domainname and rebooting, and the web servers run OK in SSL mode.
Please use plain text.
Honored Contributor
U.SivaKumar_2
Posts: 1,752
Registered: ‎03-25-2002
Message 4 of 14 (79 Views)

Re: Apache SSL hangs

Hi,

Can you attach your httpd.conf here ?

Have you checked the sanity of SSL certificates used ?

Are you trying Virtual hosting ?

Also check by running this command
apachectl configtest

regards,

U.SivaKumar





Innovations are made when conventions are broken
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 5 of 14 (79 Views)

Re: Apache SSL hangs

A few more points.

I think Apache 2.x is a little cutting edge. I'm still using 1.3.X myself.

You can run some telnet tests on the local server and see what you get

telnet hostname 445
telnet hostname 80
telnet hostname 8445

You should get some hard to read web content. If you get a connection refused message, something else owns the socket.

If you get some dialog with something that's not your apache server, same issue.

I might have led you to believe that if there is a listing in /etc/services there must be something using the port and if not, the ports not in use.

Thats not true. ORacle doesn't bother to update /etc/servcies when you install their ias product even though it uses 7777 and 9001 in a base configuration.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Occasional Advisor
Garnett Yeatts
Posts: 7
Registered: ‎01-21-2003
Message 6 of 14 (79 Views)

Re: Apache SSL hangs

Thanks.

I was out of the office yesterday, so I was not able to reply to the responses until today.

Apachectl config check returns Syntax OK.

We verified no other processes are using port 443. We are able to run Apache on 443 without loading SSL module, but when we start Apache using SSL it hangs when loading the SSL module.

I have attached both the hpptd.conf file. I will also attach the ssl.conf file in a separate reply.
Please use plain text.
Occasional Advisor
Garnett Yeatts
Posts: 7
Registered: ‎01-21-2003
Message 7 of 14 (79 Views)

Re: Apache SSL hangs

SSL Conf File attached.
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 8 of 14 (79 Views)

Re: Apache SSL hangs

I can't look at this until Sat. night. sorry. If your issue isn't sovled I'll try and help then. I'll also try startssl on my sever just to see what happens.

No pts required, just don't want you to think I forgot you.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 9 of 14 (79 Views)

Re: Apache SSL hangs

Have not forgotten about you. itrc was down. Still working on your solution.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Please use plain text.
Occasional Advisor
Garnett Yeatts
Posts: 7
Registered: ‎01-21-2003
Message 10 of 14 (79 Views)

Re: Apache SSL hangs

Thanks for continuing to look at this. No new developments from our end.
Please use plain text.
Valued Contributor
Ryan Green
Posts: 36
Registered: ‎03-30-1997
Message 11 of 14 (78 Views)

Re: Apache SSL hangs

If you're running 11i, you might try patch PHSS_26560. Apache in SSL wouldn't start for me until patch PHSS_26263 or PHSS_26560 were installed.

ryan
Please use plain text.
Trusted Contributor
Kellogg Unix Team
Posts: 192
Registered: ‎10-09-1997
Message 12 of 14 (78 Views)

Re: Apache SSL hangs

Since you have tested your configuration on another server which is working fine in SSL mode, you can safely eliminate your configuration files being suspect.

Have you looked for required patches, perl version, and other pre-requisite for Apache v2.0.43 for this server?

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)
Please use plain text.
Occasional Advisor
Garnett Yeatts
Posts: 7
Registered: ‎01-21-2003
Message 13 of 14 (78 Views)

Re: Apache SSL hangs

Thanks. We will check the patches on the server. I will reply once we've had a chance to do that. We are not currently onsite, so it may be a short time before I reply.
Please use plain text.
Occasional Advisor
Garnett Yeatts
Posts: 7
Registered: ‎01-21-2003
Message 14 of 14 (78 Views)

Re: Apache SSL hangs

The patches worked.

Thanks for all the help.
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation