Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Commit fad4d87

Browse files
committed
Enable .htaccess files and mod_rewrite
1 parent 1f67246 commit fad4d87

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

setup.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,12 @@ GRANT ALL PRIVILEGES ON \`patchdemo\_%\`.* TO 'patchdemo'@'localhost';
2727
# dependencies for the website
2828
composer update --no-dev
2929
npm install --production
30+
31+
# enable .htaccess files
32+
echo "<Directory /var/www/html>
33+
AllowOverride All
34+
</Directory>" > /etc/apache2/sites-available/patchdemo.conf
35+
sudo a2ensite patchdemo
36+
# enable mod_rewrite
37+
sudo a2enmod rewrite
38+
sudo systemctl restart apache2

0 commit comments

Comments
 (0)