Forbidden You don't have permission to access on this server. Centos 6 / Laravel 4

前端 未结 5 1471
迷失自我
迷失自我 2021-01-04 09:23

i got a problem after i finish to set up LAMP and installed my laravel 4 application. Everything seem went well, when i go on my ip address url, it show me the first page of

5条回答
  •  既然无缘
    2021-01-04 10:02

    If you're using CentOS it could be an issue with selinux. Check to see if selinux is enabled with 'sestatus'. If it is enabled, you can check to see if that is the issue (temporarily) using 'sudo setenforce 0'. If apache can serve the site, then you just need to change the context of the files recursively using 'sudo chcon -R -t httpd_sys_content_t' (you can check the existing context using 'ls -Z'.

    Selinux may not be the issue, but it's worth checking on.

提交回复
热议问题