大前端
-
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/app/tmp/cache/persistent/myapp_cake_core_file_map): failed to open stream: Permission denied in /mclou…
-
MySQL 表注释、字段注释、值皆为乱码的解决
1、表的注释乱码。如图1 图1 2、字段的注释乱码。如图2 图2 3、表中的值乱码。如图3 图3 4、在 SQL 文件的最开头添加:SET NAMES utf8mb4; SET NAMES utf8mb4; 5、表注释、字段注释、值皆不再乱码。如图4 图4
-
在 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。如图1 图1 *** applying m191113_084655_sync_redis_wx_auth_data_to_mysql Exception: Redis error: …
-
在 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/init/config0.sh: line 184: APPID: unbound variable 2、查看 Shell 脚本,其赋值为:https://con…
-
在 Rancher 环境变量中,在一个环境变量的值中引用另一个环境变量的实现
1、现阶段,有 4 个 Rancher 环境变量(未设置默认值,必须设置),其值包含公共部分:dev.xxx.cn PCS_API_CFG_SCMS_EDITOR_HOST_INFO=https://editor.dev.xxx.cn # 内容管理系统编辑器的 HOME URL PCS_API_CFG_PCS_A…
-
排查分析 http 请求响应 500 的过程,jQuery 属性操作 – attr() 方法,设置 src 属性导致
1、上传图片成功之后,GET 请求:https://console.xxx.cn/upload/20210319/20210385015127.png ,响应 500。根源在于上传成功后的图片的域名不是:https://console.xxx.cn ,而是:https://web.xxx.cn 。如图1 图1 …
-
CakePHP 2.x 版本的部署,BASE URL 调整的实现(/ -> /creditshopback)
1、当前的 BASE URL 为 /,https://creditshopback.xxx.cn/ 。响应 200。如图1 图1 2、编辑程序文件,输出当前的版本号为:2.6.4。如图2 图2 echo Configure::version(); exit; 3、现在期望网址调整为:https://con…
-
在 nginx/1.17.8 下响应 502 Bad Gateway 的排查分析(不再启用 ModSecurity)
1、响应 200 的 Nginx 配置文件内容如下。 server { listen 82; charset utf-8; root /mcloud/creditshop_back/app/webroot; index index.php; location / { modsecurity on; modsecurity_rules_file /etc/nginx/mo…
-
微擎的部署,BASE URL 调整为:/cmpmain/web/index.php 的实现
1、微擎的部署,现阶段其 HOME URL 为:https://cmpmain.xxx.com 。其 BASE URL 为:/web/index.php。如图1 图1 2、微擎的部署,希望调整一下,新阶段其 HOME URL 为:https://front.xxx.com 。以确保所有产品前端…
-
在存储中,新建目录与创建文件时,同时使用 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.2027450777.png。目录的所有者与所属的组皆为 root。如图1 图1 2、在运行 HTTP 接口时,使…