Skip to content

Commit

Permalink
Update openssl.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Jan 3, 2025
1 parent 7399cd7 commit 792b134
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions plugins/php/versions/common/openssl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,26 +114,26 @@ Install_lib()
# fi


$serverPath/php/$version/bin/phpize
# $serverPath/php/$version/bin/phpize
# --with-openssl
echo "./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
# echo "./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

if [ -d $sourcePath/php${version} ];then
cd ${sourcePath} && rm -rf $sourcePath/php${version}
fi
# if [ -d $sourcePath/php${version} ];then
# cd ${sourcePath} && rm -rf $sourcePath/php${version}
# fi

fi

if [ ! -f "$extFile" ];then
echo "ERROR!"
return
fi
# if [ ! -f "$extFile" ];then
# echo "ERROR!"
# return
# fi

echo "" >> $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
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
Expand Down

0 comments on commit 792b134

Please sign in to comment.