[英]Can not access copied filesin var/www ubuntu
I'm on Ubuntu 14.10 . 我在Ubuntu 14.10上。
I copied a subdirectory which has project files (php, html, css) from xampp/htdocs on my Windows PC into /var/www/ of my ubuntu. 我从Windows PC上的xampp / htdocs复制了一个包含项目文件(php,html,css)的子目录到ubuntu的/ var / www /中。
However, when I access those files from browser (I can not see the directory listing), I get 402 Object not found
. 但是,当我从浏览器访问那些文件时(看不到目录列表),我得到
402 Object not found
。 Hence that, I installed Apache2
, mysql 5.5
and phpmyadmin
and also conducted update apt-get update for the system and I granted chmod-R 777 access to /var/www
. 因此,我安装了
Apache2
, mysql 5.5
和phpmyadmin
,还对系统进行了更新apt-get update,并授予chmod-R 777访问/var/www
权限。
Any idea what might be the problem? 知道可能是什么问题吗?
您必须将文件放在/var/www/html
然后尝试sudo chmod -R 755 /var/www/html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.