From 97d8c2aad2d6eb688b4fdbce0e965ba04d2f0345 Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 29 Nov 2019 23:00:04 +0800 Subject: [PATCH] up --- plugins/php/all_test.sh | 239 +++++++++++++++-------------- plugins/php/versions/53/install.sh | 64 ++++---- plugins/php/versions/54/install.sh | 44 +++--- plugins/php/versions/55/install.sh | 47 +++--- plugins/php/versions/56/install.sh | 56 +++---- plugins/php/versions/70/install.sh | 51 +++--- plugins/php/versions/71/install.sh | 51 +++--- plugins/php/versions/72/install.sh | 51 +++--- plugins/php/versions/73/install.sh | 50 +++--- plugins/php/versions/73/yar.sh | 3 +- plugins/php/versions/74/install.sh | 51 +++--- 11 files changed, 358 insertions(+), 349 deletions(-) diff --git a/plugins/php/all_test.sh b/plugins/php/all_test.sh index f66d732e5..0cf05fcbc 100644 --- a/plugins/php/all_test.sh +++ b/plugins/php/all_test.sh @@ -3,102 +3,103 @@ export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local DIR=$(cd "$(dirname "$0")"; pwd) -PHP_VER=53 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" - - - -PHP_VER=54 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" - - -PHP_VER=55 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" - - -PHP_VER=56 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" - - - -PHP_VER=70 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" - - -PHP_VER=71 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" +# PHP_VER=53 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" + + + +# PHP_VER=54 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" + + +# PHP_VER=55 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" + + +# PHP_VER=56 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" + + + +# PHP_VER=70 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" + + +# PHP_VER=71 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" PHP_VER=72 echo "php${PHP_VER} -- start" cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh +echo $DIR +cd $DIR && /bin/bash install.sh install $PHP_VER for ii in $cmd_ext do if [ "install.sh" == "$ii" ];then @@ -110,33 +111,33 @@ done echo "php${PHP_VER} -- end" -PHP_VER=73 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" - - -PHP_VER=74 -echo "php${PHP_VER} -- start" -cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') -cd $DIR/versions/$PHP_VER && sh install.sh -for ii in $cmd_ext -do - if [ "install.sh" == "$ii" ];then - echo '' - else - cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER - fi -done -echo "php${PHP_VER} -- end" +# PHP_VER=73 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" + + +# PHP_VER=74 +# echo "php${PHP_VER} -- start" +# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}') +# cd $DIR/versions/$PHP_VER && sh install.sh +# for ii in $cmd_ext +# do +# if [ "install.sh" == "$ii" ];then +# echo '' +# else +# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER +# fi +# done +# echo "php${PHP_VER} -- end" diff --git a/plugins/php/versions/53/install.sh b/plugins/php/versions/53/install.sh index 069f4c10a..ad675f04d 100755 --- a/plugins/php/versions/53/install.sh +++ b/plugins/php/versions/53/install.sh @@ -28,7 +28,6 @@ if [ ! -d $sourcePath/php/php-5.3.29 ];then fi - if [ -f $serverPath/php/53/bin/php.dSYM ];then mv $serverPath/php/53/bin/php.dSYM $serverPath/php/53/bin/php fi @@ -54,37 +53,40 @@ else OPTIONS="${OPTIONS} --with-curl" fi + +if [ ! -d $serverPath/php/53 ];then # --enable-intl \ -cd $sourcePath/php/php-5.3.29 && ./configure \ ---prefix=$serverPath/php/53 \ ---exec-prefix=$serverPath/php/53 \ ---with-config-file-path=$serverPath/php/53/etc \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-zip \ ---enable-exif \ ---enable-hash \ ---enable-libxml \ ---enable-simplexml \ ---enable-dom \ ---enable-filter \ ---enable-fileinfo \ ---enable-pcntl \ ---enable-bcmath \ ---enable-xml \ ---enable-ftp \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sockets \ ---enable-mbstring \ ---enable-mysqlnd \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean + cd $sourcePath/php/php-5.3.29 && ./configure \ + --prefix=$serverPath/php/53 \ + --exec-prefix=$serverPath/php/53 \ + --with-config-file-path=$serverPath/php/53/etc \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-zip \ + --enable-exif \ + --enable-hash \ + --enable-libxml \ + --enable-simplexml \ + --enable-dom \ + --enable-filter \ + --enable-fileinfo \ + --enable-pcntl \ + --enable-bcmath \ + --enable-xml \ + --enable-ftp \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sockets \ + --enable-mbstring \ + --enable-mysqlnd \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi if [ -f $serverPath/php/53/bin/php.dSYM ];then diff --git a/plugins/php/versions/54/install.sh b/plugins/php/versions/54/install.sh index 63869949c..3da73904e 100755 --- a/plugins/php/versions/54/install.sh +++ b/plugins/php/versions/54/install.sh @@ -40,27 +40,29 @@ else OPTIONS="${OPTIONS} --with-curl" fi -cd $sourcePath/php/php-5.4.45 && ./configure \ ---prefix=$serverPath/php/54 \ ---exec-prefix=$serverPath/php/54 \ ---with-config-file-path=$serverPath/php/54/etc \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-mysqlnd \ ---enable-zip \ ---enable-mbstring \ ---enable-sockets \ ---enable-ftp \ ---enable-simplexml \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean +if [ ! -d $serverPath/php/54 ];then + cd $sourcePath/php/php-5.4.45 && ./configure \ + --prefix=$serverPath/php/54 \ + --exec-prefix=$serverPath/php/54 \ + --with-config-file-path=$serverPath/php/54/etc \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-mysqlnd \ + --enable-zip \ + --enable-mbstring \ + --enable-sockets \ + --enable-ftp \ + --enable-simplexml \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/55/install.sh b/plugins/php/versions/55/install.sh index 228e0d0c6..5ef76d69b 100755 --- a/plugins/php/versions/55/install.sh +++ b/plugins/php/versions/55/install.sh @@ -37,29 +37,30 @@ else OPTIONS="${OPTIONS} --with-curl" fi - -cd $sourcePath/php/php-5.5.38 && ./configure \ ---prefix=$serverPath/php/55 \ ---exec-prefix=$serverPath/php/55 \ ---with-config-file-path=$serverPath/php/55/etc \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-mysqlnd \ ---enable-zip \ ---enable-simplexml \ ---enable-intl \ ---enable-mbstring \ ---enable-sockets \ ---enable-ftp \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean +if [ ! -d $serverPath/php/55 ];then + cd $sourcePath/php/php-5.5.38 && ./configure \ + --prefix=$serverPath/php/55 \ + --exec-prefix=$serverPath/php/55 \ + --with-config-file-path=$serverPath/php/55/etc \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-mysqlnd \ + --enable-zip \ + --enable-simplexml \ + --enable-intl \ + --enable-mbstring \ + --enable-sockets \ + --enable-ftp \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/56/install.sh b/plugins/php/versions/56/install.sh index 3acd98ae6..b892ec9f1 100755 --- a/plugins/php/versions/56/install.sh +++ b/plugins/php/versions/56/install.sh @@ -38,33 +38,35 @@ else OPTIONS="${OPTIONS} --with-curl" fi -cd $sourcePath/php/php-5.6.36 && ./configure \ ---prefix=$serverPath/php/56 \ ---exec-prefix=$serverPath/php/56 \ ---with-config-file-path=$serverPath/php/56/etc \ ---with-zlib-dir=$serverPath/lib/zlib \ ---with-mysql=mysqlnd \ ---with-pdo-mysql=mysqlnd \ ---with-mysqli=mysqlnd \ ---enable-zip \ ---enable-mbstring \ ---enable-simplexml \ ---enable-intl \ ---enable-ftp \ ---enable-sockets \ ---enable-pcntl \ ---enable-shmop \ ---enable-intl \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make clean && make && make install && make clean +if [ ! -d $serverPath/php/56 ];then + cd $sourcePath/php/php-5.6.36 && ./configure \ + --prefix=$serverPath/php/56 \ + --exec-prefix=$serverPath/php/56 \ + --with-config-file-path=$serverPath/php/56/etc \ + --with-zlib-dir=$serverPath/lib/zlib \ + --with-mysql=mysqlnd \ + --with-pdo-mysql=mysqlnd \ + --with-mysqli=mysqlnd \ + --enable-zip \ + --enable-mbstring \ + --enable-simplexml \ + --enable-intl \ + --enable-ftp \ + --enable-sockets \ + --enable-pcntl \ + --enable-shmop \ + --enable-intl \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make clean && make && make install && make clean +fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/70/install.sh b/plugins/php/versions/70/install.sh index d9aceac67..e67329589 100755 --- a/plugins/php/versions/70/install.sh +++ b/plugins/php/versions/70/install.sh @@ -38,31 +38,32 @@ else OPTIONS="${OPTIONS} --with-curl" fi - -cd $sourcePath/php/php-7.0.30 && ./configure \ ---prefix=$serverPath/php/70 \ ---exec-prefix=$serverPath/php/70 \ ---with-config-file-path=$serverPath/php/70/etc \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-mysqlnd \ ---with-mysqli=mysqlnd \ ---with-pdo-mysql=mysqlnd \ ---enable-zip \ ---enable-mbstring \ ---enable-simplexml \ ---enable-ftp \ ---enable-sockets \ ---enable-intl \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean +if [ ! -d $serverPath/php/70 ];then + cd $sourcePath/php/php-7.0.30 && ./configure \ + --prefix=$serverPath/php/70 \ + --exec-prefix=$serverPath/php/70 \ + --with-config-file-path=$serverPath/php/70/etc \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-mysqlnd \ + --with-mysqli=mysqlnd \ + --with-pdo-mysql=mysqlnd \ + --enable-zip \ + --enable-mbstring \ + --enable-simplexml \ + --enable-ftp \ + --enable-sockets \ + --enable-intl \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/71/install.sh b/plugins/php/versions/71/install.sh index 4068d5b4d..849d1dc13 100755 --- a/plugins/php/versions/71/install.sh +++ b/plugins/php/versions/71/install.sh @@ -37,31 +37,32 @@ else OPTIONS="${OPTIONS} --with-curl" fi - -cd $sourcePath/php/php-${version} && ./configure \ ---prefix=$serverPath/php/71 \ ---exec-prefix=$serverPath/php/71 \ ---with-config-file-path=$serverPath/php/71/etc \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-mysqlnd \ ---with-mysqli=mysqlnd \ ---with-pdo-mysql=mysqlnd \ ---enable-zip \ ---enable-mbstring \ ---enable-simplexml \ ---enable-ftp \ ---enable-wddx \ ---enable-sockets \ ---enable-intl \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean +if [ ! -d $serverPath/php/71 ];then + cd $sourcePath/php/php-${version} && ./configure \ + --prefix=$serverPath/php/71 \ + --exec-prefix=$serverPath/php/71 \ + --with-config-file-path=$serverPath/php/71/etc \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-mysqlnd \ + --with-mysqli=mysqlnd \ + --with-pdo-mysql=mysqlnd \ + --enable-zip \ + --enable-mbstring \ + --enable-simplexml \ + --enable-ftp \ + --enable-wddx \ + --enable-sockets \ + --enable-intl \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/72/install.sh b/plugins/php/versions/72/install.sh index 09aa31790..976d199d1 100755 --- a/plugins/php/versions/72/install.sh +++ b/plugins/php/versions/72/install.sh @@ -38,31 +38,32 @@ else OPTIONS="${OPTIONS} --with-curl" fi - -cd $sourcePath/php/php-${version} && ./configure \ ---prefix=$serverPath/php/72 \ ---exec-prefix=$serverPath/php/72 \ ---with-config-file-path=$serverPath/php/72/etc \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-mysqlnd \ ---with-mysqli=mysqlnd \ ---with-pdo-mysql=mysqlnd \ ---enable-zip \ ---enable-mbstring \ ---enable-simplexml \ ---enable-sockets \ ---enable-intl \ ---enable-ftp \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean +if [ ! -d $serverPath/php/72 ];then + cd $sourcePath/php/php-${version} && ./configure \ + --prefix=$serverPath/php/72 \ + --exec-prefix=$serverPath/php/72 \ + --with-config-file-path=$serverPath/php/72/etc \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-mysqlnd \ + --with-mysqli=mysqlnd \ + --with-pdo-mysql=mysqlnd \ + --enable-zip \ + --enable-mbstring \ + --enable-simplexml \ + --enable-sockets \ + --enable-intl \ + --enable-ftp \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/73/install.sh b/plugins/php/versions/73/install.sh index 8a1a0b1fa..26cfc670c 100755 --- a/plugins/php/versions/73/install.sh +++ b/plugins/php/versions/73/install.sh @@ -42,31 +42,31 @@ else fi -# -# -cd $sourcePath/php/php-${version} && ./configure \ ---prefix=$serverPath/php/73 \ ---exec-prefix=$serverPath/php/73 \ ---with-config-file-path=$serverPath/php/73/etc \ ---enable-mysqlnd \ ---with-mysqli=mysqlnd \ ---with-pdo-mysql=mysqlnd \ ---enable-mbstring \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-ftp \ ---enable-sockets \ ---enable-simplexml \ ---enable-intl \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean +if [ ! -d $serverPath/php/73 ];then + cd $sourcePath/php/php-${version} && ./configure \ + --prefix=$serverPath/php/73 \ + --exec-prefix=$serverPath/php/73 \ + --with-config-file-path=$serverPath/php/73/etc \ + --enable-mysqlnd \ + --with-mysqli=mysqlnd \ + --with-pdo-mysql=mysqlnd \ + --enable-mbstring \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-ftp \ + --enable-sockets \ + --enable-simplexml \ + --enable-intl \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi #------------------------ install end ------------------------------------# } diff --git a/plugins/php/versions/73/yar.sh b/plugins/php/versions/73/yar.sh index 7c7c3bbb8..74a29758f 100755 --- a/plugins/php/versions/73/yar.sh +++ b/plugins/php/versions/73/yar.sh @@ -33,8 +33,7 @@ Install_lib() fi if [ ! -f "$extFile" ];then - - + php_lib=$sourcePath/php_lib mkdir -p $php_lib diff --git a/plugins/php/versions/74/install.sh b/plugins/php/versions/74/install.sh index 43a2eb600..42464dbdb 100755 --- a/plugins/php/versions/74/install.sh +++ b/plugins/php/versions/74/install.sh @@ -42,32 +42,31 @@ else fi -# -# -cd $sourcePath/php/php-${version} && ./configure \ ---prefix=$serverPath/php/74 \ ---exec-prefix=$serverPath/php/74 \ ---with-config-file-path=$serverPath/php/74/etc \ ---enable-mysqlnd \ ---with-mysqli=mysqlnd \ ---with-pdo-mysql=mysqlnd \ ---enable-mbstring \ ---with-zlib-dir=$serverPath/lib/zlib \ ---enable-ftp \ ---enable-sockets \ ---enable-simplexml \ ---enable-intl \ ---enable-wddx \ ---enable-soap \ ---enable-posix \ ---enable-sysvmsg \ ---enable-sysvsem \ ---enable-sysvshm \ ---disable-fileinfo \ -$OPTIONS \ ---enable-fpm \ -&& make && make install && make clean - +if [ ! -d $serverPath/php/74 ];then + cd $sourcePath/php/php-${version} && ./configure \ + --prefix=$serverPath/php/74 \ + --exec-prefix=$serverPath/php/74 \ + --with-config-file-path=$serverPath/php/74/etc \ + --enable-mysqlnd \ + --with-mysqli=mysqlnd \ + --with-pdo-mysql=mysqlnd \ + --enable-mbstring \ + --with-zlib-dir=$serverPath/lib/zlib \ + --enable-ftp \ + --enable-sockets \ + --enable-simplexml \ + --enable-intl \ + --enable-wddx \ + --enable-soap \ + --enable-posix \ + --enable-sysvmsg \ + --enable-sysvsem \ + --enable-sysvshm \ + --disable-fileinfo \ + $OPTIONS \ + --enable-fpm \ + && make && make install && make clean +fi #------------------------ install end ------------------------------------# }