curl-and-php
Re: Curl-and-php digest, Vol 1 #60 - 3 msgs
Date: Tue, 17 Jul 2001 22:26:07 -0500
> From: "Dominique Stender" <d.stender_at_regiocom-aachen.de>
> To: <curl-and-php_at_lists.sourceforge.net>
> Subject: AW: php w/ curl/ssl on HP-UX 10.2
> Date: Tue, 17 Jul 2001 19:03:40 +0200
> Reply-To: curl-and-php_at_lists.sourceforge.net
>
> Hi Jason,
>
> this is exactly the situation I am in (see my thread above).
Unfortunatelly
> I do not have an answer but since I'm having the problem on Redhat 6.2
where
> you have succeded I'm _very_ eager to know what you did to make it work
> (configure options on curl, openSSL, php, ...). Maybe we can solve this
> riddle for Linux and thereby get to know whats wrong on HP...
>
> Chris Alsop posted a workaround for that problem. It really works but I
> don't like it ;)
>
>
> Thanks in advance,
>
> Dominique
I basically tried to follow the walk through put together by Lim Chung Ke in
this mailing list and at http://curl.haxx.se/libcurl/php/install.html.
I used openssl-0.9.6a and curl-7.8. Did a configure and make instructions
and installed each.
I then used the following script to build apache. Note that I am using the
RPM source module and applying the patches to the latest version of apache
they supported for Linux 6.2. I am then building php as an apache module
and mod ssl.
mkdir apache
cd apache
rpm2cpio ../apache-1.3.14-2.6.2.src.rpm | cpio -i
tar xvzf apache_1.3.14.tar.gz
cd apache_1.3.14
cd src/modules/standard
mv ../../../../apache_1.3.14-rewritefix.patch .
patch -p1 < apache_1.3.14-rewritefix.patch
cd ../../..
for x in ../*.patch
do
patch -p1 < $x
done
mv ../mod_bandwidth.c .
mv ../mod_put.c .
tar xvzf ../mod_throttle208.tgz
CFLAGS="-O2" LDFLAGS="-s" ./configure --prefix=/usr \
--with-layout=RedHat \
--add-module=mod_bandwidth.c \
--add-module=mod_put.c \
--activate-module=src/modules/throttle/mod_throttle.o \
--enable-module=all \
--disable-rule=WANTHSREGEX \
--disable-module=auth_dbm \
--with-perl=/usr/bin/perl \
--enable-suexec \
--suexec-docroot=/home/httpd/html \
--suexec-caller=nobody
cd ../..
tar xvzf mod_ssl-2.7.1-1.3.14.tar.gz
cd mod_ssl-2.7.1-1.3.14
./configure \
--with-apache=../apache/apache_1.3.14 \
--with-ssl=../openssl-0.9.6a \
--prefix=/usr
cd ../
tar xvzf php-4.0.5.tar.gz
cd php-4.0.5
LDFLAGS="-s" CFLAGS="-O2 -I/usr/include/pgsql" ./configure --disable-debug \
--with-system-regex \
--enable-trans-sid \
--with-gd \
--with-jpeg-dir=/usr \
--with-ttf \
--enable-bcmath \
--with-png-dir=../pdflib-4.0.0/png \
--with-sybase-ct \
--with-apache=../apache/apache_1.3.14
make
make install
This gives me in phpinfo()
Configure Command './configure' '--disable-debug' '--with-system-regex'
'--enable-trans-sid' '--with-gd' '--with-jpeg-dir=/usr' '--with-ttf'
'--enable-bcmath' '--with-png-dir=../pdflib-4.0.0/png' '--with-sybase-ct'
'--with-openssl=/usr/local/ssl' '--with-curl=/usr/local/lib'
'--with-apache=../apache/apache_1.3.14'
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.6a 5 Apr 2001
curl
CURL support enabled
CURL Information libcurl 7.8 (OpenSSL 0.9.6a)
Then I had to bang around in the scripts to get it to work talking to SSL
servers. The biggest thing was to try varying the CURLOPT_SSLVERSION
parameter. Run once without it, once set to 3 and once set to 2. Different
SSL servers seem to respond to different variations of this. It appears
each script will have to be tuned for the server it is interacting with.
Hope that helps.
_______________________________________________
Curl-and-php mailing list
http://curl.haxx.se/
Received on 2001-07-18