Nextcloud 21.0.3 with PHP8.0 on Raspberry PI 4B (8GB) painfully slow (Webinterface)

Nextcloud version : 21.0.3
Operating system and version: Raspbian
Apache or nginx version : Apache/2.4.38 (Raspbian)
PHP version : 8.0

The issue you are facing:
My Nextcloud Installation is painfully slow. I have to wait betwenn 1-2 Minutes to load the nextcloud page with the Dashboard. I tried many things already. I have the PHP Zen Opcache configured, Redis, Apcu. I am Using PHP-FPM, with FCGID.
The OS is on a SSD ( Samsung 750 Evo) and the Data is safed on 700 GB Samsung HN-750NBB Drive from an old Laptop. The drives a connected via these cases: https://www.amazon.de/dp/B00KW4T69A/ref=cm_sw_r_wa_apa_glt_i_MG8BXT53DNP3DE4NQFFQ?_encoding=UTF8&psc=1
over the power usb hub https://www.amazon.de/dp/B01E042UH2/ref=cm_sw_r_wa_apa_glt_i_1Z9TFBSSVNY3YZ6VE7BK?_encoding=UTF8&psc=1

The cpu is at roughly 70 % and the ram at about 2-3 GB full
I don’ t know what else i should do please help to make it a bit faster
Oh yeah an my internet speed is only 16K which should normally more than fast enough.
And the database is mysql

Is this the first time you’ve seen this error? : N

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging:

[Sat Jul 17 18:06:48.844213 2021] [proxy_fcgi:error] [pid 18652:tid 2064639008] (104)Connection reset by peer: [client 10.6.0.5:60278] AH01075: Error dispatching request to :
[Sat Jul 17 18:06:48.840870 2021] [proxy_fcgi:error] [pid 18792:tid 2878731296] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.848682 2021] [proxy_fcgi:error] [pid 18792:tid 3071763488] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.848796 2021] [proxy_fcgi:error] [pid 18792:tid 2517845024] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.848689 2021] [proxy_fcgi:error] [pid 18792:tid 2727662624] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.849942 2021] [proxy_fcgi:error] [pid 18792:tid 2635342880] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.850552 2021] [proxy_fcgi:error] [pid 18792:tid 2643735584] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.849774 2021] [proxy_fcgi:error] [pid 18792:tid 2618557472] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.883393 2021] [proxy_fcgi:error] [pid 18640:tid 1869550624] [client 10.6.0.5:50403] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.907266 2021] [proxy_fcgi:error] [pid 18792:tid 2912302112] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.910531 2021] [proxy_fcgi:error] [pid 18792:tid 2719269920] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.910601 2021] [proxy_fcgi:error] [pid 18792:tid 2786411552] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.912353 2021] [proxy_fcgi:error] [pid 18792:tid 2710877216] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.916981 2021] [proxy_fcgi:error] [pid 18792:tid 2475881504] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.917208 2021] [proxy_fcgi:error] [pid 18792:tid 3096941600] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.924350 2021] [proxy_fcgi:error] [pid 18792:tid 2945872928] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.928280 2021] [proxy_fcgi:error] [pid 18792:tid 2920694816] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.937724 2021] [proxy_fcgi:error] [pid 18792:tid 2626950176] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.961280 2021] [proxy_fcgi:error] [pid 18792:tid 2861945888] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.970019 2021] [proxy_fcgi:error] [pid 18792:tid 3054978080] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:48.963676 2021] [proxy_fcgi:error] [pid 18640:tid 1869550624] (104)Connection reset by peer: [client 10.6.0.5:50403] AH01075: Error dispatching request to :
[Sat Jul 17 18:06:49.417942 2021] [proxy_fcgi:error] [pid 18792:tid 2736055328] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:49.419057 2021] [proxy_fcgi:error] [pid 18792:tid 2685699104] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:49.419966 2021] [proxy_fcgi:error] [pid 18792:tid 2660520992] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.010318 2021] [proxy_fcgi:error] [pid 18792:tid 2937480224] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.017357 2021] [proxy_fcgi:error] [pid 18792:tid 3080156192] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.023587 2021] [proxy_fcgi:error] [pid 18792:tid 2811589664] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.033660 2021] [proxy_fcgi:error] [pid 18792:tid 3130512416] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.086520 2021] [proxy_fcgi:error] [pid 18792:tid 2895516704] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.092791 2021] [proxy_fcgi:error] [pid 18792:tid 3105334304] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.096297 2021] [proxy_fcgi:error] [pid 18792:tid 3029799968] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.107016 2021] [proxy_fcgi:error] [pid 18792:tid 3004621856] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.106998 2021] [proxy_fcgi:error] [pid 18792:tid 3021407264] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.107212 2021] [proxy_fcgi:error] [pid 18704:tid 1830777888] [client 10.6.0.5:60283] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.107460 2021] [proxy_fcgi:error] [pid 18704:tid 1830777888] (104)Connection reset by peer: [client 10.6.0.5:60283] AH01075: Error dispatching request to :
[Sat Jul 17 18:06:50.108321 2021] [proxy_fcgi:error] [pid 18792:tid 2954265632] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.108261 2021] [proxy_fcgi:error] [pid 18792:tid 3189261344] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.108852 2021] [proxy_fcgi:error] [pid 18792:tid 3239617568] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.113197 2021] [proxy_fcgi:error] [pid 18792:tid 2509452320] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.113494 2021] [proxy_fcgi:error] [pid 18792:tid 2559808544] [client 10.6.0.5:60232] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.114042 2021] [proxy_fcgi:error] [pid 18792:tid 1906213920] [client 10.6.0.5:60297] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.114119 2021] [proxy_fcgi:error] [pid 18792:tid 1906213920] (104)Connection reset by peer: [client 10.6.0.5:60297] AH01075: Error dispatching request to :
[Sat Jul 17 18:06:50.114130 2021] [proxy_fcgi:error] [pid 18652:tid 2182136864] [client 10.6.0.5:60285] AH01067: Failed to read FastCGI header
[Sat Jul 17 18:06:50.114210 2021] [proxy_fcgi:error] [pid 18652:tid 2182136864] (104)Connection reset by peer: [client 10.6.0.5:60285] AH01075: Error dispatching request to :
[Sat Jul 17 18:08:20.196141 2021] [access_compat:error] [pid 2042:tid 2383393824] [client 10.6.0.5:54940] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Sat Jul 17 18:08:20.198813 2021] [access_compat:error] [pid 2042:tid 2366608416] [client 10.6.0.5:54941] AH01797: client denied by server configuration: /var/www/nextcloud/config
[Sat Jul 17 18:26:40.256320 2021] [proxy_fcgi:error] [pid 1749:tid 1737253920] (70007)The timeout specified has expired: [client 10.6.0.5:55098] AH01075: Error dispatching request to : (polling)

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

https://pastebin.com/qyn62HVj

The output of your Apache/nginx/system log in /var/log/____:

[Sat Jul 17 13:47:11.349162 2021] [core:warn] [pid 11753:tid 4157312656] AH00045: child process 11827 still did not exit, sending a SIGTERM
[Sat Jul 17 13:47:13.351456 2021] [core:warn] [pid 11753:tid 4157312656] AH00045: child process 11827 still did not exit, sending a SIGTERM
[Sat Jul 17 13:47:15.353205 2021] [core:warn] [pid 11753:tid 4157312656] AH00045: child process 11827 still did not exit, sending a SIGTERM
[Sat Jul 17 13:47:16.354578 2021] [mpm_event:notice] [pid 11753:tid 4157312656] AH00491: caught SIGTERM, shutting down
[Sat Jul 17 13:47:16.679199 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured.
[Sat Jul 17 13:47:16.679358 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: APR compiled version="1.6.5"; loaded version="1.6.5"
[Sat Jul 17 13:47:16.679424 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: PCRE compiled version="8.39 "; loaded version="8.44 2020-02-12"
[Sat Jul 17 13:47:16.679439 2021] [:warn] [pid 10355:tid 4160102032] ModSecurity: Loaded PCRE do not match with compiled!
[Sat Jul 17 13:47:16.679452 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: LUA compiled version="Lua 5.1"
[Sat Jul 17 13:47:16.679463 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: YAJL compiled version="2.1.0"
[Sat Jul 17 13:47:16.679475 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: LIBXML compiled version="2.9.4"
[Sat Jul 17 13:47:16.679487 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: Original server signature: Apache
[Sat Jul 17 13:47:16.679597 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: StatusEngine call: "2.9.3,Apache,1.6.5/1.6.5,8.39/8.44 2020-02-12,Lua 5.1,2.9.4,52"
[Sat Jul 17 13:47:17.320696 2021] [:notice] [pid 10355:tid 4160102032] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Sat Jul 17 13:47:17.536513 2021] [mpm_event:notice] [pid 10433:tid 4160102032] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   mod_fcgid/2.3.9 configured -- resuming normal operations
[Sat Jul 17 13:47:17.536627 2021] [core:notice] [pid 10433:tid 4160102032] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 17 14:31:23.416537 2021] [core:warn] [pid 10433:tid 4160102032] AH00045: child process 10517 still did not exit, sending a SIGTERM
[Sat Jul 17 14:31:23.416799 2021] [core:warn] [pid 10433:tid 4160102032] AH00045: child process 10829 still did not exit, sending a SIGTERM
[Sat Jul 17 14:31:25.418995 2021] [core:warn] [pid 10433:tid 4160102032] AH00045: child process 10517 still did not exit, sending a SIGTERM
[Sat Jul 17 14:31:27.421166 2021] [core:warn] [pid 10433:tid 4160102032] AH00045: child process 10517 still did not exit, sending a SIGTERM
[Sat Jul 17 14:31:29.423671 2021] [mpm_event:notice] [pid 10433:tid 4160102032] AH00491: caught SIGTERM, shutting down
[Sat Jul 17 14:31:29.760179 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured.
[Sat Jul 17 14:31:29.760315 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: APR compiled version="1.6.5"; loaded version="1.6.5"
[Sat Jul 17 14:31:29.760333 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: PCRE compiled version="8.39 "; loaded version="8.44 2020-02-12"
[Sat Jul 17 14:31:29.760348 2021] [:warn] [pid 18636:tid 4154670736] ModSecurity: Loaded PCRE do not match with compiled!
[Sat Jul 17 14:31:29.760361 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: LUA compiled version="Lua 5.1"
[Sat Jul 17 14:31:29.760374 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: YAJL compiled version="2.1.0"
[Sat Jul 17 14:31:29.760388 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: LIBXML compiled version="2.9.4"
[Sat Jul 17 14:31:29.760401 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: Original server signature: Apache
[Sat Jul 17 14:31:29.760497 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: StatusEngine call: "2.9.3,Apache,1.6.5/1.6.5,8.39/8.44 2020-02-12,Lua 5.1,2.9.4,52"
[Sat Jul 17 14:31:30.433148 2021] [:notice] [pid 18636:tid 4154670736] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Sat Jul 17 14:31:30.618309 2021] [mpm_event:notice] [pid 18637:tid 4154670736] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   mod_fcgid/2.3.9 configured -- resuming normal operations
[Sat Jul 17 14:31:30.618527 2021] [core:notice] [pid 18637:tid 4154670736] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 17 18:06:49.099153 2021] [core:warn] [pid 18637:tid 4154670736] AH00045: child process 18640 still did not exit, sending a SIGTERM
[Sat Jul 17 18:06:49.101895 2021] [core:warn] [pid 18637:tid 4154670736] AH00045: child process 18652 still did not exit, sending a SIGTERM
[Sat Jul 17 18:06:49.102019 2021] [core:warn] [pid 18637:tid 4154670736] AH00045: child process 18704 still did not exit, sending a SIGTERM
[Sat Jul 17 18:06:49.102098 2021] [core:warn] [pid 18637:tid 4154670736] AH00045: child process 18792 still did not exit, sending a SIGTERM
[Sat Jul 17 18:07:00.303219 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured.
[Sat Jul 17 18:07:00.307270 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: APR compiled version="1.6.5"; loaded version="1.6.5"
[Sat Jul 17 18:07:00.307328 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: PCRE compiled version="8.39 "; loaded version="8.44 2020-02-12"
[Sat Jul 17 18:07:00.307372 2021] [:warn] [pid 1267:tid 4154502800] ModSecurity: Loaded PCRE do not match with compiled!
[Sat Jul 17 18:07:00.307401 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: LUA compiled version="Lua 5.1"
[Sat Jul 17 18:07:00.307417 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: YAJL compiled version="2.1.0"
[Sat Jul 17 18:07:00.307430 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: LIBXML compiled version="2.9.4"
[Sat Jul 17 18:07:00.307446 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: Original server signature: Apache
[Sat Jul 17 18:07:00.307566 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: StatusEngine call: "2.9.3,Apache,1.6.5/1.6.5,8.39/8.44 2020-02-12,Lua 5.1,2.9.4,52"
[Sat Jul 17 18:07:01.823465 2021] [:notice] [pid 1267:tid 4154502800] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Sat Jul 17 18:07:02.691110 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   mod_fcgid/2.3.9 configured -- resuming normal operations
[Sat Jul 17 18:07:02.691290 2021] [core:notice] [pid 1631:tid 4154502800] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 17 18:07:48.205402 2021] [rewrite:error] [pid 1750:tid 2433750048] [client 127.0.0.1:47420] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/nextcloud/
[Sat Jul 17 18:07:48.205663 2021] [rewrite:error] [pid 1750:tid 2433750048] [client 127.0.0.1:47420] AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/nextcloud/
[Sat Jul 17 18:32:06.106884 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jul 17 18:32:06.580116 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   mod_fcgid/2.3.9 configured -- resuming normal operations
[Sat Jul 17 18:32:06.580202 2021] [core:notice] [pid 1631:tid 4154502800] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 17 18:32:11.639460 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jul 17 18:32:12.024590 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   mod_fcgid/2.3.9 configured -- resuming normal operations
[Sat Jul 17 18:32:12.024796 2021] [core:notice] [pid 1631:tid 4154502800] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 17 18:32:21.766950 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jul 17 18:32:24.347764 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   mod_fcgid/2.3.9 configured -- resuming normal operations
[Sat Jul 17 18:32:24.347873 2021] [core:notice] [pid 1631:tid 4154502800] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jul 17 18:32:27.230981 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00493: SIGUSR1 received.  Doing graceful restart
[Sat Jul 17 18:32:30.659383 2021] [mpm_event:notice] [pid 1631:tid 4154502800] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   mod_fcgid/2.3.9 configured -- resuming normal operations
[Sat Jul 17 18:32:30.659626 2021] [core:notice] [pid 1631:tid 4154502800] AH00094: Command line: '/usr/sbin/apache2'

The output of your OpCache` (make sure you remove any identifiable information!):

opcache.enable = 1
opcache.interned_strings_buffer = 16
opcache.max_accelerated_files = 10000
opcache.memory_consumption = 2000
opcache.save_comments = 1
opcache.revalidate_freq = 0
opcache.fast_shutdown=1

The output of PHP-FPM (make sure you remove any identifiable information!):

listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 120
pm.start_servers = 20
pm.min_spare_servers = 10
pm.max_spare_servers = 30
pm.process_idle_timeout = 10s;
pm.max_requests = 1000

The output of php.ini` (make sure you remove any identifiable information!):

https://pastebin.com/ULeNCLvW

The output of Apache.conf (make sure you remove any identifiable information!):

https://pastebin.com/yrgU4MuD

The output of the Nextcloud apache conf (make sure you remove any identifiable information!):

<IfModule mod_ssl.c>
  <VirtualHost _default_:443>
    DocumentRoot /var/www/nextcloud
    CustomLog /var/log/apache2/nc-access.log combined
    ErrorLog  /var/log/apache2/nc-error.log
    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/platofan27.ddns.net/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/platofan27.ddns.net/privkey.pem
	Include /etc/letsencrypt/options-ssl-apache.conf
    ServerName platofan27.ddns.net
  	RequestHeader set X-Forwarded-Proto "https"
	Protocols h2 http/1.1
    Timeout 600
	ProxyTimeout 600
	<FilesMatch "\.php$">
     SetHandler "proxy:unix:/var/run/php/php8.0-fpm.sock|fcgi://localhost/"
 	</FilesMatch>
 	<Proxy "fcgi://localhost/">
 	</Proxy>	
  </VirtualHost>
  <Directory /var/www/nextcloud/>
   # Options +FollowSymlinks
    #AllowOverride All
    <IfModule mod_dav.c>
      Dav off
    </IfModule>
    LimitRequestBody 0
    SSLRenegBufferSize 10486000
  </Directory>
  <IfModule mod_headers.c>
    Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains"
  </IfModule>
</IfModule>

The output of the loaded modules (make sure you remove any identifiable information!):

Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 actions_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authnz_external_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 cache_module (shared)
 cache_disk_module (shared)
 cgid_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 fcgid_module (shared)
 filter_module (shared)
 headers_module (shared)
 http2_module (shared)
 mime_module (shared)
 mpm_event_module (shared)
 negotiation_module (shared)
 proxy_module (shared)
 proxy_fcgi_module (shared)
 proxy_http_module (shared)
 reqtimeout_module (shared)
 rewrite_module (shared)
 security2_module (shared)
 setenvif_module (shared)
 socache_shmcb_module (shared)
 ssl_module (shared)
 unique_id_module (shared)

The output occ apps:list (make sure you remove any identifiable information!):

 accessibility: 1.7.0
  - activity: 2.14.3
  - admin_audit: 1.11.0
  - analytics: 3.5.1
  - appointments: 1.9.3
  - apporder: 0.13.0
  - audioplayer: 3.1.0
  - bbb: 1.4.2
  - bookmarks: 4.2.2
  - breezedark: 21.0.9
  - bruteforcesettings: 2.2.0
  - calendar: 2.3.1
  - camerarawpreviews: 0.7.11
  - checksum: 1.1.2
  - cloud_federation_api: 1.4.0
  - comments: 1.11.0
  - contacts: 4.0.0
  - contactsinteraction: 1.2.0
  - cookbook: 0.8.4
  - customproperties: 2.0.3
  - dashboard: 7.1.0
  - data_request: 1.8.0
  - dav: 1.17.1
  - drawio: 1.0.1
  - duplicatefinder: 0.0.9
  - encryption: 2.9.0
  - end_to_end_encryption: 1.7.1
  - epubreader: 1.4.6
  - event_update_notification: 1.3.0
  - external: 3.8.2
  - extract: 1.3.2
  - federatedfilesharing: 1.11.0
  - federation: 1.11.0
  - files: 1.16.0
  - files_accesscontrol: 1.11.0
  - files_automatedtagging: 1.11.0
  - files_bpm: 0.2.1
  - files_downloadactivity: 1.11.1
  - files_external: 1.12.0
  - files_fulltextsearch: 21.0.2
  - files_linkeditor: 1.1.6
  - files_mindmap: 0.0.24
  - files_pdfviewer: 2.1.0
  - files_photospheres: 1.21.1
  - files_rightclick: 1.0.0
  - files_sharing: 1.13.1
  - files_texteditor: 2.14.0
  - files_trackdownloads: 1.10.0
  - files_trashbin: 1.11.0
  - files_versions: 1.14.0
  - files_versions_s3: 0.1.6
  - files_videoplayer: 1.10.0
  - firstrunwizard: 2.10.0
  - forms: 2.2.4
  - fulltextsearch: 21.0.1
  - geoblocker: 0.5.1
  - gpxmotion: 0.1.0
  - gpxpod: 4.2.8
  - group_default_quota: 0.1.2
  - groupfolders: 9.0.2
  - groupquota: 0.1.6
  - health: 1.2.1
  - hsts: 0.8.0
- imageconverter: 1.3.1
  - integration_discourse: 1.0.0
  - integration_dropbox: 1.0.1
  - integration_github: 1.0.0
  - integration_gitlab: 1.0.0
  - integration_google: 1.0.2
  - integration_moodle: 1.0.0
  - integration_onedrive: 1.0.4
  - integration_reddit: 0.0.11
  - integration_twitter: 1.0.0
  - logreader: 2.6.0
  - lookup_server_connector: 1.9.0
  - metadata: 0.14.0
  - music: 1.2.1
  - nextcloud_announcements: 1.10.0
  - nextcloudpi: 0.0.1
  - notes: 4.1.0
  - notifications: 2.9.0
  - oauth2: 1.9.0
  - ojsxc: 4.3.1
  - onlyoffice: 7.0.2
  - passman: 2.3.8
  - password_policy: 1.11.0
  - passwords: 2021.7.23
  - phonetrack: 0.6.7
  - photos: 1.3.0
  - podcast: 0.3.1
  - previewgenerator: 102.2.0
  - privacy: 1.5.0
  - provisioning_api: 1.11.0
  - quickaccesssorting: 1.1.2
  - quicknotes: 0.7.1
  - quota_warning: 1.10.0
  - radio: 1.0.3
  - rainloop: 7.1.2
  - ransomware_protection: 1.11.0
  - recognize: 1.3.1
  - recommendations: 1.0.0
  - serverinfo: 1.11.0
  - settings: 1.3.0
  - sharebymail: 1.11.0
  - sharepermissions: 1.0.1
  - sharingpath: 0.3.0
  - side_menu: 1.25.2
  - socialsharing_email: 2.2.0
  - socialsharing_facebook: 2.2.0
  - socialsharing_twitter: 2.2.0
  - souvenirs: 1.1.1
  - spreed: 11.2.2
  - support: 1.4.0
  - survey_client: 1.9.0
  - suspicious_login: 4.0.0
  - systemtags: 1.11.0
  - talk_simple_poll: 1.3.1
  - tasks: 0.13.6
  - terms_of_service: 1.7.1
  - text: 3.2.0
  - theming: 1.12.0
- theming_customcss: 1.9.0
  - timetracker: 0.0.59
  - transmission: 0.7.2
  - twofactor_backupcodes: 1.10.0
  - twofactor_email: 2.0.0
  - twofactor_gateway: 0.19.0
  - twofactor_nextcloud_notification: 3.2.0
  - twofactor_totp: 6.1.0
  - twofactor_u2f: 6.2.0
  - updatenotification: 1.11.0
  - user_backend_sql_raw: 1.1.0
  - user_external: 2.0.0
  - user_sql: 4.7.0
  - user_status: 1.1.1
  - user_usage_report: 1.5.0
  - video_converter: 1.0.2
  - viewer: 1.5.0
  - w2g2: 3.2.6
  - weather: 1.7.5
  - weather_status: 1.1.0
  - webapppassword: 21.7.0
  - welcome: 0.0.5
  - whiteboard: 0.0.3
  - workflow_media_converter: 1.2.10
  - workflow_ocr: 1.21.0
  - workflow_pdf_converter: 1.6.0
  - workflowengine: 2.3.0
Disabled:
  - facerecognition
  - files_antivirus
  - ocdownloader
  - user_ldap

To verify, can you please share output of

php -v

and

cat /etc/os-release

And let users know what (link to) installation procedure, guide or howto, you used.

the output of php -v

PHP 8.0.8 (cli) (built: Jul  1 2021 16:14:13) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.8, Copyright (c) Zend Technologies

The output of cat /etc/os-release

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

I used many differnt guides but the most important were:
https://docs.nextcloud.com/server/latest/admin_manual/installation/server_tuning.html
https://docs.nextcloud.com/server/latest/admin_manual/installation/index.html
https://www.c-rieger.de/nextcloud-21-mit-php-8-0-nachruesten/

thank you for trying to help i appriciate it =)

I’m guessing this didn’t actually get resolved?
I’ve had a similar issue with performance degrading since updating to bullseye. In fact my old instance that used an external HDD was faster than my new one which has an SSD!