Error 500 after installation

Nextcloud version: 13
Operating system and version: Ubuntu 16.04
Apache: Apache 2.4
PHP version 7.0

The issue you are facing:

I’m having a 500 error after installation using this script (https://github.com/PietsHost/Nextcloud-Installation-Script) and installing the server with this instructions (

Is this the first time you’ve seen this error? (Y/N): Y

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

[Wed Mar 21 17:39:54.539645 2018] [authz_core:error] [pid 2298] [client IPADDRESS:31522] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:42:22.560985 2018] [mpm_prefork:notice] [pid 2294] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:42:24.174499 2018] [mpm_prefork:notice] [pid 2355] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:42:24.174784 2018] [core:notice] [pid 2355] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 17:42:27.762427 2018] [authz_core:error] [pid 2358] [client IPADDRESS:40448] AH01630: client denied by server configuration: /home/user/nextcloud/
[Wed Mar 21 17:42:27.875819 2018] [authz_core:error] [pid 2359] [client IPADDRESS:40460] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:42:28.349426 2018] [authz_core:error] [pid 2358] [client IPADDRESS:40448] AH01630: client denied by server configuration: /home/user/nextcloud/
[Wed Mar 21 17:42:28.398930 2018] [authz_core:error] [pid 2359] [client IPADDRESS:40460] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:42:46.120462 2018] [mpm_prefork:notice] [pid 2355] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:42:47.695131 2018] [mpm_prefork:notice] [pid 2416] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:42:47.695390 2018] [core:notice] [pid 2416] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 17:46:42.941223 2018] [mpm_prefork:notice] [pid 2416] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:46:44.581837 2018] [mpm_prefork:notice] [pid 4173] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:46:44.582233 2018] [core:notice] [pid 4173] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 17:53:10.422413 2018] [mpm_prefork:notice] [pid 4173] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:53:11.830471 2018] [mpm_prefork:notice] [pid 4668] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:53:11.830897 2018] [core:notice] [pid 4668] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 17:54:10.411629 2018] [mpm_prefork:notice] [pid 4668] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:54:12.039645 2018] [mpm_prefork:notice] [pid 4746] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:54:12.039922 2018] [core:notice] [pid 4746] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 17:54:44.061408 2018] [mpm_prefork:notice] [pid 4746] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:54:45.771394 2018] [mpm_prefork:notice] [pid 4831] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:54:45.771788 2018] [core:notice] [pid 4831] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 17:56:52.855557 2018] [mpm_prefork:notice] [pid 4831] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:56:54.278350 2018] [mpm_prefork:notice] [pid 4903] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:56:54.278736 2018] [core:notice] [pid 4903] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 17:57:02.090800 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:02.207736 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:02.805418 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:02.853760 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:03.323998 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:03.376479 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:03.583890 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:03.637495 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:03.817199 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:03.873249 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:04.065166 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:04.123974 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:04.316511 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:04.370865 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:04.570358 2018] [authz_core:error] [pid 4906] [client IPADDRESS:31327] AH01630: client denied by server configuration: /home/user/nextcloud/index.php
[Wed Mar 21 17:57:04.615492 2018] [authz_core:error] [pid 4907] [client IPADDRESS:31330] AH01630: client denied by server configuration: /home/user/nextcloud/favicon.ico
[Wed Mar 21 17:57:18.809272 2018] [mpm_prefork:notice] [pid 4903] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 17:57:20.244011 2018] [mpm_prefork:notice] [pid 4962] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 17:57:20.244296 2018] [core:notice] [pid 4962] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 18:04:50.078695 2018] [core:notice] [pid 4962] AH00052: child pid 4968 exit signal Segmentation fault (11)
[Wed Mar 21 18:04:50.078869 2018] [mpm_prefork:notice] [pid 4962] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 18:04:51.412580 2018] [mpm_prefork:notice] [pid 5255] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 18:04:51.412863 2018] [core:notice] [pid 5255] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 21 18:08:19.615061 2018] [mpm_prefork:notice] [pid 5255] AH00169: caught SIGTERM, shutting down
[Wed Mar 21 18:08:21.020536 2018] [mpm_prefork:notice] [pid 5418] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Mar 21 18:08:21.020830 2018] [core:notice] [pid 5418] AH00094: Command line: '/usr/sbin/apache2'

Config from apache:

<IfModule mod_ssl.c>
<VirtualHost *:443>
    ServerAdmin mydomain@mydomain.com
    ServerName mydomain.com
    DocumentRoot /home/user/nextcloud
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/domain/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
<Directory /home/user/nextcloud/>
Options +FollowSymlinks
  AllowOverride All
<IfModule mod_dav.c>
 Dav off
 </IfModule>

 SetEnv HOME /home/user/nextcloud
 SetEnv HTTP_HOME /home/user/nextcloud
Satisfy Any
</Directory>
</VirtualHost>
</IfModule>

Thanks, averroes.

I’m just guessing her, but could it be, that you havn’t set the correct permissions for your installation directory? I think “Client denied by server configuration” means that the webserver (the www-data user in Apache) doesn’t have the required permissions to access the file.

Hi,

The install script you use, changes the owner ship of most of the files/ folders to root. This is no longer suggested by Nextcloud developers because users run into issues much too often :wink:

We need to know now:

  • is this the first installation of NC or an upgrade
  • what is the correct path to your nextcloud installation
  • what is your web server user (http, www-data, …)
  • what is the output of
    ls -al /home/user/nextcloud

Assuming the following variables (web server user and path), this command could help maybe:

chown -R www-data:www-data /home/user/nextcloud