Modify owncloud role for debian stretch.
This commit is contained in:
parent
becadd373f
commit
37aef461cf
@ -35,7 +35,7 @@ group = www-data
|
||||
; (IPv6 and IPv4-mapped) on a specific port;
|
||||
; '/path/to/unix/socket' - to listen on a unix socket.
|
||||
; Note: This value is mandatory.
|
||||
listen = /var/run/php5-fpm.sock
|
||||
listen = /var/run/php-fpm.sock
|
||||
|
||||
; Set listen(2) backlog.
|
||||
; Default Value: 65535 (-1 on FreeBSD and OpenBSD)
|
||||
@ -225,7 +225,7 @@ pm.max_spare_servers = 3
|
||||
; last request memory: 0
|
||||
;
|
||||
; 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
|
||||
; anything, but it may not be a good idea to use the .php extension or it
|
||||
|
@ -3,5 +3,5 @@
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Restart php5-fpm
|
||||
service: name=php5-fpm state=restarted
|
||||
- name: Restart php7.0-fpm
|
||||
service: name=php7.0-fpm state=restarted
|
||||
|
@ -3,12 +3,16 @@
|
||||
- name: Install packages
|
||||
apt: name={{ item }} state=present
|
||||
with_items:
|
||||
- php5-apcu
|
||||
- php5-curl
|
||||
- php5-fpm
|
||||
- php5-gd
|
||||
- php5-ldap
|
||||
- php5-pgsql
|
||||
- php7.0-apcu
|
||||
- php7.0-curl
|
||||
- php7.0-fpm
|
||||
- php7.0-gd
|
||||
- php7.0-ldap
|
||||
- php7.0-mbstring
|
||||
- php7.0-pgsql
|
||||
- php7.0-xml
|
||||
- php7.0-zip
|
||||
- php-redis
|
||||
- postgresql
|
||||
- python-psycopg2
|
||||
|
||||
@ -36,16 +40,20 @@
|
||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/owncloud
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Configure php5-fpm
|
||||
copy: src=www.conf dest=/etc/php5/fpm/pool.d/www.conf
|
||||
notify: Restart php5-fpm
|
||||
- name: Configure php7.0-fpm
|
||||
copy: src=www.conf dest=/etc/php/7.0/fpm/pool.d/www.conf
|
||||
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
|
||||
file: src=/etc/nginx/sites-available/owncloud dest=/etc/nginx/sites-enabled/owncloud state=link
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Start php5-fpm
|
||||
service: name=php5-fpm state=started enabled=yes
|
||||
- name: Start php7.0-fpm
|
||||
service: name=php7.0-fpm state=started enabled=yes
|
||||
|
||||
- name: Start PostgreSQL
|
||||
service: name=postgresql state=started enabled=yes
|
||||
|
@ -75,7 +75,7 @@ server {
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param HTTPS on;
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user