File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1198,14 +1198,15 @@ if [ "$apache" = 'yes' ]; then
11981198 # Copy configuration files
11991199 cp -f $HESTIA_INSTALL_DIR /apache2/apache2.conf /etc/apache2/
12001200 cp -f $HESTIA_INSTALL_DIR /apache2/status.conf /etc/apache2/mods-enabled/
1201- cp -f $HESTIA_INSTALL_DIR /apache2/hestia-event.conf /etc/apache2/mods-enabled /
1201+ cp -f $HESTIA_INSTALL_DIR /apache2/hestia-event.conf /etc/apache2/conf-available /
12021202 cp -f $HESTIA_INSTALL_DIR /logrotate/apache2 /etc/logrotate.d/
12031203
12041204 # Enable needed modules
12051205 a2enmod rewrite > /dev/null 2>&1
12061206 a2enmod suexec > /dev/null 2>&1
12071207 a2enmod ssl > /dev/null 2>&1
12081208 a2enmod actions > /dev/null 2>&1
1209+ a2enconf --quiet hestia-event
12091210
12101211 if [ " $phpfpm " = ' yes' ]; then
12111212 # Disable prefork and php, enable event
Original file line number Diff line number Diff line change @@ -1190,14 +1190,15 @@ if [ "$apache" = 'yes' ]; then
11901190 # Copy configuration files
11911191 cp -f $HESTIA_INSTALL_DIR /apache2/apache2.conf /etc/apache2/
11921192 cp -f $HESTIA_INSTALL_DIR /apache2/status.conf /etc/apache2/mods-enabled/
1193- cp -f $HESTIA_INSTALL_DIR /apache2/hestia-event.conf /etc/apache2/mods-enabled /
1193+ cp -f $HESTIA_INSTALL_DIR /apache2/hestia-event.conf /etc/apache2/conf-available /
11941194 cp -f $HESTIA_INSTALL_DIR /logrotate/apache2 /etc/logrotate.d/
11951195
11961196 # Enable needed modules
11971197 a2enmod rewrite > /dev/null 2>&1
11981198 a2enmod suexec > /dev/null 2>&1
11991199 a2enmod ssl > /dev/null 2>&1
12001200 a2enmod actions > /dev/null 2>&1
1201+ a2enconf --quiet hestia-event
12011202
12021203 # Enable mod_ruid/mpm_itk or mpm_event
12031204 if [ " $phpfpm " = ' yes' ]; then
Original file line number Diff line number Diff line change 7474
7575# Add hestia-event.conf, if the server is running apache2
7676if [ " $WEB_SYSTEM " = " apache2" ]; then
77- if [ ! -e " /etc/apache2/mods-enabled/hestia-event.conf" ]; then
78- cp -f $HESTIA_INSTALL_DIR /apache2/hestia-event.conf /etc/apache2/mods-enabled/
77+ if [ ! -e " /etc/apache2/conf-enabled/hestia-event.conf" ]; then
78+ cp -f $HESTIA_INSTALL_DIR /apache2/hestia-event.conf /etc/apache2/conf-available/
79+ rm --force /etc/apache2/mods-enabled/hestia-event.conf # cleanup
80+ a2enconf --quiet hestia-event
7981 fi
8082fi
8183
You can’t perform that action at this time.
0 commit comments