Thank you, now I see some errors useful to solve the problem.
I get the following errors in the nginx log files:
[root@mail nginx]# gunzip error.log-20170524.gz && cat error.log-20170524
2017/05/23 18:35:17 [error] 2108#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'Httpful\Bootstrap' not found in /var/www/roundcubemail-1.2.4/plugins/carddav/carddav_common.php on line 25" while reading response header from upstream, client: 159.148.186.25, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 20:11:00 [error] 2108#0: *5 FastCGI sent in stderr: "PHP message: PHP Fatal error: Class 'Httpful\Bootstrap' not found in /var/www/roundcubemail-1.2.4/plugins/carddav/carddav_common.php on line 25" while reading response header from upstream, client: 213.152.161.35, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 20:52:31 [error] 14621#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 20:52:35 [error] 14621#0: *2 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 20:56:38 [error] 14621#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 20:56:39 [error] 14621#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 21:01:54 [error] 15660#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 21:01:55 [error] 15660#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 21:02:17 [error] 15660#0: *5 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 21:05:38 [error] 16050#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/23 21:06:12 [error] 16050#0: *4 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Unable to open primary script: /var/www/roundcubemail/index.php (Permission denied)" while reading response header from upstream, client: 109.202.107.15, server: mail.[domain].com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.socket:", host: "mail.[domain].com"
2017/05/24 01:55:34 [error] 16050#0: *18 directory index of "/var/www/html/" is forbidden, client: 106.75.90.187, server: _, request: "GET / HTTP/1.0", host: "185.177.23.21:443"
2017/05/24 08:22:43 [emerg] 16050#0: open() "/var/log/nginx/access.log" failed (13: Permission denied)
2017/05/24 08:22:43 [emerg] 16050#0: open() "/var/log/nginx/error.log" failed (13: Permission denied)
I will try to experiment with changing the permissions, but could you help me understand how to set the permissions correctly?