Modify owncloud role for debian stretch.

This commit is contained in:
Markus 2017-07-01 16:33:15 +02:00
parent becadd373f
commit 37aef461cf
4 changed files with 24 additions and 16 deletions

View File

@ -35,7 +35,7 @@ group = www-data
; (IPv6 and IPv4-mapped) on a specific port; ; (IPv6 and IPv4-mapped) on a specific port;
; '/path/to/unix/socket' - to listen on a unix socket. ; '/path/to/unix/socket' - to listen on a unix socket.
; Note: This value is mandatory. ; Note: This value is mandatory.
listen = /var/run/php5-fpm.sock listen = /var/run/php-fpm.sock
; Set listen(2) backlog. ; Set listen(2) backlog.
; Default Value: 65535 (-1 on FreeBSD and OpenBSD) ; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
@ -225,7 +225,7 @@ pm.max_spare_servers = 3
; last request memory: 0 ; last request memory: 0
; ;
; Note: There is a real-time FPM status monitoring sample web page available ; Note: There is a real-time FPM status monitoring sample web page available
; It's available in: /usr/share/php5/fpm/status.html ; It's available in: /usr/share/php/7.0/fpm/status.html
; ;
; Note: The value must start with a leading slash (/). The value can be ; Note: The value must start with a leading slash (/). The value can be
; anything, but it may not be a good idea to use the .php extension or it ; anything, but it may not be a good idea to use the .php extension or it

View File

@ -3,5 +3,5 @@
- name: Restart nginx - name: Restart nginx
service: name=nginx state=restarted service: name=nginx state=restarted
- name: Restart php5-fpm - name: Restart php7.0-fpm
service: name=php5-fpm state=restarted service: name=php7.0-fpm state=restarted

View File

@ -3,12 +3,16 @@
- name: Install packages - name: Install packages
apt: name={{ item }} state=present apt: name={{ item }} state=present
with_items: with_items:
- php5-apcu - php7.0-apcu
- php5-curl - php7.0-curl
- php5-fpm - php7.0-fpm
- php5-gd - php7.0-gd
- php5-ldap - php7.0-ldap
- php5-pgsql - php7.0-mbstring
- php7.0-pgsql
- php7.0-xml
- php7.0-zip
- php-redis
- postgresql - postgresql
- python-psycopg2 - python-psycopg2
@ -36,16 +40,20 @@
template: src=vhost.j2 dest=/etc/nginx/sites-available/owncloud template: src=vhost.j2 dest=/etc/nginx/sites-available/owncloud
notify: Restart nginx notify: Restart nginx
- name: Configure php5-fpm - name: Configure php7.0-fpm
copy: src=www.conf dest=/etc/php5/fpm/pool.d/www.conf copy: src=www.conf dest=/etc/php/7.0/fpm/pool.d/www.conf
notify: Restart php5-fpm notify: Restart php7.0-fpm
- name: Configure php7.0 opcache
copy: src=opcache.ini dest=/etc/php/7.0/mods-available/opcache.ini
notify: Restart php7.0-fpm
- name: Enable vhost - name: Enable vhost
file: src=/etc/nginx/sites-available/owncloud dest=/etc/nginx/sites-enabled/owncloud state=link file: src=/etc/nginx/sites-available/owncloud dest=/etc/nginx/sites-enabled/owncloud state=link
notify: Restart nginx notify: Restart nginx
- name: Start php5-fpm - name: Start php7.0-fpm
service: name=php5-fpm state=started enabled=yes service: name=php7.0-fpm state=started enabled=yes
- name: Start PostgreSQL - name: Start PostgreSQL
service: name=postgresql state=started enabled=yes service: name=postgresql state=started enabled=yes

View File

@ -75,7 +75,7 @@ server {
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on; fastcgi_param HTTPS on;
fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice fastcgi_param modHeadersAvailable true; #Avoid sending the security headers twice
fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_intercept_errors on; fastcgi_intercept_errors on;
} }