Update openssl.sh

pull/680/head
Mr Chen 4 months ago
parent 7399cd7d45
commit 792b1348c1
  1. 24
      plugins/php/versions/common/openssl.sh

@ -114,26 +114,26 @@ Install_lib()
# fi # fi
$serverPath/php/$version/bin/phpize # $serverPath/php/$version/bin/phpize
# --with-openssl # --with-openssl
echo "./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS" # echo "./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS"
./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS # ./configure --with-php-config=$serverPath/php/$version/bin/php-config $OPTIONS
make clean && make && make install && make clean # make clean && make && make install && make clean
if [ -d $sourcePath/php${version} ];then # if [ -d $sourcePath/php${version} ];then
cd ${sourcePath} && rm -rf $sourcePath/php${version} # cd ${sourcePath} && rm -rf $sourcePath/php${version}
fi # fi
fi fi
if [ ! -f "$extFile" ];then # if [ ! -f "$extFile" ];then
echo "ERROR!" # echo "ERROR!"
return # return
fi # fi
echo "" >> $serverPath/php/$version/etc/php.ini echo "" >> $serverPath/php/$version/etc/php.ini
echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini
echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini # echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini
if [ -f "/etc/ssl/certs/ca-certificates.crt" ];then if [ -f "/etc/ssl/certs/ca-certificates.crt" ];then
echo "openssl.cafile=/etc/ssl/certs/ca-certificates.crt" >> $serverPath/php/$version/etc/php.ini echo "openssl.cafile=/etc/ssl/certs/ca-certificates.crt" >> $serverPath/php/$version/etc/php.ini
elif [ -f "/etc/pki/tls/certs/ca-bundle.crt" ];then elif [ -f "/etc/pki/tls/certs/ca-bundle.crt" ];then

Loading…
Cancel
Save