2019-11-29 06:22:16 -05:00
|
|
|
#! /bin/sh
|
2023-11-10 05:47:32 -05:00
|
|
|
export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
|
|
|
|
|
export PATH=$PATH:/opt/homebrew/bin
|
|
|
|
|
|
2019-11-29 06:22:16 -05:00
|
|
|
DIR=$(cd "$(dirname "$0")"; pwd)
|
2022-07-10 05:01:47 -04:00
|
|
|
ROOT_DIR=$(cd "$(dirname "$0")"; pwd)
|
2019-11-29 06:22:16 -05:00
|
|
|
|
2022-07-03 00:30:42 -04:00
|
|
|
# cd /www/server/mdserver-web/scripts/quick && bash debug.sh
|
2022-07-10 04:51:34 -04:00
|
|
|
# cd /www/server/mdserver-web/plugins/php/versions && /bin/bash all_test.sh
|
2019-11-30 04:38:50 -05:00
|
|
|
|
2024-11-27 05:09:17 -05:00
|
|
|
# cd /www/server/mdserver-web/plugins/php && bash install.sh install 82
|
2022-07-15 23:28:56 -04:00
|
|
|
# cd /www/server/mdserver-web/plugins/php/versions/common && bash gd.sh install 73
|
2022-07-14 13:13:34 -04:00
|
|
|
# cd /www/server/mdserver-web/plugins/php/versions/common && bash swoole.sh install 54
|
2022-06-30 22:37:54 -04:00
|
|
|
|
2022-07-10 04:51:34 -04:00
|
|
|
|
2022-07-08 07:43:54 -04:00
|
|
|
# PHP_VER=52
|
|
|
|
|
# echo "php${PHP_VER} -- start"
|
|
|
|
|
# cmd_ext=$(ls -l $DIR/versions/$PHP_VER/ |awk '{print $9}')
|
|
|
|
|
# cd $DIR && /bin/bash install.sh install $PHP_VER
|
|
|
|
|
# for ii in $cmd_ext
|
|
|
|
|
# do
|
|
|
|
|
# if [ "install.sh" == "$ii" ];then
|
|
|
|
|
# echo '' > /tmp/t.log
|
|
|
|
|
# else
|
|
|
|
|
# cd $DIR/versions/$PHP_VER && /bin/bash $ii install $PHP_VER
|
|
|
|
|
# fi
|
|
|
|
|
# done
|
|
|
|
|
# echo "php${PHP_VER} -- end"
|
2022-06-30 22:37:54 -04:00
|
|
|
|
|
|
|
|
|
2025-07-20 00:23:19 -04:00
|
|
|
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81 82 83 84 85)
|
2022-06-30 03:03:06 -04:00
|
|
|
# PHP_VER_LIST=(81)
|
|
|
|
|
for PHP_VER in ${PHP_VER_LIST[@]}; do
|
|
|
|
|
echo "php${PHP_VER} -- start"
|
2022-07-10 05:13:51 -04:00
|
|
|
if [ ! -d /www/server/php/${PHP_VER} ];then
|
2022-07-10 05:10:04 -04:00
|
|
|
cd /www/server/mdserver-web/plugins/php && bash install.sh install ${PHP_VER}
|
2019-11-30 04:38:50 -05:00
|
|
|
fi
|
2022-06-30 03:03:06 -04:00
|
|
|
echo "php${PHP_VER} -- end"
|
2019-11-30 04:38:50 -05:00
|
|
|
done
|
2019-11-29 06:27:08 -05:00
|
|
|
|
2022-07-10 05:18:50 -04:00
|
|
|
cd $DIR
|
2025-07-20 00:23:19 -04:00
|
|
|
PHP_VER_LIST=(53 54 55 56 70 71 72 73 74 80 81 82 83 84 85)
|
2023-06-13 13:25:55 -04:00
|
|
|
# yar
|
2023-10-30 12:29:33 -04:00
|
|
|
PHP_EXT_LIST=(ZendGuardLoader pdo mysqlnd sqlite3 openssl opcache mcrypt fileinfo \
|
2025-07-20 03:59:53 -04:00
|
|
|
exif gd intl pcntl memcache memcached redis xdebug \
|
2025-07-20 04:04:38 -04:00
|
|
|
swoole yac apc mongo mongodb seaslog mbstring iconv event)
|
2022-07-10 04:51:34 -04:00
|
|
|
|
2022-07-10 05:18:50 -04:00
|
|
|
for PHP_VER in ${PHP_VER_LIST[@]}; do
|
|
|
|
|
echo "php${PHP_VER} -- start"
|
2022-07-10 04:51:34 -04:00
|
|
|
|
2022-07-12 10:58:34 -04:00
|
|
|
if [ ! -d /www/server/php/${PHP_VER} ];then
|
2022-07-14 01:54:12 -04:00
|
|
|
echo "php${PHP_VER} is not install!"
|
2022-07-14 23:28:29 -04:00
|
|
|
continue
|
2022-07-12 10:58:34 -04:00
|
|
|
fi
|
|
|
|
|
|
2022-07-10 05:18:50 -04:00
|
|
|
NON_ZTS_FILENAME=`ls /www/server/php/${PHP_VER}/lib/php/extensions | grep no-debug-non-zts`
|
|
|
|
|
for EXT in ${PHP_EXT_LIST[@]}; do
|
|
|
|
|
extFile=/www/server/php/${PHP_VER}/lib/php/extensions/${NON_ZTS_FILENAME}/${EXT}.so
|
|
|
|
|
echo "${PHP_VER} ${EXT} start"
|
|
|
|
|
if [ ! -f $extFile ];then
|
|
|
|
|
bash common.sh $PHP_VER install ${EXT}
|
|
|
|
|
fi
|
|
|
|
|
echo "${PHP_VER} ${EXT} end"
|
|
|
|
|
done
|
2022-07-10 04:51:34 -04:00
|
|
|
|
2022-07-10 05:18:50 -04:00
|
|
|
echo "php${PHP_VER} -- end"
|
|
|
|
|
done
|
2019-11-29 06:27:08 -05:00
|
|
|
|