composer和php-apt的优化

pull/331/head
midoks 2 years ago
parent a8b5df25d0
commit 1a99c53cb6
  1. 4
      plugins/php-apt/install.sh
  2. 3
      plugins/php-apt/versions/common.sh
  3. 18
      plugins/php-apt/versions/phplib.conf
  4. 4
      plugins/php-yum/install.sh
  5. 2
      plugins/php/install.sh

@ -85,14 +85,16 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-apt/${type} ];then
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install xml
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mcrypt
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mysqlnd
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mysql
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install gettext
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install redis
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install memcached
cd ${rootPath}/plugins/php-apt/versions && bash common.sh ${type:0:1}.${type:1:2} install mbstring
echo "install PHP-APT[${type}] extend end"
if [ ! -f /usr/local/bin/composer ];then
cd /tmp
curl -sS https://getcomposer.org/installer | php
curl -sS https://getcomposer.org/installer | /usr/bin/php${type:0:1}.${type:1:2}
mv composer.phar /usr/local/bin/composer
fi
fi

@ -57,5 +57,4 @@ fi
echo "apt install -y php${version}-${extName}"
echo "apt remove -y php${version}-${extName}"
systemctl restart php${version}-fpm

@ -35,6 +35,24 @@
"shell": "mysqlnd.sh",
"check": "mysqlnd"
},
{
"name": "mysql",
"versions": [
"56",
"70",
"71",
"72",
"73",
"74",
"80",
"81",
"82"
],
"type": "数据库",
"msg": "用于使用MySQL数据库的模块!",
"shell": "mysql.sh",
"check": "mysql"
},
{
"name": "sqlite3",
"versions": [

@ -82,11 +82,9 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php-yum/${type} ];then
cd ${rootPath}/plugins/php-yum/versions && bash common.sh ${type} install mbstring
echo "install PHP-YUM[${type}] extend end"
cd ${rootPath} && python3 ${rootPath}/plugins/php-yum/index.py restart ${type}
if [ ! -f /usr/local/bin/composer ];then
cd /tmp
curl -sS https://getcomposer.org/installer | php
curl -sS https://getcomposer.org/installer | /opt/remi/php${type}/root/usr/bin/php
mv composer.phar /usr/local/bin/composer
fi
fi

@ -82,7 +82,7 @@ if [ "${action}" == "install" ] && [ -d ${serverPath}/php/${type} ];then
if [ ! -f /usr/local/bin/composer ];then
cd /tmp
curl -sS https://getcomposer.org/installer | php
curl -sS https://getcomposer.org/installer | /www/server/php/${type}/bin/php
mv composer.phar /usr/local/bin/composer
fi
fi

Loading…
Cancel
Save