This commit is contained in:
midoks
2019-11-30 18:28:34 +08:00
parent ed6d8e0d34
commit a6d70cd8a6
10 changed files with 57 additions and 61 deletions
+3 -3
View File
@@ -12,6 +12,7 @@ install_tmp=${rootPath}/tmp/mw_install.pl
version=7.4.0
PHP_VER=74
Install_php()
{
#------------------------ install start ------------------------------------#
@@ -19,11 +20,10 @@ echo "安装php-${version} ..." > $install_tmp
mkdir -p $sourcePath/php
mkdir -p $serverPath/php
if [ ! -d $sourcePath/php/php74 ];then
if [ ! -d $sourcePath/php/php${PHP_VER} ];then
wget --no-check-certificate -O $sourcePath/php/php-${version}.tar.gz https://github.com/php/php-src/archive/php-${version}.tar.gz
cd $sourcePath/php && tar zxvf $sourcePath/php/php-${version}.tar.gz
mv $sourcePath/php/php-src-php-${version} $sourcePath/php/php74
mv $sourcePath/php/php-src-php-${version} $sourcePath/php/php${PHP_VER}
fi
cd $sourcePath/php/php74