How can i go about this permission issue i have with replacing the file "Could not save the file “/var/www/html/index.html”."

I have tried several posibilities of changing the permissions for the /var/www/ directory so i can access the file but failed.


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

chown $user:$user /var/www -R