【问题标题】:403 error on installing SuiteCRM安装 SuiteCRM 时出现 403 错误
【发布时间】:2018-06-23 14:16:09
【问题描述】:

我在需要输入数据库凭据的阶段在共享主机上安装 SuiteCRM 时遇到 403 Forbidden 错误。

在控制台上,文件 /cache/include/javascript/sugar_grp1_yui.js 上有一个报告 403 (Forbidden) 导致 YAHOO is not defined 错误并导致无法安装继续。

通过url直接访问文件时完全报错

Forbidden
You don't have permission to access /n/sfck/SuiteCRM-7.10.4/cache/include/javascript/sugar_field_grp.js on this server.
Server unable to read htaccess file, denying access to be safe

我试过了

  • SuiteCRM-7.10.4文件夹的权限设置为755
  • 禁用所有 .htaccess 文件(包括 WordPress 文件)
  • 创建空白 .htaccess 文件到/cache/include/javascript

备注

  • 我已尝试将冲突文件移至上层文件夹,可以正常访问(此问题仅出现在某些文件夹中)。
  • 我的网站上安装了 WordPress(不确定这是否会影响安装)。
  • 我的网站使用 DirectAdmin。

【问题讨论】:

  • 有公开网址吗,能给个链接吗?
  • 是的,here
  • phwt.me/SuiteCRM-7.10.4/install.php - 需要先安装,你搞定了吗?
  • 我正在安装过程中here。页面加载时弹出403错误,点击下一步时弹出YAHOO is not defined错误。

标签: http sugarcrm http-status-code-403 suitecrm


【解决方案1】:

您的cache 文件夹似乎无法被网络服务器写入(应该如此),请确保您已完成:

sudo chown -R www-data:www-data .   #or whoever else user your server use
sudo chmod -R 755 .
sudo chmod -R 775 cache custom modules themes data upload
sudo chmod 775 config_override.php 2>/dev/null

根据SuiteCRM installation steps.

【讨论】:

  • 感谢您的回答,但很抱歉,我正在使用 DirectAdmin 进行共享主机。我不认为我可以运行这些行。
  • 我没有看到通过 ssh 连接到共享主机的问题
  • 无论如何,问题似乎是您的网络服务器无法创建include/javascript/sugar_field_grp.js - 您只需要检查它是否存在。并检查 cache 的用户/权限 - 网络服务器应该能够在那里写
  • 您可以在 DirectAdmin 中使用文件管理器检查cache 权限 -dhost.com/kb/how-to-use-file-manager-in-direct-admin-panel
  • 文件sugar_field_grp.js已经在我下载的SuiteCRM.zip文件中并且cache文件夹权限已经是776
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-07-31
  • 2018-04-08
  • 1970-01-01
相关资源
最近更新 更多