错误403加载资源像CSS和JS在我的index.php [英] ERROR 403 in loading resources like CSS and JS in my index.php
问题描述
我在Linux,基本操作系统,并在opt中安装lampp。
I'm in Linux, Elementary OS, and installed lampp in opt.
我的CSS和JS将无法加载。当我通过浏览器检查我的页面。控制台说
无法加载资源:服务器响应状态为403(禁止)
我真的确定我的目录是正确的。
My CSS and JS won't load. When I inspect my page through browser. The console says Failed to load resource: the server responded with a status of 403 (Forbidden) I'm really sure that my directories are correct.
这是错误
This is the error
推荐答案
您需要更改文件夹bootstrap / css。
您的超级用户可能能够访问它,但这并不意味着apache或nginx可以访问它,这就是为什么你仍然需要更改权限。
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.
提示:我通常使apache / nginx的用户组所有者的那种文件夹,并授予775权限。
Tip: I usually make the apache/nginx's user group owner of that kind of folders and give 775 permission to it.
这篇关于错误403加载资源像CSS和JS在我的index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!