Opening HTML files on localhost (Ubuntu)

女生的网名这么多〃 提交于 2019-12-11 20:18:55

问题


I am using Ubuntu 14.04 and installed Apache 2.4.7 quite a while back, so I do not really remember all the configuration changes I made when I installed it first. Here is my problem. When I type http://localhost, it shows up my localhost on the web browser.

I can open PHP files without any trouble.

But when I try to open HTML files on the localhost, I get this;

How do I fix the 'no permission to access .html on server' problem?


回答1:


Done!

I opened up terminal and enter:

sudo chmod -R 755 /var/www

and it worked. Thanks to all those who helped!



来源:https://stackoverflow.com/questions/27763867/opening-html-files-on-localhost-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!