mdserver-web/plugins/php-apt/versions/all_test.sh

57 lines
1.7 KiB
Bash
Raw Permalink Normal View History

2022-07-09 13:13:34 -04:00
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
2022-07-09 13:30:06 -04:00
# cd /www/server/mdserver-web/plugins/php-apt/versions && /bin/bash all_test.sh
2025-07-19 23:35:41 -04:00
# cd /www/server/mdserver-web/plugins/php-apt && bash install.sh install 85
2022-07-09 13:13:34 -04:00
2022-07-10 03:12:24 -04:00
# cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/php-apt/index.py start 5.6
2022-07-09 13:30:06 -04:00
# cd /www/server/mdserver-web
# cd /www/server/mdserver-web/plugins/php-apt/versions && /bin/bash common.sh 5.6 install yaf
2022-07-10 01:02:15 -04:00
# cd /www/server/mdserver-web/plugins/php-apt/versions && /bin/bash common.sh 7.1 install swoole
2022-07-09 13:13:34 -04:00
2022-07-09 13:30:06 -04:00
2025-01-03 22:56:03 -05:00
PHP_VER_LIST=(56 70 71 72 73 74 80 81 82 83 84)
2022-07-09 13:30:06 -04:00
for PHP_VER in ${PHP_VER_LIST[@]}; do
echo "php${PHP_VER} -- start"
2022-07-09 13:38:06 -04:00
if [ ! -d /www/server/php-apt/${PHP_VER} ];then
2022-07-09 13:36:02 -04:00
cd /www/server/mdserver-web/plugins/php-apt && bash install.sh install ${PHP_VER}
2022-07-09 13:30:06 -04:00
fi
echo "php${PHP_VER} -- end"
done
2022-07-10 02:40:01 -04:00
cd $curPath
2025-01-03 22:56:03 -05:00
PHP_VER_LIST_EXT=(56 70 71 72 73 74 80 81 82 83 84)
2022-07-10 04:12:20 -04:00
PHP_EXT_LIST=(ioncube pdo mysqlnd sqlite3 odbc opcache mcrypt fileinfo \
2022-07-09 22:28:14 -04:00
exif gd intl memcache memcached redis imagick xdebug xhprof \
swoole yaf phalcon yar mongodb yac solr seaslog mbstring zip zstd)
2022-07-09 13:49:36 -04:00
for PHP_VER in ${PHP_VER_LIST_EXT[@]}; do
echo "php${PHP_VER} EXT -- start"
version=${PHP_VER:0:1}.${PHP_VER:1:2}
2022-07-09 13:30:06 -04:00
extVer=`bash $curPath/lib.sh $version`
for EXT in ${PHP_EXT_LIST[@]}; do
2022-07-09 13:52:44 -04:00
extFile=/usr/lib/php/${extVer}/${EXT}.so
2022-07-09 22:28:14 -04:00
echo "${PHP_VER} ${EXT} start"
2022-07-09 13:56:28 -04:00
if [ ! -f $extFile ];then
2022-07-09 13:58:17 -04:00
/bin/bash common.sh $version install ${EXT}
2022-07-09 13:30:06 -04:00
fi
2022-07-09 22:28:14 -04:00
echo "${PHP_VER} ${EXT} end"
2022-07-09 13:30:06 -04:00
done
2022-07-09 13:49:36 -04:00
echo "php${PHP_VER} EXT -- end"
2022-07-10 02:57:41 -04:00
done