如何恢复许可以访问我的网站/var/www/html/site_name
我一直在尝试使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我运行
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 docd /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.