宝塔面板下的 php-fpm 启用 openssl 扩展
cd /www/server/php/74/src/ext/openssl # 进入php-fpm-74的扩展目录
mv config0.m4 config.m4 # 重命名config配置文件,使其生效
make clean # 先清除下缓存,若初次执行的响应不常规则不管
/www/server/php/74/bin/phpize # 生成configure文件
./configure --with-openssl --with-php-config=/www/server/php/74/bin/php-config # 预编译
make && make install # 安装
### 若make之后没有 "Build complete." 字样,则make clean清除缓存再重新make
# 检查openssl.so文件是否在以下目录生成,如无则重新make install
ll /www/server/php/74/lib/php/extensions/no-debug*/ | grep openssl
# 启用openssl扩展(宝塔面板自动启用了openssl,预先检查一遍extension的配置后关闭即可)
[root@xxx ~]# grep extension=openssl /www/server/php/74/etc/php.ini
;extension=openssl