Installing not working because of blank site

Nextcloud version (eg, 10.0.2): 12 (Archive)
Operating system and version (eg, Ubuntu 16.04): Ubuntu Server 16.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2
PHP version (eg, 5.6): PHP 7.0
Is this the first time you’ve seen this error?:

Yes

Can you reliably replicate it? (If so, please outline steps):

everytime I load the page the error occurs

The issue you are facing:

I’ve installed a LAMP on my Vserver with the following command:

sudo apt-get install apache2 libapache2-mod-php7.0 php7.0 php7.0-mysql mysql-server

After that I’ve uploaded my Nextcloud folder in the /var/www/html folder

When connecting to the server address and when clicking on the Nextcloud folder on http, the following page keeps to stay blank. It can display the index.php file and nothing happens. I’ve already restartet apache and the server but it keeps to stay blank.

The output of your Nextcloud log in Admin > Logging:

Can’t access

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

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


Can you post your Apache error log from /var/log/apache2/error.log (or so)? This should give more hints :slight_smile:

You should follow some tutotials for installing nextcloud because you have some php7.0modules missing and you have to configure apache2 with modules too.

When you have blank page at startup generaly you missed something at installation

Here is it:

[Fri Aug 04 17:38:04.009861 2017] [mpm_event:notice] [pid 367:tid 140255159711616] AH00489: Apache/2.4.18 (Ubuntu) configured – resuming normal operations
[Fri Aug 04 17:38:04.009970 2017] [core:notice] [pid 367:tid 140255159711616] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 05 01:12:03.016239 2017] [mpm_event:notice] [pid 367:tid 140255159711616] AH00491: caught SIGTERM, shutting down
[Sat Aug 05 01:15:24.719457 2017] [mpm_event:notice] [pid 3569:tid 139696789211008] AH00489: Apache/2.4.18 (Ubuntu) configured – resuming normal operations
[Sat Aug 05 01:15:24.719580 2017] [core:notice] [pid 3569:tid 139696789211008] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 05 01:17:56.750455 2017] [mpm_event:notice] [pid 3569:tid 139696789211008] AH00491: caught SIGTERM, shutting down
[Sat Aug 05 01:17:57.868081 2017] [mpm_prefork:notice] [pid 9759] AH00163: Apache/2.4.18 (Ubuntu) configured – resuming normal operations
[Sat Aug 05 01:17:57.868167 2017] [core:notice] [pid 9759] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 05 01:17:59.334483 2017] [mpm_prefork:notice] [pid 9759] AH00169: caught SIGTERM, shutting down
[Sat Aug 05 01:18:00.563228 2017] [mpm_prefork:notice] [pid 9860] AH00163: Apache/2.4.18 (Ubuntu) configured – resuming normal operations
[Sat Aug 05 01:18:00.563279 2017] [core:notice] [pid 9860] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 05 01:36:35.355920 2017] [mpm_prefork:notice] [pid 9860] AH00169: caught SIGTERM, shutting down
[Sat Aug 05 01:36:36.196755 2017] [mpm_prefork:notice] [pid 10668] AH00163: Apache/2.4.18 (Ubuntu) configured – resuming normal operations
[Sat Aug 05 01:36:36.196809 2017] [core:notice] [pid 10668] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Aug 05 01:36:43.253556 2017] [:error] [pid 10674] [client 93.234.224.87:50323] PHP Warning: fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.253596 2017] [:error] [pid 10674] [client 93.234.224.87:50323] {“reqId”:“QLCepja1H7ZOn8zdEqBP”,“level”:3,“time”:“2017-08-05T05:36:43+00:00”,“remoteAddr”:“93.234.224.87”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php",“message”:“touch(): Unable to create file \/var\/www\/html\/nextcloud\/config\/config.php because Permission denied at \/var\/www\/html\/nextcloud\/lib\/private\/Config.php#239”,“userAgent”:“Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/603.3.8 (KHTML, like Gecko) Version\/10.1.2 Safari\/603.3.8”,“version”:""}, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.253748 2017] [:error] [pid 10674] [client 93.234.224.87:50323] PHP Warning: fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.253763 2017] [:error] [pid 10674] [client 93.234.224.87:50323] {“reqId”:“QLCepja1H7ZOn8zdEqBP”,“level”:3,“time”:“2017-08-05T05:36:43+00:00”,“remoteAddr”:“93.234.224.87”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php",“message”:“fopen(\/var\/www\/html\/nextcloud\/config\/config.php): failed to open stream: No such file or directory at \/var\/www\/html\/nextcloud\/lib\/private\/Config.php#240”,“userAgent”:“Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/603.3.8 (KHTML, like Gecko) Version\/10.1.2 Safari\/603.3.8”,“version”:""}, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.253839 2017] [:error] [pid 10674] [client 93.234.224.87:50323] PHP Warning: fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.253850 2017] [:error] [pid 10674] [client 93.234.224.87:50323] {“reqId”:“QLCepja1H7ZOn8zdEqBP”,“level”:3,“time”:“2017-08-05T05:36:43+00:00”,“remoteAddr”:“93.234.224.87”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php",“message”:“chmod(): No such file or directory at \/var\/www\/html\/nextcloud\/lib\/private\/Config.php#243”,“userAgent”:“Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/603.3.8 (KHTML, like Gecko) Version\/10.1.2 Safari\/603.3.8”,“version”:""}, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.290791 2017] [:error] [pid 10674] [client 93.234.224.87:50323] PHP Warning: fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.290823 2017] [:error] [pid 10674] [client 93.234.224.87:50323] {“reqId”:“QLCepja1H7ZOn8zdEqBP”,“level”:3,“time”:“2017-08-05T05:36:43+00:00”,“remoteAddr”:“93.234.224.87”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php",“message”:“fileperms(): stat failed for \/var\/www\/html\/nextcloud\/data\/nextcloud.log at \/var\/www\/html\/nextcloud\/lib\/private\/Log\/File.php#122”,“userAgent”:“Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/603.3.8 (KHTML, like Gecko) Version\/10.1.2 Safari\/603.3.8”,“version”:""}, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.290840 2017] [:error] [pid 10674] [client 93.234.224.87:50323] {“reqId”:“QLCepja1H7ZOn8zdEqBP”,“level”:3,“time”:“2017-08-05T05:36:43+00:00”,“remoteAddr”:“93.234.224.87”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php",“message”:“Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: could not find driver at \/var\/www\/html\/nextcloud\/lib\/private\/DB\/Connection.php#61”,“userAgent”:“Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/603.3.8 (KHTML, like Gecko) Version\/10.1.2 Safari\/603.3.8”,“version”:""}, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.290996 2017] [:error] [pid 10674] [client 93.234.224.87:50323] PHP Warning: fileperms(): stat failed for /var/www/html/nextcloud/data/nextcloud.log in /var/www/html/nextcloud/lib/private/Log/File.php on line 122, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.291009 2017] [:error] [pid 10674] [client 93.234.224.87:50323] {“reqId”:“QLCepja1H7ZOn8zdEqBP”,“level”:3,“time”:“2017-08-05T05:36:43+00:00”,“remoteAddr”:“93.234.224.87”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php",“message”:“fileperms(): stat failed for \/var\/www\/html\/nextcloud\/data\/nextcloud.log at \/var\/www\/html\/nextcloud\/lib\/private\/Log\/File.php#122”,“userAgent”:“Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/603.3.8 (KHTML, like Gecko) Version\/10.1.2 Safari\/603.3.8”,“version”:""}, referer: http://137.74.130.161/nextcloud/
[Sat Aug 05 01:36:43.291021 2017] [:error] [pid 10674] [client 93.234.224.87:50323] {“reqId”:“QLCepja1H7ZOn8zdEqBP”,“level”:3,“time”:“2017-08-05T05:36:43+00:00”,“remoteAddr”:“93.234.224.87”,“user”:"–",“app”:“PHP”,“method”:“GET”,“url”:"\/nextcloud\/index.php",“message”:“chmod(): No such file or directory at \/var\/www\/html\/nextcloud\/lib\/private\/Log\/File.php#123”,“userAgent”:“Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit\/603.3.8 (KHTML, like Gecko) Version\/10.1.2 Safari\/603.3.8”,“version”:""}, referer: http://137.74.130.161/nextcloud/

The log says that apache2 don’t have correct permissions in your nextcloud folder

Please refer to the manual to put right permission on nextcloud folder
https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html#apache-web-server-configuration

Specialy the installation wizard part

1 Like

Can’t find any chmod part in there? So I have to give the whole Nextcloud folder chmod 777?

Don’t do that it s very dangerous !!

chmod ABC MEANS a for userowner b for groupowner c for everyone.

You give read write execute to everyone !

You have to put if you use apache2 :
chown -R www-data:www-data /pathofnextcloud

And chmod -R 770 /pathofnextcloud

Reload apache and repost log

Thanks for your help. It worked perfectly.

Another question: I got that LAMP server setup and installed all the modules but I recognised that not only Nextcloud but other services like phpbb and mybb takes forever to install, after entering database username, password and stuff.

Why does it take that long?

On what hardware do you install LAMP ?

You should take some training course on ubuntu server / apache2 / mysql and php to know how they work and how you can administrate them.

I personnaly install separately apache2 php7 mariadb

Don’t forget to put this topic SOLVED and choose witch answer was good for you

Where do I find the button to do so?

You have a square with a tick inside after my answer