There is no openssl.so extension with php7.2.x

时间:2018-05-14 17:33:00

标签: php linux openssl

I am not good with php, and my customer complains that openssl.so is not under the extension_dir, i do not know if this is normal or not to not find openssl.so under extension_dir, any reason for that ?

I have openssl installed,

i have also checked the below

enter image description here

enter image description here

enter image description here

ls -la /usr/lib/php/20170718 |grep -i openssl and openssl.so not there, any idea what to do ?

i have also enabled openssl extension from php.ini as following then restarted apache

vim /etc/php/7.2/apache2/php.ini enter image description here

i am using php7.2.4 with Debian Jessie 8.6 and apache 2.4.10

2 个答案:

答案 0 :(得分:2)

因为我发现php7.x.x在php内核中编译了openssl,并且不需要外部扩展来启用它

答案 1 :(得分:1)

php 7.1.x随附的openssl存在一些问题,但由于7.2.x之后的php版本内置了openssl 1.1.1,因此该问题已在以下版本解决。