我在localhost上的服务器上运行一个php mvc项目它工作正常。但当我在服务器上上传相同的项目时,它给出了以下错误,没有得到任何线索
403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.
答案 0 :(得分:1)
将该文件夹的权限授予777
答案 1 :(得分:0)
这可能有两个原因
1)文件夹没有权限,所以需要提供以下权限: - sudo chmod -R 0777 folder-path
2)使用拒绝权限检查htacess文件是否驻留在此文件夹中