From c22c03ab559c07af9ec9f33eb31b1a298e56cf5d Mon Sep 17 00:00:00 2001 From: rsonghuster Date: Fri, 22 Apr 2022 16:50:41 +0800 Subject: [PATCH] fix session path --- update.list | 4 +++- web-framework/php/discuz/publish.yaml | 2 +- web-framework/php/discuz/src/code/php.ini | 2 +- web-framework/php/discuz/src/code/start.sh | 3 +++ web-framework/php/ecshop/publish.yaml | 2 +- web-framework/php/ecshop/src/code/php.ini | 2 +- web-framework/php/ecshop/src/code/start.sh | 3 +++ web-framework/php/metinfo/publish.yaml | 2 +- web-framework/php/metinfo/src/code/php.ini | 2 +- web-framework/php/metinfo/src/code/start.sh | 3 +++ web-framework/php/typecho/publish.yaml | 4 ++-- web-framework/php/typecho/src/code/php.ini | 2 +- web-framework/php/typecho/src/code/start.sh | 3 +++ web-framework/php/whatsns/publish.yaml | 2 +- web-framework/php/whatsns/src/code/php.ini | 2 +- web-framework/php/whatsns/src/code/start.sh | 3 +++ web-framework/php/zblog/publish.yaml | 2 +- web-framework/php/zblog/src/code/php.ini | 2 +- web-framework/php/zblog/src/code/start.sh | 2 ++ 19 files changed, 33 insertions(+), 14 deletions(-) diff --git a/update.list b/update.list index b63868e07..cef5e281e 100755 --- a/update.list +++ b/update.list @@ -1,4 +1,6 @@ web-framework/php/ecshop web-framework/php/metinfo web-framework/php/typecho -web-framework/php/whatsns \ No newline at end of file +web-framework/php/whatsns +web-framework/php/discuz +web-framework/php/zblog \ No newline at end of file diff --git a/web-framework/php/discuz/publish.yaml b/web-framework/php/discuz/publish.yaml index 97436dcbe..cff820be5 100755 --- a/web-framework/php/discuz/publish.yaml +++ b/web-framework/php/discuz/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: start-discuz Provider: - 阿里云 -Version: 1.2.6 +Version: 1.2.7 Description: Crossday Discuz! Board(简称 Discuz!)是一套通用的社区论坛软件系统 HomePage: https://github.com/devsapp/start-web-framework Tags: diff --git a/web-framework/php/discuz/src/code/php.ini b/web-framework/php/discuz/src/code/php.ini index d5eb0b4ed..109063ca5 100644 --- a/web-framework/php/discuz/src/code/php.ini +++ b/web-framework/php/discuz/src/code/php.ini @@ -99,7 +99,7 @@ bcmath.scale = 0 [Session] session.save_handler = files -session.save_path=/mnt/auto/sessions +session.save_path=/mnt/auto/discuz/sessions session.use_strict_mode = 0 session.use_cookies = 1 session.use_only_cookies = 1 diff --git a/web-framework/php/discuz/src/code/start.sh b/web-framework/php/discuz/src/code/start.sh index d2594f14e..5add3c2de 100755 --- a/web-framework/php/discuz/src/code/start.sh +++ b/web-framework/php/discuz/src/code/start.sh @@ -5,6 +5,9 @@ mkdir -p /tmp/log/nginx/ mkdir -p /tmp/var/nginx/ mkdir -p /tmp/var/sessions/ +mkdir -p /mnt/auto/discuz/sessions +chown -R www-data:www-data /mnt/auto/discuz/sessions + chown -R www-data:www-data /mnt/auto/discuz echo "start php-fpm" diff --git a/web-framework/php/ecshop/publish.yaml b/web-framework/php/ecshop/publish.yaml index 803c8daf3..9bb3136d9 100755 --- a/web-framework/php/ecshop/publish.yaml +++ b/web-framework/php/ecshop/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: start-ecshop Provider: - 阿里云 -Version: 1.2.6 +Version: 1.2.7 Description: ECShop是一款B2C独立网店系统,适合企业及个人快速构建个性化网上商店。系统是基于PHP语言及MYSQL数据库构架开发的跨平台开源程序 HomePage: https://github.com/devsapp/start-web-framework Tags: diff --git a/web-framework/php/ecshop/src/code/php.ini b/web-framework/php/ecshop/src/code/php.ini index d5eb0b4ed..b6a384824 100644 --- a/web-framework/php/ecshop/src/code/php.ini +++ b/web-framework/php/ecshop/src/code/php.ini @@ -99,7 +99,7 @@ bcmath.scale = 0 [Session] session.save_handler = files -session.save_path=/mnt/auto/sessions +session.save_path=/mnt/auto/ecshop/sessions session.use_strict_mode = 0 session.use_cookies = 1 session.use_only_cookies = 1 diff --git a/web-framework/php/ecshop/src/code/start.sh b/web-framework/php/ecshop/src/code/start.sh index 9e45421ad..4dd430734 100755 --- a/web-framework/php/ecshop/src/code/start.sh +++ b/web-framework/php/ecshop/src/code/start.sh @@ -5,6 +5,9 @@ mkdir -p /tmp/log/nginx/ mkdir -p /tmp/var/nginx/ mkdir -p /tmp/var/sessions/ +mkdir -p /mnt/auto/ecshop/sessions +chown -R www-data:www-data /mnt/auto/ecshop/sessions + chown -R www-data:www-data /mnt/auto/ecshop echo "start php-fpm" diff --git a/web-framework/php/metinfo/publish.yaml b/web-framework/php/metinfo/publish.yaml index 94fc0487f..45881ed36 100755 --- a/web-framework/php/metinfo/publish.yaml +++ b/web-framework/php/metinfo/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: start-metinfo Provider: - 阿里云 -Version: 1.2.5 +Version: 1.2.6 Description: MetInfo 又称米拓企业建站系统,是采用PHP+Mysql架构的企业建站系统 HomePage: https://github.com/devsapp/start-web-framework Tags: diff --git a/web-framework/php/metinfo/src/code/php.ini b/web-framework/php/metinfo/src/code/php.ini index d5eb0b4ed..5c837ca74 100644 --- a/web-framework/php/metinfo/src/code/php.ini +++ b/web-framework/php/metinfo/src/code/php.ini @@ -99,7 +99,7 @@ bcmath.scale = 0 [Session] session.save_handler = files -session.save_path=/mnt/auto/sessions +session.save_path=/mnt/auto/metinfo/sessions session.use_strict_mode = 0 session.use_cookies = 1 session.use_only_cookies = 1 diff --git a/web-framework/php/metinfo/src/code/start.sh b/web-framework/php/metinfo/src/code/start.sh index fc3838290..1ff7234c9 100755 --- a/web-framework/php/metinfo/src/code/start.sh +++ b/web-framework/php/metinfo/src/code/start.sh @@ -5,6 +5,9 @@ mkdir -p /tmp/log/nginx/ mkdir -p /tmp/var/nginx/ mkdir -p /tmp/var/sessions/ +mkdir -p /mnt/auto/metinfo/sessions +chown -R www-data:www-data /mnt/auto/metinfo/sessions + chown -R www-data:www-data /mnt/auto/metinfo echo "start php-fpm" diff --git a/web-framework/php/typecho/publish.yaml b/web-framework/php/typecho/publish.yaml index bddb3b4d6..4b2528731 100755 --- a/web-framework/php/typecho/publish.yaml +++ b/web-framework/php/typecho/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: start-typecho Provider: - 阿里云 -Version: 1.2.6 +Version: 1.2.7 Description: Typecho是由type和echo两个词合成的,来自于开发团队的头脑风暴。Typecho基于PHP5开发,支持多种数据库,是一款内核强健﹑扩展方便﹑体验友好﹑运行流畅的轻量级开源博客程序 HomePage: https://github.com/devsapp/start-web-framework Tags: @@ -63,6 +63,6 @@ Parameters: functionName: title: 函数名 type: string - default: whatsns + default: typecho description: 函数名称,只能包含字母、数字、下划线和中划线。不能以数字、中划线开头。长度在 1-64 之间 diff --git a/web-framework/php/typecho/src/code/php.ini b/web-framework/php/typecho/src/code/php.ini index d5eb0b4ed..8e3ff141e 100644 --- a/web-framework/php/typecho/src/code/php.ini +++ b/web-framework/php/typecho/src/code/php.ini @@ -99,7 +99,7 @@ bcmath.scale = 0 [Session] session.save_handler = files -session.save_path=/mnt/auto/sessions +session.save_path=/mnt/auto/typecho/sessions session.use_strict_mode = 0 session.use_cookies = 1 session.use_only_cookies = 1 diff --git a/web-framework/php/typecho/src/code/start.sh b/web-framework/php/typecho/src/code/start.sh index 2c8fc7ecc..2f6d3dd3b 100755 --- a/web-framework/php/typecho/src/code/start.sh +++ b/web-framework/php/typecho/src/code/start.sh @@ -5,6 +5,9 @@ mkdir -p /tmp/log/nginx/ mkdir -p /tmp/var/nginx/ mkdir -p /tmp/var/sessions/ +mkdir -p /mnt/auto/typecho/sessions +chown -R www-data:www-data /mnt/auto/typecho/sessions + chown -R www-data:www-data /mnt/auto/typecho echo "start php-fpm" diff --git a/web-framework/php/whatsns/publish.yaml b/web-framework/php/whatsns/publish.yaml index 8f8fda52b..1a9c41f16 100755 --- a/web-framework/php/whatsns/publish.yaml +++ b/web-framework/php/whatsns/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: start-whatsns Provider: - 阿里云 -Version: 1.2.5 +Version: 1.2.6 Description: whatsns是一款社交类APP软件,站长可以对使用whatsns产品进行交流,可以搭建垂直领域社区的软件 HomePage: https://github.com/devsapp/start-web-framework Tags: diff --git a/web-framework/php/whatsns/src/code/php.ini b/web-framework/php/whatsns/src/code/php.ini index d5eb0b4ed..f6420a2b8 100644 --- a/web-framework/php/whatsns/src/code/php.ini +++ b/web-framework/php/whatsns/src/code/php.ini @@ -99,7 +99,7 @@ bcmath.scale = 0 [Session] session.save_handler = files -session.save_path=/mnt/auto/sessions +session.save_path=/mnt/auto/whatsns/sessions session.use_strict_mode = 0 session.use_cookies = 1 session.use_only_cookies = 1 diff --git a/web-framework/php/whatsns/src/code/start.sh b/web-framework/php/whatsns/src/code/start.sh index ee8e0c942..ee9f6de4a 100755 --- a/web-framework/php/whatsns/src/code/start.sh +++ b/web-framework/php/whatsns/src/code/start.sh @@ -5,6 +5,9 @@ mkdir -p /tmp/log/nginx/ mkdir -p /tmp/var/nginx/ mkdir -p /tmp/var/sessions/ +mkdir -p /mnt/auto/whatsns/sessions +chown -R www-data:www-data /mnt/auto/whatsns/sessions + chown -R www-data:www-data /mnt/auto/whatsns echo "start php-fpm" diff --git a/web-framework/php/zblog/publish.yaml b/web-framework/php/zblog/publish.yaml index ee25f44b1..75a72d1bf 100755 --- a/web-framework/php/zblog/publish.yaml +++ b/web-framework/php/zblog/publish.yaml @@ -2,7 +2,7 @@ Type: Application Name: start-zblog Provider: - 阿里云 -Version: 1.2.4 +Version: 1.2.5 Description: Z-Blog是由Z-Blog开发团队开发的一款小巧而强大的基于Asp和PHP平台的开源程序,致力于给用户提供优秀的博客写作体验 HomePage: https://github.com/devsapp/start-web-framework Tags: diff --git a/web-framework/php/zblog/src/code/php.ini b/web-framework/php/zblog/src/code/php.ini index d5eb0b4ed..6aa308780 100644 --- a/web-framework/php/zblog/src/code/php.ini +++ b/web-framework/php/zblog/src/code/php.ini @@ -99,7 +99,7 @@ bcmath.scale = 0 [Session] session.save_handler = files -session.save_path=/mnt/auto/sessions +session.save_path=/mnt/auto/Z-Blog/sessions session.use_strict_mode = 0 session.use_cookies = 1 session.use_only_cookies = 1 diff --git a/web-framework/php/zblog/src/code/start.sh b/web-framework/php/zblog/src/code/start.sh index 8179851fc..4be4d10cf 100755 --- a/web-framework/php/zblog/src/code/start.sh +++ b/web-framework/php/zblog/src/code/start.sh @@ -4,6 +4,8 @@ set +e mkdir -p /tmp/log/nginx/ mkdir -p /tmp/var/nginx/ mkdir -p /tmp/var/sessions/ +mkdir -p /mnt/auto/Z-Blog/sessions +chown -R www-data:www-data /mnt/auto/Z-Blog/sessions chown -R www-data:www-data /mnt/auto/Z-Blog