mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
Run FreePBX php sessions in their own directory, to circumvent ownership problems
This commit is contained in:
parent
7713b6da18
commit
80005344e7
2 changed files with 14 additions and 0 deletions
|
@ -79,6 +79,18 @@
|
||||||
group: asterisk
|
group: asterisk
|
||||||
create: yes
|
create: yes
|
||||||
|
|
||||||
|
- name: FreePBX - Create php sessions directory
|
||||||
|
file:
|
||||||
|
path: "/var/lib/php/asterisk_sessions/"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: FreePBX - Set ownership for php sessions directory
|
||||||
|
file:
|
||||||
|
dest: "/var/lib/php/asterisk_sessions/"
|
||||||
|
owner: asterisk
|
||||||
|
group: asterisk
|
||||||
|
recurse: yes
|
||||||
|
|
||||||
- name: FreePBX - Install (just run once)
|
- name: FreePBX - Install (just run once)
|
||||||
command: "{{ item }}"
|
command: "{{ item }}"
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -15,6 +15,8 @@ DocumentRoot /var/www/html/
|
||||||
AssignUserId asterisk asterisk
|
AssignUserId asterisk asterisk
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
php_value session.save_path /var/lib/php/asterisk_sessions/
|
||||||
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/pbx-error.log
|
ErrorLog ${APACHE_LOG_DIR}/pbx-error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/pbx-access.log combined
|
CustomLog ${APACHE_LOG_DIR}/pbx-access.log combined
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue