Hi
I am getting this error Internal Server Error while installing nextcloud.
Hi
I am getting this error Internal Server Error while installing nextcloud.
Whats your Apache error log
Try edit your .htaccess (+FollowSymlinks) to (+SymLinksIfOwnerMatch)
# Follow symbolic links in this directory.
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
This is the .htaccess file
SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1 RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION SetEnvIfNoCase Authorization "(.+)" HTTP_AUTHORIZATION=$1 # Add security and privacy related headers# Avoid doubled headers by unsetting headers in "onsuccess" table,
# then add headers to "always" table: https://github.com/nextcloud/server/pull/19002
Header onsuccess unset Referrer-Policy
Header always set Referrer-Policy "no-referrer"
Header onsuccess unset X-Content-Type-Options
Header always set X-Content-Type-Options "nosniff"
Header onsuccess unset X-Download-Options
Header always set X-Download-Options "noopen"
Header onsuccess unset X-Frame-Options
Header always set X-Frame-Options "SAMEORIGIN"
Header onsuccess unset X-Permitted-Cross-Domain-Policies
Header always set X-Permitted-Cross-Domain-Policies "none"
Header onsuccess unset X-Robots-Tag
Header always set X-Robots-Tag "none"
Header onsuccess unset X-XSS-Protection
Header always set X-XSS-Protection "1; mode=block"
SetEnv modHeadersAvailable true
<FilesMatch “.(css|js|svg|gif)$”>
Header set Cache-Control “max-age=15778463”
<FilesMatch “.woff2?$”>
Header set Cache-Control “max-age=604800”
php_value mbstring.func_overload 0
php_value default_charset ‘UTF-8’
php_value output_buffering 0
SetEnv htaccessWorking true
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} DavClnt
RewriteRule ^$ /remote.php/webdav/ [L,R=302]
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^.well-known/host-meta.json /public.php?service=host-meta-json [QSA,L]
RewriteRule ^.well-known/webfinger /public.php?service=webfinger [QSA,L]
RewriteRule ^.well-known/nodeinfo /public.php?service=nodeinfo [QSA,L]
RewriteRule ^.well-known/carddav /remote.php/dav/ [R=301,L]
RewriteRule ^.well-known/caldav /remote.php/dav/ [R=301,L]
RewriteRule ^remote/(.) remote.php [QSA,L]
RewriteRule ^(?:build|tests|config|lib|3rdparty|templates)/. - [R=404,L]
RewriteCond %{REQUEST_URI} !^/.well-known/(acme-challenge|pki-validation)/.*
RewriteRule ^(?:.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
DirectoryIndex index.php index.html
AddDefaultCharset utf-8
Options -Indexes
ModPagespeed Off
cannt find FollowSymlinks in .htaccess
have you installed nextcloud or not yet?
If not yet, make sure you have the below php modules installed
https://docs.nextcloud.com/server/15/admin_manual/installation/source_installation.html
Apache error log
[Thu Jul 23 22:29:35.730067 2020] [fcgid:warn] [pid 8415] [client 182.77.57.155:56508] mod_fcgid: read data timeout in 40 seconds
[Thu Jul 23 22:29:35.730226 2020] [core:error] [pid 8415] [client 182.77.57.155:56508] End of script output before headers: setup-nextcloud.php
[Thu Jul 23 22:31:09.175396 2020] [fcgid:warn] [pid 8600] [client 182.77.57.155:56582] mod_fcgid: stderr: PHP Warning: fileperms(): stat failed for /home/projectok/domains/work.projectok.com/public_html/data/nextcloud.log in /home/projectok/domains/work.projectok.com/public_html/lib/private/Log/File.php on line 85
[Thu Jul 23 22:31:09.175562 2020] [fcgid:warn] [pid 8600] [client 182.77.57.155:56582] mod_fcgid: stderr: {“reqId”:“iWpDxVauD2ZiiWJu3YBy”,“level”:3,“time”:“2020-07-23T17:01:09+00:00”,“remoteAddr”:“182.77.57.155”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/",“message”:“session_start(): A session had already been started - ignoring at /home/projectok/domains/work.projectok.com/public_html/lib/private/Session/Internal.php#209”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0”,“version”:""}
[Fri Jul 24 00:00:19.676190 2020] [fcgid:warn] [pid 34441] (104)Connection reset by peer: [client 182.77.57.155:64861] mod_fcgid: error reading data from FastCGI server
[Fri Jul 24 00:00:19.676412 2020] [core:error] [pid 34441] [client 182.77.57.155:64861] End of script output before headers: index.php
[Fri Jul 24 00:00:19.676521 2020] [fcgid:emerg] [pid 34441] (22)Invalid argument: [client 182.77.57.155:64861] mod_fcgid: can’t lock process table in pid 34441
[Fri Jul 24 00:08:30.185261 2020] [fcgid:warn] [pid 54814] (104)Connection reset by peer: [client 182.77.57.155:64875] mod_fcgid: error reading data from FastCGI server
[Fri Jul 24 00:08:30.185563 2020] [core:error] [pid 54814] [client 182.77.57.155:64875] End of script output before headers: index.php
[Fri Jul 24 00:34:59.866833 2020] [fcgid:warn] [pid 2032] (104)Connection reset by peer: [client 182.77.57.155:61323] mod_fcgid: error reading data from FastCGI server
[Fri Jul 24 00:34:59.901666 2020] [core:error] [pid 2032] [client 182.77.57.155:61323] End of script output before headers: index.php
[Fri Jul 24 01:15:53.903121 2020] [fcgid:warn] [pid 1703] (104)Connection reset by peer: [client 182.77.57.155:62740] mod_fcgid: error reading data from FastCGI server
[Fri Jul 24 01:15:53.903370 2020] [core:error] [pid 1703] [client 182.77.57.155:62740] End of script output before headers: index.php
[Fri Jul 24 01:45:06.678838 2020] [fcgid:error] [pid 6191] [client 182.77.57.155:63436] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:45:40.107784 2020] [fcgid:error] [pid 6187] [client 182.77.57.155:63443] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:46:07.109030 2020] [fcgid:error] [pid 6180] [client 182.77.57.155:63449] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:46:08.347937 2020] [fcgid:error] [pid 6180] [client 182.77.57.155:63449] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:46:09.458420 2020] [fcgid:error] [pid 6180] [client 182.77.57.155:63449] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:46:11.437233 2020] [fcgid:error] [pid 6180] [client 182.77.57.155:63449] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:46:13.339286 2020] [fcgid:error] [pid 6180] [client 182.77.57.155:63449] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:49:46.196657 2020] [fcgid:error] [pid 7270] [client 182.77.57.155:63470] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:49:47.756017 2020] [fcgid:error] [pid 7270] [client 182.77.57.155:63470] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:49:49.350572 2020] [fcgid:error] [pid 7270] [client 182.77.57.155:63470] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:49:51.804446 2020] [fcgid:error] [pid 7270] [client 182.77.57.155:63470] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:52:48.006600 2020] [fcgid:error] [pid 8183] [client 182.77.57.155:63491] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:52:49.309888 2020] [fcgid:error] [pid 8183] [client 182.77.57.155:63491] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:52:50.329624 2020] [fcgid:error] [pid 8183] [client 182.77.57.155:63491] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:52:51.267634 2020] [fcgid:error] [pid 8183] [client 182.77.57.155:63491] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:52:52.118419 2020] [fcgid:error] [pid 8183] [client 182.77.57.155:63491] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/setup-nextcloud.php does not have ExecCGI enabled
[Fri Jul 24 01:53:19.593681 2020] [autoindex:error] [pid 8194] [client 182.77.57.155:63494] AH01276: Cannot serve directory /home/projectok/domains/work.projectok.com/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
[Fri Jul 24 01:53:42.073590 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:43.125957 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:43.841618 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:44.358690 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:44.859914 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:45.391641 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:45.935564 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:46.563843 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:47.098369 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:47.607105 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:48.049688 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:48.656581 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:49.208169 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:49.592877 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:49.856577 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:50.165153 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:50.217827 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:50.556158 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:50.610196 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:51.148774 2020] [fcgid:error] [pid 8211] [client 182.77.57.155:63505] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:51.478962 2020] [fcgid:error] [pid 8216] [client 182.77.57.155:63506] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:52.702054 2020] [fcgid:error] [pid 8216] [client 182.77.57.155:63506] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 01:53:53.625698 2020] [fcgid:error] [pid 8183] [client 182.77.57.155:63508] mod_fcgid: location of script /home/projectok/domains/work.projectok.com/public_html/index.php does not have ExecCGI enabled
[Fri Jul 24 02:10:36.861918 2020] [fcgid:warn] [pid 9385] (32)Broken pipe: [client 182.77.57.155:63696] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Fri Jul 24 02:23:39.189862 2020] [fcgid:warn] [pid 8460] (104)Connection reset by peer: [client 182.77.57.155:63715] mod_fcgid: error reading data from FastCGI server
[Fri Jul 24 02:23:39.190046 2020] [core:error] [pid 8460] [client 182.77.57.155:63715] End of script output before headers: index.php
[Fri Jul 24 02:46:32.793802 2020] [fcgid:warn] [pid 9385] (104)Connection reset by peer: [client 182.77.57.155:62602] mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
[Fri Jul 24 02:46:33.610183 2020] [fcgid:warn] [pid 8475] [client 182.77.57.155:62603] mod_fcgid: stderr: PHP Warning: fileperms(): stat failed for /home/projectok/domains/work.projectok.com/public_html/data/nextcloud.log in /home/projectok/domains/work.projectok.com/public_html/lib/private/Log/File.php on line 85
[Fri Jul 24 02:46:33.610295 2020] [fcgid:warn] [pid 8475] [client 182.77.57.155:62603] mod_fcgid: stderr: {“reqId”:“2BUPZLdC7eiUNsApDaKV”,“level”:3,“time”:“2020-07-23T21:16:33+00:00”,“remoteAddr”:“182.77.57.155”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"/",“message”:“session_start(): A session had already been started - ignoring at /home/projectok/domains/work.projectok.com/public_html/lib/private/Session/Internal.php#209”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0”,“version”:""}
[Fri Jul 24 03:24:59.214223 2020] [fcgid:warn] [pid 8465] (104)Connection reset by peer: [client 182.77.57.155:60247] mod_fcgid: error reading data from FastCGI server
[Fri Jul 24 03:24:59.214472 2020] [core:error] [pid 8465] [client 182.77.57.155:60247] End of script output before headers: index.php
https://work.projectok.com/index.php
I can see you can install nextcloud.
If failed half way, try installing required php modules below
All installed.
One nextcloud user or staff give me this solution
is www-data the owner of your files? If you are using Ubuntu Server the command is
chown -R www-data:www-data /path/to/nextcloud/
Chown is what changes the file type, -R changes all of the files and folders under the folder you tell it to, the first www-data is the user the second is the group and the ending is the folder
But i cant understand.
I have seen this
Apache Web server configuration
On Debian, Ubuntu, and their derivatives, Apache installs with a useful configuration so all you have to do is create a /etc/apache2/sites-available/nextcloud.conf file with these lines in it, replacing the Directory and other filepaths with your own filepaths:
Alias /nextcloud “/var/www/nextcloud/”
<Directory /var/www/nextcloud/>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
I didnt this.Now i dont know how to do it? And what the effect on virtualmin? Is it required?
Please close. nextcloud data folder permission issue. 777
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.