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 -

enter image description here

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

Popular posts from this blog

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

Windows XP installation, no previous version of Windows NT - Super User