0

I’ve looked in the forums (both here and on CodeIgniter.com) but haven’t found any answers that help. I have a CI 2.0.2 app that I developed locally in MAMP. It works perfectly. I copied the entire CI install up to our QA server, and am getting 403 Forbidden errors on every single page (even the default.) The file permissions are the same as all our other (non-CI) apps on that server. We don’t have a .htaccess file on the server anywhere, aside from the ones in the CI install. I’ve renamed those files so they shouldn’t be causing any access errors, but I still can’t get at any of my pages.

Can anyone point me in the right direction? I really don’t know where else to look at this point.

4

1 回答 1

2

您提到的问题通常发生在您的网络服务器(apache)没有对应用程序目录的读取权限时。确保该目录的权限为 755 并查看是否有效。

正如 Jakub 在评论中指出的那样,通常(从安全角度来看)chmod最好不要在所有目录上使用 755 ,而是chown将其绑定到用户帐户并允许组读/写权限,这是一个很好的做法。将 apache 添加到用户组将消除此类问题。

于 2011-07-06T18:47:12.740 回答