1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

pbx: fix 'killall -9 safe_asterisk' + 'AllowOverride All' in /etc/apache2/apache2.conf

This commit is contained in:
root 2021-08-08 01:47:07 -04:00
parent e6174f672e
commit f769092718
3 changed files with 8 additions and 3 deletions

View file

@ -135,7 +135,7 @@
- ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }} --dbname {{ asterisk_db_dbname }} --cdrdbname {{ asterisk_db_cdrdbname }}
- name: "Run 'fwconsole stop' and 'killall -9 safe_asterisk' to stop both Asterisk processes -- this avoids \"Unable to run Pre-Asterisk hooks, because Asterisk is already running\" in 'journalctl -u freepbx' logs"
command:
command: "{{ item }}"
with_items:
- fwconsole stop
- killall -9 safe_asterisk # 2021-08-08: Stronger medicine needed for 64-bit Ubuntu Server 21.04 on RPi 4. Originally from @jvonau's PR #2912.

View file

@ -60,4 +60,9 @@
# - proxy_http
# - rewrite
# 2021-08-08: Security risks? But official install doc recommends this:
# https://wiki.freepbx.org/display/FOP/Installing+FreePBX+16+on+Debian+10.9
- name: Run "sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf"
command: sed -i 's/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
when: not pbx_try_nginx

View file

@ -34,8 +34,8 @@
# name: httpd
- name: Install Asterisk
include_tasks: asterisk.yml
#- name: Install Asterisk
# include_tasks: asterisk.yml
- name: Install FreePBX
include_tasks: freepbx.yml