Apache、FastCGI 和 Prestashop 的文件权限问题

Apache、FastCGI 和 Prestashop 的文件权限问题

我在 CentOS 6.5 和 Apache 2.2.15 上运行 Prestashop 安装。不久前,我更新了 Apache,失去了通过 Prestashop 后台上传产品图片的能力,还出现了其他问题,例如 Prestashop 安装中的缓存文件夹的权限问题。

我的 Prestashop 安装文件夹和文件设置为 user1:psacln,我猜想在更新之前,Apache 设置为以该用户和组运行。但是现在,Apache 设置为以 apache:apache 运行,我推测这是导致问题的原因。但是,当我将 Apache 更改为以 user1:psacln 身份运行时,我在 /var/log/httpd/error_log 中收到以下错误:

[error] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /var/run/mod_fcgid/sock/20507.202
[warn] (13)Permission denied: mod_fcgid: spawn process /var/www/cgi-bin/cgi_wrapper/cgi_wrapper error

我尝试设置 chown -R user1:psacln /var/run/mod_fcgid,但此后连接到网站时只出现内部服务器错误 500。

因此,我想我真正的问题是除了 httpd.conf(用户、组)之外,我还需要在哪些地方进行更改才能使 FastCGI 正常运行?

相关内容