简体   繁体   English

无法访问var / www ubuntu中的复制文件

[英]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 . 因此,我安装了Apache2mysql 5.5phpmyadmin ,还对系统进行了更新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.

相关问题 无法访问复制到/ var / www /或其他文件夹的php文件 - Can't access php files copied into /var/www/ or other folders 访问被拒绝 - PHP move_uploaded_file - Ubuntu LAMP / var / www - access denied - PHP move_uploaded_file - Ubuntu LAMP /var/www 如何在Ubuntu的apache2服务器上获得对/ var / www / html的编辑权限 - how to get edit access to /var/www/html on apache2 server on Ubuntu Www-data用户访问/ var / www /之外的文件/文件夹 - Www-data User to Access files/folder outside of /var/www/ 在var / www / image目录中启用写权限Ubuntu Server - Enabling write permissions Ubuntu Server in var/www/image directory linux(ubuntu)apache www文件夹访问问题 - linux (ubuntu) apache www folder access issue LAMP服务器安装失败。当复制到var / www / html /中时,本地主机未列出诸如codeigniter之类的目录 - LAMP server installaion failed.. localhost does not list directories like codeigniter when copied in var/www/html/ 为什么不能将网页保存到我的/ var / www目录中? - Why can't save the web page into my /var/www directory? 无法在“ / var / www /”中编辑文件-已经遵循了很多教程 - Can't edit files in '/var/www/' - Already followed a lot of tutorials 实时站点是一个ubuntu,无法在本地计算机var / www上设置wamp - Live site is an ubuntu, setting up wamp on local machine var/www not resolved
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM