Error while installing next cloud

Hi

I am getting this error while installing nextcloud. I am using virtualmin.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Hello @Anuj_Chadha, 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

Thanks for replying me

The setup is like this. I am using virtualmin. so i created sub domain https://work.abc.com. then i upload this file setup-nextcloud.php . Open https://work.abc.com/setup-nextcloud.php link. It ask me the location then i put dot(.) only to install in main directory of https://work.abc.com. in create an admin account i fill all in formation then click on finish then after few minutes i get this error. So my owner of these file is abc as default ceated by virtualmin and by default folder public_html permission is 0750. Now what i do?

these are my apache error logs

[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

New error comes when change to 777 to data director

Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

  • Remote Address: 182.77.57.155
  • Request ID: HEZ7j8EQriZcOltJS8IB

How to solve?

Solved.Please close. data folder permission to 777. Old issue still there.