Skip to content

Instantly share code, notes, and snippets.

@v1shwa
Last active October 28, 2023 08:03
Show Gist options
  • Save v1shwa/82a79c5d57b7b0c4da2c to your computer and use it in GitHub Desktop.
Save v1shwa/82a79c5d57b7b0c4da2c to your computer and use it in GitHub Desktop.
Ubuntu: Fix for Permissions denied on /var/www/html
# 1. Change owner of /var/www/html directory to apache user, here: www-data
sudo chown -R www-data:www-data /var/www/html
# 2. Allow Group to edit
sudo chmod -R 775 /var/www/html
# 3. Add yourself to apache group(www-data)
sudo usermod -a -G www-data ${USER}
@uthranarayanan
Copy link

#Try
sudo chmod o+w /var/www/html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment