aboutsummaryrefslogtreecommitdiff
path: root/debian/boca-web.postinst
blob: 60899b7e158e1247a562fa560e457857f6770fd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

chown -R www-data.www-data /var/www/boca
chmod -R go-rwx /var/www/boca/src/private
chmod 4555 /usr/bin/safeexec

a2ensite default-ssl
a2enmod ssl
a2enmod socache_shmcb
a2enmod proxy_fcgi

# Make sure embedded apache php module is not loaded
a2dismod php7.2 || true

#enable php fpm instead
a2enconf php7.2-fpm

service apache2 restart || true