ERROR 403 in loading resources like CSS and JS in my index.php

前端 未结 2 979
北海茫月
北海茫月 2020-11-30 03:28

I\'m in Linux, Elementary OS, and installed lampp in opt.

My CSS and JS won\'t load. When I inspect my page through browser. The console says Failed to load resource

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 04:00

    You need to change permissions on the folder bootstrap/css. Your super user may be able to access it but it doesn't mean apache or nginx have access to it, that's why you still need to change the permissions.

    Tip: I usually make the apache/nginx's user group owner of that kind of folders and give 775 permission to it.

提交回复
热议问题