curl-and-php
Unable to get cURL/https + mod_chroot to work -- trying again
Date: Mon, 17 Sep 2007 07:49:39 -0600
Hello All
I've posted this question up before, but I never got if fully resolved. Now, it looks like I need to get it working as soon as possible.
The problem is that I have cURL, mod_chroot, and the application will hang when trying to connect over SSL. If I remove mod_chroot and the application works as expected. The behaviour is a perpetual hanging.
My versions are as follows:
mod_chroot-0.4
curl-7.16.4
php-4.4.8_pre20070816
mod_security-2.1.1-r1
apache-2.0.59-r5
My original post to the mailing list can be located here:
http://curl.haxx.se/mail/curlphp-2007-04/0023.html
Since that post, I've upgraded curl and php, etc but the problem persists. I have a strace that I performed tonight with the area isolated here:
http://www.uno-code.com/files/curl.txt
IPs 'xxx' out are my DNS server and the target server. It appears that resolv.conf is not the problem here since it does resolve. The problem appears to be around here:
6923 waitpid(-1, 0xbfdb0248, WNOHANG|WSTOPPED) = 0
6923 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
6923 waitpid(-1, 0xbfdb0248, WNOHANG|WSTOPPED) = 0
6923 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
With the last upgrade to cURL, there doesn't seem to be a curl-ca-bundle.crt anywhere, and I'm guessing it's referring to cert(s) in /etc/ssl/certs. I went ahead and added those to my jail and no go. Both cURL and PHP were build with SSL.
Any ideas???? I really need to get this worked out.. and any suggestions are greatly appreciated.
Thanks!
hanji
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-09-17