Nextcloud is very slow

hi everyone, I installed nextcloud on a centos 8 machine with nginx, but it is very slow in loading the pages, sometimes it goes into error 504, the log file is illegible but seeing the logs from the graphical interface I see the following errors:

how do i solve?

thank you so much

Please use the search function of the forum FIRST to find an answer on a question which has already been asked and answered, several times: