use*_*037 15 php windows apache typo3 php-openssl
我在window7上安装了Typo3 6.2.2但是我收到如下错误信息:
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.
我试图在互联网上找到关于这个错误的解决方案,但我无法解决这个错误.
有人知道,你能帮我找到解决方案吗?谢谢.
Ala*_*lan 31
在XAMPP和Windows Vista上为我工作的解决方案:
激活PHP模块openssl
打开php.ini并取消注释(删除';'):
;extension=php_openssl.dll
通过运行phpinfo()仔细检查扩展是否已启用.
添加带有值的系统环境变量"OPENSSL_CONF"
C:\xampp\apache\conf\openssl.cnf
...假设您已将xampp安装到C:\ xampp中.
将路径设置为'openssl.exe',它位于C:\ xampp\apache\bin中
无论是设置$TYPO3_CONF_VARS['SYS']['binSetup']在
...\htdocs\typo3_src-6.2.x\typo3\sysext\core\Configuration\DefaultConfiguration.php以'openssl=c:/xampp/apache/bin/openssl.exe'
或者附加c:\xampp\apache\bin到环境变量PATH(不仅适用于每个PHP脚本TYPO3)
重启xampp
链接/来源:
要在Windows下在PHP上启用OpenSSL,必须采取三个步骤:
启用扩展 - 确保在php.ini中取消注释此行:
extension=php_openssl.dll
将PHP文件夹添加到Windows的PATH环境变量:
控制面板 - >系统 - >高级系统设置 - >环境变量.
在"系统变量"块中找到"路径"变量.
前置c:\php;在它前面,或任何你的PHP路径.
为Windows创建一个额外的OPENSSL_CONF环境变量,其中包含PHP的OpenSSL配置文件的完整路径:
控制面板 - >系统 - >高级系统设置 - >环境变量.
在System Variables块中,单击New ...
变量名:OPENSSL_CONF
变量值:C:\php\extras\ssl\openssl.cnf
修改该值以匹配PHP安装目录!
重新启动Windows,以便环境更改生效.
可以在此处找到有关Windows下PHP OpenSSL支持的详细信息.