|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10195 https takes forever and a day to return when php is loaded in Apache
Submitted: 2001-04-05 21:07 UTC Modified: 2001-04-10 09:26 UTC
From: Clement dot Ong at shinetech dot com Assigned:
Status: Closed Package: OpenSSL related
PHP Version: 4.0.2 OS: Linux Red Hat 7.0
Private report: No CVE-ID: None
 [2001-04-05 21:07 UTC] Clement dot Ong at shinetech dot com
I am running Apache 3.1.19 with mod_ssl-2.8.2-1.3.19 and OpenSSl-0.9.6 for SSL functionality.

Using https from my Internet Explorer 5.0 browser causes the requested web page to be returned after a very long wait, .eg more than 20 minutes maybe longer. Subsequent retrieval takes as long too.

If I have PHP disabled by removing the LoadModule and AddModule directive https works immediately however when I reinstate the PHP modules I would experience the problem again.

Other scenario :-

  1. retrieved a https page with my browser without PHP    (response received immediately)
  2. modify httpd.conf to enable PHP
  3. restarts Apache 
  4. starts a *NEW* browser to retrieve https(waits very long)
  5. using the same browser session in step 1 to retrieve
     again using https(response received immediately)

Also noticed in the Apache errors_log file the following error :-

[Fri	Apr	6	11:46:30	2001]	[notice]	child	pid	2654	exit	signal	Segmentation	fault	(11)
[Fri	Apr	6	11:46:36	2001]	[notice]	child	pid	2668	exit	signal	Segmentation	fault	(11)
[Fri	Apr	6	11:46:36	2001]	[notice]	child	pid	2667	exit	signal	Segmentation	fault	(11)

This is how I configure PHP :-

./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/etc/php \
--with-mysql=/usr \
--with-java=/usr/java/jdk1.3 \
--with-ldap \
--with-imap \
--with-curl \
--with-gd \



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-06 00:48 UTC] Clement dot Ong at shinetech dot com
Latest information. If I remove with-curl out from the configuration and rebuild PHP the problem no longer appears.

I need the curl functionality to use https within the PHP script to another secure web server.

 [2001-04-06 11:30 UTC]
Works for me just fine with latest RC of PHP 4.0.5 and latest CVS. And I have the same versions of openssl and mod_ssl and I have Curl enabled.

Please try the latest snapshot:


 [2001-04-09 04:05 UTC] Clement dot Ong at shinetech dot com
I tried building with the lastest build as suggested by you and the build errored when it came to making sapi/cgi.

I compared the MakeFile in the sapi directory between php 4.02 and the latest and they are different with the lastest one making reference to CGI in several places.

Also 4.02 has a Makefile in sapi/cgi whereas the latest doesn't.

Also what version of curl are you using I'm using 7.7.1.

 [2001-04-09 22:30 UTC] Clement dot Ong at shinetech dot com
I've downloaded the latest tar :-


I no longer have the build error and https with PHP activated and curl option specified now works. No more segmentation fault in the Apache error_log file.

This is wonderful. 

When starting up Apache I have the following error is this something to worry about :-

PHP Warning:  java: Unable to initialize module
Module compiled with debug=0, thread-safety=0 module API=20000809
PHP compiled with debug=0, thread-safety=0 module API=20001222
These options need to match
 in Unknown on line 0

 [2001-04-10 09:26 UTC]
Closed. (that error can be get rid of by recompiling the Java extension from the latest sources too)


PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Jul 29 19:01:23 2021 UTC