Internal Server Error (black screen)

Nextcloud version _(29.0.5)
Operating system and version _(CentOs 9 Stream)
Apache version _(Apache 2.4.57)
PHP version _(8.2)

After following this series of steps:

https://docs.nextcloud.com/server/latest/admin_manual/installation/example_centos.html#apache

The output of your Nextcloud.log :

{"reqId":"ZsemPf_O4wQArm_LyKaaugAAAAU","level":3,"time":"2024-08-22T20:57:34+00:00","remoteAddr":"192.168.100.6","user":"--","app":"PHP","method":"GET","url":"/","message":"fopen(/var/www/html/nextcloud/config/config.php): Failed to open str                     eam: No such file or directory at /var/www/html/nextcloud/lib/private/Config.php#221","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36","version":"","data":{"app":"P                     HP"}}

nextcloud config.php file:

<?php
$CONFIG = array (
  'instanceid' => 'ocvg----------hhsk',
  'passwordsalt' => 'vJcFn-------------FLGX',
  'secret' => 'V1/J39------------TVFuNe',
  'trusted_domains' =>
  array (
    0 => '10.0.2.108',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '29.0.5.1',
  'overwrite.cli.url' => 'http://10.0.2.108',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '123456789xxxxx',
  'installed' => true,
);

httpd error_log

[root@localhost html]# sudo tail -f /var/log/httpd/error_log
[Thu Aug 22 17:11:27.648036 2024] [suexec:notice] [pid 12961:tid 12961] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Aug 22 17:11:27.696017 2024] [lbmethod_heartbeat:notice] [pid 12961:tid 12961] AH02282: No slotmem from mod_heartmonitor
[Thu Aug 22 17:11:27.708648 2024] [mpm_event:notice] [pid 12961:tid 12961] AH00489: Apache/2.4.57 (CentOS Stream) OpenSSL/3.2.2 mod_fcgid/2.3.9 configured -- resuming normal operations
[Thu Aug 22 17:11:27.708711 2024] [core:notice] [pid 12961:tid 12961] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Aug 22 17:12:29.906004 2024] [mpm_event:notice] [pid 12961:tid 12961] AH00492: caught SIGWINCH, shutting down gracefully
[Thu Aug 22 17:12:31.119585 2024] [core:notice] [pid 13180:tid 13180] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Thu Aug 22 17:12:31.122208 2024] [suexec:notice] [pid 13180:tid 13180] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Aug 22 17:12:31.173304 2024] [lbmethod_heartbeat:notice] [pid 13180:tid 13180] AH02282: No slotmem from mod_heartmonitor
[Thu Aug 22 17:12:31.186508 2024] [mpm_event:notice] [pid 13180:tid 13180] AH00489: Apache/2.4.57 (CentOS Stream) OpenSSL/3.2.2 mod_fcgid/2.3.9 configured -- resuming normal operations
[Thu Aug 22 17:12:31.186569 2024] [core:notice] [pid 13180:tid 13180] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

This is what the web shows:

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.

any way to fix this?
thanks

fopen(/var/www/html/nextcloud/config/config.php): Failed to open stream: No such file or directory

Is there anything unusual about this path? What user owns it and what are the permissions? Check the parent folders as well.

Have you been through the rest of the steps on that page or just the ones in that section?

There are others that are important.

file config.php

[root@localhost html]# ls -l nextcloud/config/config.php

-rw-r-----. 1 apache apache 600 ago 22 17:03 nextcloud/config/config.php

I followed all the steps indicated on the page, I was able to reach the initial configuration page, after entering the requested data, it lands on that black page.

Excuse my spelling, I use Google Translate

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.