-1

Okay, So basically my question is this. My web files are like this var/www/public_html/index.html When I upload files and then go to correct domain on the internet I get "Forbidden You don't have permission to access /index.html on this server." and then it gives " Apache/2.4.12 (Ubuntu) Server at domain.com Port 443"

I know there might be an answer somewhere similar but I seriously can not find proper answer for me because ive trid chmod and all that stuff and nothing seems to work. Im grateful if you can give me an answer Thanks.

1 Answers1

1

Figured it out myself. if this ever happens to you just do this in root

sudo chgrp -R www-data /var/www/

fixed.

  • This may cause other issues, so be sure you understand what this does. – ceejayoz Aug 11 '17 at 17:10
  • I have absolutely no idea what this does. other then fix the above issue. I'm 20 just set up VPS and made virtual host been firing off commands right and left. No idea what im doing but everyone makes things so complicated its ridiculous there should just be one button that sets it all up perfect and secure – davidthom42 Aug 11 '17 at 17:21
  • "No idea what I'm doing" plus `sudo` can end very badly. – ceejayoz Aug 11 '17 at 18:55
  • I believe it... its my server though... worst thing i have to erase the whole thing and start over from scratch.. i got good back ups. Setting up VPS and doing all this purely to educate myself on how to work a system and learn command line. – davidthom42 Aug 11 '17 at 21:59