【问题标题】:XAMPP 3.2.1 and typo3 6.2 OpenSSL not workingXAMPP 3.2.1 和typo3 6.2 OpenSSL 不工作
【发布时间】:2014-07-31 05:08:03
【问题描述】:

我确实有以下问题。尝试在 xampp 3.2.1 下的本地计算机上安装typo3 6.2 安装程序告诉我“PHP OpenSSL 扩展不起作用”

到目前为止我做了什么:

  • 在我的 php/bin 中检查了 extension=php_openssl.dll
  • “sysext”、“rsaauth”和“saltedpasswords”在我的typo3文件夹中
  • apache ssl_module 正在运行
  • 将 ssl 放入系统变量中

我也尝试降级到 OpenSSL 0.9.8,但仍然收到错误消息。顺便说一句,每次编辑后我都重新启动了 xampp。

我在 Windows 8.1 上运行 xampp

【问题讨论】:

  • 你检查过 PHP 错误日志吗?
  • 那里没有错误。我没有收到任何错误。 PHP Info 告诉我 SSL 已启动并正在运行,但 Typo3 告诉我它不是。我会改用 WAMP,也许会有所帮助。
  • phpinfo 仅告诉您模块是否已加载,而 TYPO3 实际检查它是否可用于创建密钥。因此,您需要检查所有目录是否可写等。
  • 将所有内容更改为 777,仍然无法正常工作。我可能会放弃并改变在线开发:(
  • 你查看stackoverflow.com/questions/15558321/…上的提示了吗?

标签: openssl xampp typo3


【解决方案1】:

从上面链接的异常中:

Windows 7 和 Wamp

  • 激活 PHP 模块 openssl
  • 假设您将 wamp 安装到 C:\wamp,openssl.exe 被找到到 C:\wamp\bin\apache\apache2.2.22\bin
  • 添加环境变量 OPENSSL_CONF 有值 C:\wamp\bin\apache\apache2.2.22\conf\openssl.cnf
  • 任一组 $TYPO3_CONF_VARS['SYS']['binSetup'] 如上所述或附加 C:\wamp\bin\apache\apache2.2.22\bin 到环境变量 PATH (不仅适用于 TYPO3 的每个 PHP 脚本)
  • 重启 wamp

【讨论】:

    【解决方案2】:

    ontypo3 6.2.7on win7 XAMPP 1.8.3 openSSL 错误的解决方案是创建 C:\ openssl-1.0.1i-win32\ssl 文件夹并将 E:\Portables\xampp\apache\conf\openssl.cnf 放入它。我从一个德国网站获得了有关它的指导。

    我是如何发现它的(以防万一版本发生变化)在 XAMPP 控制面板的 shell 中,openssl 命令给出“警告:无法打开配置文件:E:/Portables/xampp/apache/bin/openssl.cnf ”。但是在那里添加文件并没有帮助。我添加和删除了文件

    将 ;E:\Portables\xampp\apache\bin 添加到 PATH 环境变量(系统属性 -> 高级)。在 CMD 窗口(不是 XMPP shell)上运行命令 openssl,出现“警告:无法打开配置文件:c:/openssl-1.0.1i-win32/ssl/openssl.cnf”消息。在那里添加文件现在可以删除对环境变量PATH的添加。

    添加 OPENSSL_CONF 对我也不起作用

    【讨论】:

    • 我遇到了同样的问题,c:/openssl-1.0.1i-win32/ssl/openssl.cnf 是我的解决方案。但是我通过在 Apache bin 目录中运行 openssl.exe 检测到,因此它表明该路径中缺少 openssl.cnf。因此,我建议您在 cmd 中直接运行 openssl.exe 以查看具体内容。
    • 再试了一次,发现不用复制openssl.cnf到c:/openssl-1.0.1i-win32/ssl。您可以只创建一个环境或用户变量 OPENSSL_CONF。 openssl.cnf 的路径应该是变量的值 - 在我的情况下是 C:\xampp\apache\conf\openssl.cnf 或 @pampe 提到的 WAMP。现在您应该首先在 XAMPP/WAMP 控制面板中停止 Apache,然后 - 非常重要!!! - 您也应该自行退出控制面板 - 单击退出。打开面板并重新启动 Apache。它应该可以正常工作。现在您可以删除 c:/openssl-1.0.1i-win32/ssl/openssl.cnf。
    【解决方案3】:

    检查您的 httpd.conf,并尝试禁用 SSL,因为 PHP 有自己的 ssl.dll

    应该是这样的:

    #LoadModule ssl_module modules/mod_ssl.so   
    
    ...
    
    # Secure (SSL/TLS) connections
    #Include conf/extra/httpd-ssl.conf
    #
    # Note: The following must must be present to support
    # starting without SSL on platforms with no /dev/random equivalent
    # but a statically compiled-in mod_ssl.
    #
    #<IfModule ssl_module>
    #SSLRandomSeed startup builtin
    #SSLRandomSeed connect builtin
    #</IfModule>
    

    在这里找到:http://www.typo3forum.net/forum/typo3-installation-updates/74548-openssl-not-working-installation-xampp-aktiviert-php-ini.html

    如果这不起作用,请尝试关注此 wiki 帖子:

    http://wiki.typo3.org/Exception/CMS/1318283565

    【讨论】:

    • 第一件事没有效果,第二件事可以工作,但由于我无法安装,我什至没有我应该编辑的那些文件:(
    • HTTP SSL 部分与 PHP SSL 无关。
    猜你喜欢
    • 2016-07-19
    • 2018-12-09
    • 2017-08-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-21
    相关资源
    最近更新 更多