我从源代码在RHEL7上配置了php --with-openssl,但phpinfo显示禁用了OpenSSL支持(安装ext / openssl)

时间:2018-08-23 17:58:54

标签: php linux openssl lamp php-extension

请在下面找到状态

# php -i |grep -A 5 openssl
Configure Command =>  './configure'  '--prefix=/usr/local/php' '--enable-fpm' '--disable-short-tags' '--with-openssl' '--with-pcre-regex' '--with-pcre-jit' '--with-zlib' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--with-curl' '--enable-exif' '--with-gd' '--enable-intl' '--with-mysqli' '--enable-pcntl' '--with-pdo-mysql' '--enable-soap' '--enable-sockets' '--enable-mbstring' '--with-xmlrpc' '--enable-zip' '--with-webp-dir' '--with-jpeg-dir'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/php/lib
Loaded Configuration File => (none)
Scan this dir for additional .ini files => (none)
--
openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2k-fips  26 Jan 2017
OpenSSL Header Version => OpenSSL 1.0.2k-fips  26 Jan 2017
Openssl default config => /etc/pki/tls/openssl.cnf

Directive => Local Value => Master Value
openssl.cafile => no value => no value
openssl.capath => no value => no value

pcntl

pcntl support => enabled

php -m显示openssl

但是我无法运行需要openssl的php,也无法在phpinfo.php上运行以下消息: enter image description here

请帮助我需要从源代码安装此扩展。 我使用--with-openssl和--with-openssl-dir选项来启用此扩展,并且在进行安装之前效果很好 请帮助

0 个答案:

没有答案