I installed apache2 using this command sudo apt-get install lamp-server^
but now when I start it by typing localhost
in browser I only see message Index of /
and there is no any files or folders.
Tried to create index.html
and index.php
but I got same results.
Is there any fix for this?
/var/www/
) And, what are the permissions of these files? (Who is owner, group, and which access modes) What is the content of your/var/log/apache2/error.log
file? – Polosson Apr 21 '14 at 14:10/etc/apache2/sites-enabled/000-default.conf
file, (~ line 14) -> change the<Directory>
. – Polosson Apr 21 '14 at 15:29