While installing TYPO3 CMS 7.4.0 I get the message:
PHP OpenSSL extension not working Something went wrong while trying to create a new private key for testing. Please check the integration of the PHP OpenSSL extension and if it is installed correctly.
Win 8.1 x64; PHP Version 5.6.12 VC11 x86 Thread Safe; Apache 2.4.16 VC11 Win32
I've read about similar issues and done everything recommended, but the problem is still here.
What I've done is:
extension=php_openssl.dll
set path to 'openssl.exe':
appended C:\Apache24\bin\ to the environment variable PATH
restarted apache/rebooted PC.
And nothing helped.
openssl_pkey_new()
using cmd and check if there's a problem with openssl?EDIT:
I've carefully read openssl.installation manual from official php site (sry, am not able to post more than 2 links due to lack of reputation here ^^) and nothing helped
When I run this script: error_reporting(E_ALL);$test = openssl_pkey_new();echo $test;
I get a blank page in my browser (while 'display_errors = On' and 'display_startup_errors = On' in php.ini)
In the shell on XAMPP control panel, openssl command gives
WARNING: can't open config file: C:/xampp/apache/bin/openssl.cnf OpenSSL>
While openssl.cnf is located in C:/xampp/apache/conf/openssl.cnf
And in PHP Variables there's _SERVER["OPENSSL_CONF"] C:/xampp/apache/conf/openssl.cnf
In the CMD openssl command gives
C:\WINDOWS\system32>openssl WARNING: can't open config file: D:\tmp\openssl-1.0.1p\vc11\x86/openssl.cnf OpenSSL>
Both libeay32.dll and ssleay32.dll are of version 1.0.1.16 and are the same in apache/bin and /php
There's SetEnv OPENSSL_CONF "C:/xampp/apache/conf/openssl.cnf"
in httpd-xampp.conf
答案 0 :(得分:0)
请尝试此处提及的所有选项:http://php.net/manual/en/openssl.installation.php
您可以使用php -a
打开php shell并运行上述命令。或者你可以自己写一个简约的php文件并从你的浏览器运行:
<?php
error_reporting(E_ALL);
$test = openssl_pkey_new();
echo $test;