server - I made mistake - sudo chown /var/www/html/htaccess.txt www-data:www-data - Ask Ubuntu
i made mistake when use chown command. write
sudo chown /var/www/html/htaccess.txt www-data:www-data
insted of
sudo chown www-data:www-data /var/www/html/htaccess.txt
the answer -
so - stuff /var/www/html disappeared, , site
forbidden don't have permission access / on server. apache/2.4.7 (ubuntu) server @ www.a-r-c-h.net port 80
the 2 commands above 1 quoted in questions messed system up.
these 2 fix permissions directories , files:
sudo find /var/www/html -type d -exec chmod 755 {} \; sudo find /var/www/html -type f -exec chmod 644 {} \;
your
sudo chmod 644 /var/www/html
removed execute permissions directories.
Comments
Post a Comment