Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tayyebi/7c4ba3da00d38d83938c3b25584abb89 to your computer and use it in GitHub Desktop.
Save tayyebi/7c4ba3da00d38d83938c3b25584abb89 to your computer and use it in GitHub Desktop.
sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
systemctl restart apache2
sudo a2enmod rewrite
<Directory /var/www/>
Options Indexes FollowSymLinks
IndexOptions ShowForbidden FancyIndexing HTMLTable
AllowOverride All
Require all granted
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment