重启rhel6,apache和mysql后,我已在otrs内安装了OTRS 4.0.5,同时加载http://localhost/otrs/index.pl
页面未加载,它提供:
致命错误 - 前端-OTRS 4
索引页面没有打开,我需要帮助找出原因。
我的错误日志是
[Tue Apr 28 15:23:56 2015] -e: DBI connect('database=otrs;host=127.0.0.1','otrs',...) failed: Can't connect to MySQL server on '127.0.0.1' (13) at /opt/otrs//Kernel/System/DB.pm line 184
ERROR: OTRS-CGI-72 Perl: 5.10.1 OS: linux Time: Tue Apr 28 15:23:56 2015
Message: Can't connect to MySQL server on '127.0.0.1' (13)
Can't write '/opt/otrs/var/tmp/CacheFileStorable/TemplateProvider/4/f/4fd2983f3605888b9d72424fb64ba2a1': Permission denied
Can't write '/opt/otrs/var/tmp/CacheFileStorable/TemplateProvider/3/9/39285138ef78930f9c3f9d967fbdd6bb': Permission denied
Can't write '/opt/otrs/var/tmp/CacheFileStorable/TemplateProvider/e/7/e73a715153f074752e829500e76f765b': Permission denied
mkdir /opt/otrs/var/tmp/CacheFileStorable/TemplateProvider/3/d: Permission denied at /opt/otrs//Kernel/System/Cache/FileStorable.pm line 88
Can't write '/opt/otrs/var/tmp/CacheFileStorable/TemplateProvider/e/6/e6f4f8c1130924d59deb478d08f08e5e': Permission denied
提前致谢!
答案 0 :(得分:1)
您应该禁用SELinux或添加策略。
要禁用SELinux编辑 / etc / selinux / config 并替换并设置 SELINUX =已禁用
此处描述了OTRS的示例策略: http://forums.otterhub.org/viewtopic.php?t=20669#p86818
答案 1 :(得分:0)
这是SELinux限制对文件系统的访问。您需要设置例外或完全禁用SELinux。