|
Posted by Chuck Anderson on 10/13/05 10:03
Thanks for getting back again, Mike.
>Chuck,
>
>> have found nothing about setting environment variables. ?? Do I need
>>to do something more in php (php.ini) or in Apache httpd.conf?
>>
>This is what is contained in the readme-ssl.txt file (php4):
>
>To use the CSR and key generation functions from PHP, you will need to
>install an openssl.cnf file. We have included a sample file that can be used
>for this purpose in this folder alongside this readme file.
>
>The default path for the openssl.cnf file is determined as follows:
>
>OPENSSL_CONF environmental variable, if set, is assumed to hold the
>path to the file.
>
>
The compiled binary installer for openSSL did set this environment variable.
I'm really stumped here. I seem to have everything I need to get Php to
allow me to open https streams, but it is just not happening.
I downloaded and installed the latest Php4 for Windows from php.net and
it is working. If I call get_loaded_extensions, I see:
Array
(
[0] => standard
[1] => bcmath
[2] => calendar
[3] => ctype
[4] => com
[5] => ftp
[6] => mysql
[7] => odbc
[8] => overload
[9] => pcre
[10] => session
[11] => tokenizer
[12] => xml
[13] => wddx
[14] => zlib
[15] => apache
[16] => curl
[17] => gd
[18] => mhash
[19] => openssl
)
So the openssl extension is loaded.
The Windows environment variable OPENSSL_CONF is set to
C:\OpenSSL\bin\openssl.cnf (and that is where I have installed OpenSSL.
The two necessary dll files are in my Windows/System32 folder
(libeay32.dll and ssleay32.dll).
And lastly - running php -m (show compiled in modules) from a command
prompt displays:
[PHP Modules]
bcmath
calendar
com
ctype
curl
ftp
gd
mhash
mysql
odbc
openssl
overload
pcre
session
standard
tokenizer
wddx
xml
zlib
So the openssl module is compiled in my copy of Php.
Still, when I do Phpinfo, I get:
Registered PHP Streams - php, http, ftp, compress.zlib
No https and no ftps.
I have run Php as CGI and as an Apache module and it makes no difference.
I can not find anything else to check (open_basedir is not set), so
....... I am stumped.
I can not get https and ftps to be registered streams and it appears
that I have done everything needed to do so. ??
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
[Back to original message]
|