jiao_ben/shell/lanmp/res/install_soft.sh
2021-06-28 21:49:23 +08:00

27 lines
802 B
Bash

#!/bin/bash
#phpwind
if [ ! -f phpwind_GBK_8.7.zip ];then
wget http://oss.aliyuncs.com/aliyunecs/onekey/phpwind_GBK_8.7.zip
fi
rm -rf phpwind_GBK_8.7
unzip phpwind_GBK_8.7.zip
mv phpwind_GBK_8.7/upload/* /alidata/www/phpwind/
chmod -R 777 /alidata/www/phpwind/attachment
chmod -R 777 /alidata/www/phpwind/data
chmod -R 777 /alidata/www/phpwind/html
cd /alidata/www/phpwind/
find ./ -type f | xargs chmod 644
find ./ -type d | xargs chmod 755
chmod -R 777 attachment/ html/ data/
cd -
#phpmyadmin
if [ ! -f phpmyadmin.zip ];then
wget http://oss.aliyuncs.com/aliyunecs/onekey/phpMyAdmin-4.1.8-all-languages.zip
fi
rm -rf phpMyAdmin-4.1.8-all-languages
unzip phpMyAdmin-4.1.8-all-languages.zip
mv phpMyAdmin-4.1.8-all-languages /alidata/www/phpwind/phpmyadmin
chown -R www:www /alidata/www/phpwind/