curl-and-php
curl (with php to HTTPS) DONE!
Date: Tue, 17 Apr 2001 18:17:56 +0800
Finally.. I have it done!! Thank you again, Daniel.
These steps (in sequence) are for sharing :
My purpose is to have : PHP code with curl functions (using curl_init etc.)
calling HTTPS server.
Build OpenSSL (In openssl-0.9.x directory)
1) ./config -t To get correct configure option for step 2
2) Configure by running the output from step 1
3) make
4) make test
5) make install
Build CURL (In curl-7.6.x directory)
1) ./configure --disable-ipv6 --with-ssl=/usr/local/ssl (if only ssl was
built here)
2) make
3) make install (libcurl.so is now in /usr/local/lib)
Build PHP (In php-4.0.xpl1 directory)
1) To make -lssl comes before -lcrypto (as advised), search for "-lcrypto"
in ./configure and put "-lssl" before it.
2)
./configure --with-mysql --with-openssl=/usr/local/ssl --with-curl=/usr/loca
l/lib --with-apache=../apache_1.3.x
(In most cases of linking problem, it should complain here in debug.log)
3) make
4) make install (If --with-apache option is omitted, it should generate php
executable in /usr/loca/bin)
5) Library for modphp4 is now in apache_1.3.x/src/modules/php4
Build and install SSL-aware Apache (In mod_ssl-2.8.xxxx directory)
1)
./configure --with-apache=../apache1.3.x --with-ssl=/usr/local/ssl --prefix=
/usr/loca/apache --activate-module=src/modules/php4/libphp4.a
2) Follow remaining steps the output tells.
3) Restart your apache... BINGO!
_______________________________________________
Curl-and-php mailing list
Curl-and-php_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-and-php
Received on 2001-04-17