forked from infra/ansible
nextcloud: update to PHP 8.2
This commit is contained in:
parent
0c53d9dc3e
commit
8cefd0363b
@ -230,7 +230,7 @@ pm.max_spare_servers = 15
|
||||
; last request memory: 0
|
||||
;
|
||||
; Note: There is a real-time FPM status monitoring sample web page available
|
||||
; It's available in: /usr/share/php/8.1/fpm/status.html
|
||||
; It's available in: /usr/share/php/8.2/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
|
||||
@ -455,4 +455,6 @@ env[PATH] = /usr/local/bin:/usr/bin:/bin
|
||||
;php_admin_flag[log_errors] = on
|
||||
;php_admin_value[memory_limit] = 32M
|
||||
php_admin_value[memory_limit] = 512M
|
||||
php_admin_value[upload_max_filesize] = 512M
|
||||
php_admin_value[post_max_size] = 512M
|
||||
|
||||
|
@ -3,5 +3,5 @@
|
||||
- name: Restart nginx
|
||||
service: name=nginx state=restarted
|
||||
|
||||
- name: Restart php8.1-fpm
|
||||
service: name=php8.1-fpm state=restarted
|
||||
- name: Restart php8.2-fpm
|
||||
service: name=php8.2-fpm state=restarted
|
||||
|
@ -15,33 +15,33 @@
|
||||
- name: Install packages
|
||||
apt:
|
||||
name:
|
||||
- php8.1
|
||||
- php8.1-apcu
|
||||
- php8.1-bcmath
|
||||
- php8.1-bz2
|
||||
- php8.1-cli
|
||||
- php8.1-common
|
||||
- php8.1-curl
|
||||
- php8.1-dev
|
||||
- php8.1-fpm
|
||||
- php8.1-gd
|
||||
- php8.1-gmp
|
||||
- php8.1-imagick
|
||||
- php8.1-imap
|
||||
- php8.1-intl
|
||||
- php8.1-ldap
|
||||
- php8.1-mbstring
|
||||
- php8.1-mysql
|
||||
- php8.1-opcache
|
||||
- php8.1-pgsql
|
||||
- php8.1-readline
|
||||
- php8.1-redis
|
||||
- php8.1-soap
|
||||
- php8.1-sqlite3
|
||||
- php8.1-tidy
|
||||
- php8.1-xml
|
||||
- php8.1-xmlrpc
|
||||
- php8.1-zip
|
||||
- php8.2
|
||||
- php8.2-apcu
|
||||
- php8.2-bcmath
|
||||
- php8.2-bz2
|
||||
- php8.2-cli
|
||||
- php8.2-common
|
||||
- php8.2-curl
|
||||
- php8.2-dev
|
||||
- php8.2-fpm
|
||||
- php8.2-gd
|
||||
- php8.2-gmp
|
||||
- php8.2-imagick
|
||||
- php8.2-imap
|
||||
- php8.2-intl
|
||||
- php8.2-ldap
|
||||
- php8.2-mbstring
|
||||
- php8.2-mysql
|
||||
- php8.2-opcache
|
||||
- php8.2-pgsql
|
||||
- php8.2-readline
|
||||
- php8.2-redis
|
||||
- php8.2-soap
|
||||
- php8.2-sqlite3
|
||||
- php8.2-tidy
|
||||
- php8.2-xml
|
||||
- php8.2-xmlrpc
|
||||
- php8.2-zip
|
||||
- postgresql
|
||||
- python3-psycopg2
|
||||
|
||||
@ -70,20 +70,20 @@
|
||||
template: src=vhost.j2 dest=/etc/nginx/sites-available/nextcloud
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Configure php8.1-fpm
|
||||
copy: src=www.conf dest=/etc/php/8.1/fpm/pool.d/www.conf
|
||||
notify: Restart php8.1-fpm
|
||||
- name: Configure php8.2-fpm
|
||||
copy: src=www.conf dest=/etc/php/8.2/fpm/pool.d/www.conf
|
||||
notify: Restart php8.2-fpm
|
||||
|
||||
- name: Configure php8.1 opcache
|
||||
copy: src=opcache.ini dest=/etc/php/8.1/mods-available/opcache.ini
|
||||
notify: Restart php8.1-fpm
|
||||
- name: Configure php8.2 opcache
|
||||
copy: src=opcache.ini dest=/etc/php/8.2/mods-available/opcache.ini
|
||||
notify: Restart php8.2-fpm
|
||||
|
||||
- name: Enable vhost
|
||||
file: src=/etc/nginx/sites-available/nextcloud dest=/etc/nginx/sites-enabled/nextcloud state=link
|
||||
notify: Restart nginx
|
||||
|
||||
- name: Start php8.1-fpm
|
||||
service: name=php8.1-fpm state=started enabled=yes
|
||||
- name: Start php8.2-fpm
|
||||
service: name=php8.2-fpm state=started enabled=yes
|
||||
|
||||
- name: Start PostgreSQL
|
||||
service: name=postgresql state=started enabled=yes
|
||||
|
@ -32,7 +32,7 @@ server {
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header X-Robots-Tag none;
|
||||
add_header X-Robots-Tag "noindex, nofollow";
|
||||
add_header X-Download-Options noopen;
|
||||
add_header X-Permitted-Cross-Domain-Policies none;
|
||||
add_header 'Referrer-Policy' 'no-referrer';
|
||||
|
Loading…
Reference in New Issue
Block a user