nextcloud: make compatiable with Debian 12

This commit is contained in:
Markus 2024-02-01 17:56:04 +01:00
parent 265aa863fd
commit a219a7ecaf
5 changed files with 44 additions and 53 deletions

View File

@ -46,7 +46,7 @@ Currently the following hosts are installed:
| beryllium.binary-kitchen.net | Debian 12 | Web * | | beryllium.binary-kitchen.net | Debian 12 | Web * |
| boron.binary-kitchen.net | Debian 12 | Gitea | | boron.binary-kitchen.net | Debian 12 | Gitea |
| carbon.binary-kitchen.net | Debian 12 | Jabber | | carbon.binary-kitchen.net | Debian 12 | Jabber |
| nitrogen.binary-kitchen.net | Debian 11 | NextCloud | | nitrogen.binary-kitchen.net | Debian 12 | NextCloud |
| oxygen.binary-kitchen.net | Debian 12 | Shell | | oxygen.binary-kitchen.net | Debian 12 | Shell |
| fluorine.binary-kitchen.net | Debian 12 | Web (div. via Docker) | | fluorine.binary-kitchen.net | Debian 12 | Web (div. via Docker) |
| neon.binary-kitchen.net | Debian 12 | Auth. DNS | | neon.binary-kitchen.net | Debian 12 | Auth. DNS |

View File

@ -1,12 +1,4 @@
; configuration for php opcache module ; configuration for php opcache module
; priority=10 ; priority=10
zend_extension=opcache.so zend_extension=opcache.so
opcache.jit=off
opcache.enable=1
opcache.enable_cli=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=10000
opcache.memory_consumption=128
opcache.save_comments=1
opcache.revalidate_freq=1
opcache.jit_buffer_size=100M

View File

@ -230,7 +230,7 @@ pm.max_spare_servers = 15
; 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/php/8.2/fpm/status.html ; It's available in: /usr/share/php/8.3/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 php8.2-fpm - name: Restart php8.3-fpm
service: name=php8.2-fpm state=restarted service: name=php8.3-fpm state=restarted

View File

@ -10,48 +10,47 @@
apt_key: url="https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg" apt_key: url="https://collaboraoffice.com/downloads/gpg/collaboraonline-release-keyring.gpg"
- name: Enable collaboraoffice repository - name: Enable collaboraoffice repository
apt_repository: repo="deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-debian11 ./" apt_repository: repo="deb https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb ./"
- name: Install packages - name: Install packages
apt: apt:
name: name:
- php8.2 - php8.3
- php8.2-apcu - php8.3-apcu
- php8.2-bcmath - php8.3-bcmath
- php8.2-bz2 - php8.3-bz2
- php8.2-cli - php8.3-cli
- php8.2-common - php8.3-common
- php8.2-curl - php8.3-curl
- php8.2-dev - php8.3-fpm
- php8.2-fpm - php8.3-gd
- php8.2-gd - php8.3-gmp
- php8.2-gmp - php8.3-imagick
- php8.2-imagick - php8.3-imap
- php8.2-imap - php8.3-intl
- php8.2-intl - php8.3-ldap
- php8.2-ldap - php8.3-mbstring
- php8.2-mbstring - php8.3-mysql
- php8.2-mysql - php8.3-opcache
- php8.2-opcache - php8.3-pgsql
- php8.2-pgsql - php8.3-readline
- php8.2-readline - php8.3-redis
- php8.2-redis - php8.3-soap
- php8.2-soap - php8.3-sqlite3
- php8.2-sqlite3 - php8.3-tidy
- php8.2-tidy - php8.3-xml
- php8.2-xml - php8.3-xmlrpc
- php8.2-xmlrpc - php8.3-zip
- php8.2-zip
- postgresql - postgresql
- python3-psycopg2 - python3-psycopg2
- name: Configure PostgreSQL database - name: Configure PostgreSQL user
postgresql_db: name={{ nextcloud_dbname }} postgresql_user: name={{ nextcloud_dbuser }} password={{ nextcloud_dbpass }}
become: true become: true
become_user: postgres become_user: postgres
- name: Configure PostgreSQL user - name: Configure PostgreSQL database
postgresql_user: db={{ nextcloud_dbname }} name={{ nextcloud_dbuser }} password={{ nextcloud_dbpass }} priv=ALL state=present postgresql_db: name={{ nextcloud_dbname }} owner={{ nextcloud_dbuser }}
become: true become: true
become_user: postgres become_user: postgres
@ -70,20 +69,20 @@
template: src=vhost.j2 dest=/etc/nginx/sites-available/nextcloud template: src=vhost.j2 dest=/etc/nginx/sites-available/nextcloud
notify: Restart nginx notify: Restart nginx
- name: Configure php8.2-fpm - name: Configure php8.3-fpm
copy: src=www.conf dest=/etc/php/8.2/fpm/pool.d/www.conf copy: src=www.conf dest=/etc/php/8.3/fpm/pool.d/www.conf
notify: Restart php8.2-fpm notify: Restart php8.3-fpm
- name: Configure php8.2 opcache - name: Configure php8.3 opcache
copy: src=opcache.ini dest=/etc/php/8.2/mods-available/opcache.ini copy: src=opcache.ini dest=/etc/php/8.3/mods-available/opcache.ini
notify: Restart php8.2-fpm notify: Restart php8.3-fpm
- name: Enable vhost - name: Enable vhost
file: src=/etc/nginx/sites-available/nextcloud dest=/etc/nginx/sites-enabled/nextcloud state=link file: src=/etc/nginx/sites-available/nextcloud dest=/etc/nginx/sites-enabled/nextcloud state=link
notify: Restart nginx notify: Restart nginx
- name: Start php8.2-fpm - name: Start php8.3-fpm
service: name=php8.2-fpm state=started enabled=yes service: name=php8.3-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