Unable to access php files copied to / var / www / or other folders

I'm on Ubuntu 12.10 with LAMP setup. I copied a subdirectory with project files (php, html, css) from xampp / htdocs on my Windows PC to / var / www / of my ubuntu. However, when I access these files from the browser (I see a list of directories), I get 403 Forbidden for all the files in this directory. So I create new dummy php files in this directory to see if I can access and it works. Any idea what could be the problem?

+4
source share
1 answer

may be a problem of ownership. try making chmod -R 775 /var/www/folder and / or chown -R domain:www-data /var/www/folder - where the domain is the user of this virtual host or www-data p>

for a list of directories that you can change in / etc / apache 2 / sites-available / default

+ Indices

see http://www.cyberciti.biz/faq/enabling-apache-file-directory-indexing/

+5
source

All Articles