简体   繁体   中英

Can not access copied filesin var/www ubuntu

I'm on 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.
However, when I access those files from browser (I can not see the directory listing), I get 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 .
Any idea what might be the problem?

您必须将文件放在/var/www/html然后尝试sudo chmod -R 755 /var/www/html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM