mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user