如何恢复许可以访问我的网站/var/www/html/site_name

发布于 2025-02-12 06:25:27 字数 459 浏览 0 评论 0原文

我一直在尝试使用Apache2在Ubuntu 20.04上托管我的网站,最近我运行了以下代码,以使Apache能够读取,写入和执行sudo chmod 467 -r/var/var/www/www/www/html/site_name不幸的是,我无法再次访问目录“许可拒绝”错误。我正在按照此网站的说明在这里我用467而不是464弄乱了。这是我的第一次部署网站,所以我不太确定该如何处理。我还有其他问题,我真的很感谢任何在Ubuntu 20.04上运行的Apache2上部署烧瓶网站的经验的指导。请帮忙。

I've been trying to host my website on Ubuntu 20.04 using apache2 and I recently ran the following code to enable apache to read,write and execute sudo chmod 467 -R /var/www/html/site_name unfortunately I cannot access the directory again as I used to using cd /var/www/html/site_name as it returns a "Permission Denied" error. I was following instructions from this website here and I messed up by using 467 instead of 464. This is my first time deploying a website so I'm not quite sure of how I should go about it. I have further questions and I would really appreciate guidance from anyone who has experience deploying a flask website on apache2 running on ubuntu 20.04. Please help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月下客 2025-02-19 06:25:29

我运行sudo chmod 777 -r/var/www/html/site_name现在,当我做cd/var/www/www/html/site_name时,我可以访问我的站点文件夹。我希望这对某人有帮助,因为我在此处找到了答案的来源

I ran sudo chmod 777 -R /var/www/html/site_name and now when I do cd /var/www/html/site_name I can access my site folder. I hope this helps someone as for the source of the answer I found it in this question here here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文