This commit is contained in:
midoks
2022-07-01 02:37:57 +08:00
parent fb11d31844
commit cf0b00891e
13 changed files with 577 additions and 6 deletions
+13 -1
View File
@@ -36,8 +36,14 @@ Install_lib()
return
fi
cd $serverPath/mdserver-web/plugins/php/lib && /bin/bash openssl.sh
if [ ! -f "$extFile" ];then
if [ ! -d $sourcePath/php${version}/ext ];then
cd $serverPath/mdserver-web/plugins/php && /bin/bash install.sh install ${version}
fi
cd $sourcePath/php${version}/ext/${LIBNAME}
if [ ! -f "config.m4" ];then
@@ -45,11 +51,17 @@ Install_lib()
fi
$serverPath/php/$version/bin/phpize
./configure --with-php-config=$serverPath/php/$version/bin/php-config
./configure --with-php-config=$serverPath/php/$version/bin/php-config \
--with-openssl=${serverPath}/lib/openssl
make clean && make && make install && make clean
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