Nextcloud application transfer

I moved my nextcloud application without changing than to a completely new server. The files and permissions and the file owners remained the same. There is nothing in the apache2 server logos that there are any errors and the application is not working. An error is displayed.The new server is on debian and the previous one was on ubuntu.

Internal Server Error.

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

migration to a different server consists of multiple steps described in the official guide

I do not move the base, it stays on the same machine, i.e. the external one.

I did it according to this instruction, but it still doesn’t work.
@wwe
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

192.168.0.5 - - [13/Nov/2021:17:45:14 +0100] “GET / HTTP/1.1” 200 281 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36”
192.168.0.5 - - [13/Nov/2021:17:45:14 +0100] “GET /favicon.ico HTTP/1.1” 404 490 “http://192.168.0.15/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36”
192.168.0.5 - - [13/Nov/2021:17:45:17 +0100] “GET /next HTTP/1.1” 301 572 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36”
192.168.0.5 - - [13/Nov/2021:17:45:17 +0100] “GET /next/ HTTP/1.1” 200 479 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36”
192.168.0.5 - - [13/Nov/2021:17:45:18 +0100] “GET /next/index.php HTTP/1.1” 500 477 “http://192.168.0.15/next/” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36”
192.168.0.5 - - [13/Nov/2021:17:46:05 +0100] “-” 408 0 “-” “-”