[SOLVED] Nextcloud installation fails

Hi all, I’m running Virtualmin 1.821 on debian jessie.
What did:

  • created a virtual host nextcloud-demo.domain.com.
  • unzipped nextcloud in /home/nextcloud-demo/public_html
  • run installation visiting nextcloud-demo.domain.com

Then I got the webpage:

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.

In /var/log/apache2/error.log

[Tue Nov 15 09:36:53.914958 2016] [fcgid:warn] [pid 9760] mod_fcgid: process 11804 graceful kill fail, sending SIGKILL

Any idea of what’s wrong?

This is my virtualhost

SuexecUserGroup "#1006" "#1006" ServerName nextcloud-demo.domain.com ServerAlias www.nextcloud-demo.domain.com ServerAlias webmail.nextcloud-demo.domain.com ServerAlias admin.nextcloud-demo.domain.com DocumentRoot /home/nextcloud-demo/public_html ErrorLog /var/log/virtualmin/nextcloud-demo.domain.com_error_log CustomLog /var/log/virtualmin/nextcloud-demo.domain.com_access_log combined ScriptAlias /cgi-bin/ /home/nextcloud-demo/cgi-bin/ ScriptAlias /awstats/ /home/nextcloud-demo/cgi-bin/ DirectoryIndex index.html index.htm index.php index.php4 index.php5 Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Require all granted AddType application/x-httpd-php .php AddHandler fcgid-script .php AddHandler fcgid-script .php5 FCGIWrapper /home/nextcloud-demo/fcgi-bin/php5.fcgi .php FCGIWrapper /home/nextcloud-demo/fcgi-bin/php5.fcgi .php5 allow from all AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch Require all granted RewriteEngine on RewriteCond %{HTTP_HOST} =webmail.nextcloud-demo.domain.com RewriteRule ^(.*) https://nextcloud-demo.domain.com:20000/ [R] RewriteCond %{HTTP_HOST} =admin.nextcloud-demo.domain.com RewriteRule ^(.*) https://nextcloud-demo.domain.com:10000/ [R] RemoveHandler .php RemoveHandler .php5 php_admin_value engine Off FcgidMaxRequestLen 1073741824 AuthName "nextcloud-demo.domain.com statistics" AuthType Basic AuthUserFile /home/nextcloud-demo/.awstats-htpasswd require valid-user PerlRequire /etc/webmin/virtualmin-google-analytics/apachemod.pl PerlOutputFilterHandler Virtualmin::GoogleAnalytics

I think it simply timed out during installation.
I set ‘unlimited’ in ‘Maximum PHP script run time’.
Note: I also changed ‘Website documents sub-directory’ to a subdirectory (public_html/nextcloud) otherwise I’ll get a warning from nextcloud after installation about integrity check.
The issue is due to presence of awstats-icon awstatsicons icon/ stats/ that are not part of nextcloud installation.