OpenSSL 错误 "PHP OpenSSL extension not working"
OpenSSL Error "PHP OpenSSL extension not working"
当我访问安装工具中的系统环境部分时,TYPO3会打印:
PHP OpenSSL extension not working
但它不会告诉我实际问题是什么。我怎样才能找出原因?
TYPO3 执行 openssl_pkey_new()
并且只检查 return 值,忽略任何实际错误。
要找出问题所在,自己执行函数即可。
echo '<?php openssl_pkey_new(); ?>' | php 2>&1
这可能会打印出如下错误:
PHP Warning: openssl_pkey_new(): Error loading request_extensions_section section v3_req of /usr/lib/ssl/openssl.cnf in - on line 1
这表明您的 OpenSSL 配置有问题。
只是一个补充,因为您可能需要重新编译 php 安装。
我现在正在使用 --with-openssl 标志在 Mac Sierra 上编译我的 php 7.1.8。我在配置过程中遇到了 missing evp.h 错误。我解决这个问题的方法是找到 evp.h,它可能安装在几个地方。获取最相关的 openssl 安装位置,可能在 /usr/local 中并将其用作可选目录:
./configure --with-open=/usr/local
希望对您有所帮助。
当我访问安装工具中的系统环境部分时,TYPO3会打印:
PHP OpenSSL extension not working
但它不会告诉我实际问题是什么。我怎样才能找出原因?
TYPO3 执行 openssl_pkey_new()
并且只检查 return 值,忽略任何实际错误。
要找出问题所在,自己执行函数即可。
echo '<?php openssl_pkey_new(); ?>' | php 2>&1
这可能会打印出如下错误:
PHP Warning: openssl_pkey_new(): Error loading request_extensions_section section v3_req of /usr/lib/ssl/openssl.cnf in - on line 1
这表明您的 OpenSSL 配置有问题。
只是一个补充,因为您可能需要重新编译 php 安装。 我现在正在使用 --with-openssl 标志在 Mac Sierra 上编译我的 php 7.1.8。我在配置过程中遇到了 missing evp.h 错误。我解决这个问题的方法是找到 evp.h,它可能安装在几个地方。获取最相关的 openssl 安装位置,可能在 /usr/local 中并将其用作可选目录:
./configure --with-open=/usr/local
希望对您有所帮助。