Skip to content

Instantly share code, notes, and snippets.

View svrlopatrik's full-sized avatar
🏠
Working from home

Patrik Švrlo svrlopatrik

🏠
Working from home
  • Self-Employed
  • Košice (Slovakia)
View GitHub Profile
@v1shwa
v1shwa / apache-permission.sh
Last active October 28, 2023 08:03
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}