大前端
-
CakePHP 2.x 版本的部署,Warning: SplFileInfo::openFile(/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in /lib/Cake/Cache/Engine/FileEngine.php on line 356
1、CakePHP 2.x 版本的部署,Warning: SplFileInfo::openFile(/mcloud/creditshop_back/creditshopback/…
-
MySQL 表注释、字段注释、值皆为乱码的解决
1、表的注释乱码。如图1 图1 2、字段的注释乱码。如图2 图2 3、表中的值乱码。如图3 图3 4、在 SQL 文件的最开头添加:SET NAMES utf8mb4; SET N…
-
在 Yii 2.0 的数据库迁移时报错:Exception: Redis error: ERR Client sent AUTH, but no password is set
1、在 Yii 2.0 的数据库迁移时报错:Exception: Redis error: ERR Client sent AUTH, but no password is set…
-
在 Shell 脚本中,避免 $APPID$ 报错:/config/init/config0.sh: line 184 APPID unbound variable 的排查分析(避免变量被替换)
1、在 Shell 脚本中,运行时报错:/config/init/config0.sh line 184 APPID unbound variable。如图1 图1 /config…
-
在 Rancher 环境变量中,在一个环境变量的值中引用另一个环境变量的实现
1、现阶段,有 4 个 Rancher 环境变量(未设置默认值,必须设置),其值包含公共部分:dev.xxx.cn PCS_API_CFG_SCMS_EDITOR_HOST_INF…
-
排查分析 http 请求响应 500 的过程,jQuery 属性操作 – attr() 方法,设置 src 属性导致
1、上传图片成功之后,GET 请求:https://console.xxx.cn/upload/20210319/20210385015127.png ,响应 500。根源在于上传…
-
CakePHP 2.x 版本的部署,BASE URL 调整的实现(/ -> /creditshopback)
1、当前的 BASE URL 为 /,https://creditshopback.xxx.cn/ 。响应 200。如图1 图1 2、编辑程序文件,输出当前的版本号为:2.6.4。…
-
在 nginx/1.17.8 下响应 502 Bad Gateway 的排查分析(不再启用 ModSecurity)
1、响应 200 的 Nginx 配置文件内容如下。 server { listen 82; charset utf-8; root /mcloud/creditshop_back…
-
微擎的部署,BASE URL 调整为:/cmpmain/web/index.php 的实现
1、微擎的部署,现阶段其 HOME URL 为:https://cmpmain.xxx.com 。其 BASE URL 为:/web/index.php。如图1 图1 2、微擎的部…
-
在存储中,新建目录与创建文件时,同时使用 root 与 nginx 用户时,报错:fopen(/webtv/wangjie/ccp_api/images/2021/03/08/1615170408.5917.1243625051.png): failed to open stream: Permission denied
1、在运行命令行脚本时,使用 root 用户创建目录:/webtv/wangjie/ccp_api/images/2021/03/08,创建文件:1615170036.5115.2…