Nextcloud version (13.0.1.1):
Operating system and version (Ubuntu 18.04):
Apache or nginx version (Apache 2.4.29):
PHP version ( 7.2.5-0ubuntu0.18.04.1):
The issue you are facing:
Upgraded Ubuntu from 17.04 to 18.04, but for some reason nextcloud no longer starts. I usedthis guide to install nextcloud a couple months ago. I tried reinstalling php7 but get an error that
$ sudo apt-get install php7.0-curl
php7.0-curl is not available
nextcloud.mydomain.com gives the error:
Internal Server Error
The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.
mydomain.com works just fine.
Is this the first time you’ve seen this error? (Y):
Steps to replicate it:
- Upgrade Ubuntu from 17.04 to 17.10
- Upgrade Ubuntu from 17.10 to 18.04
- Try to access nextcloud
The output of your Nextcloud log in Admin > Logging:
I cannot access the GUI
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '************',
'passwordsalt' => '************',
'secret' => '************',
'trusted_domains' =>
array (
0 => '192.168.1.247',
1 => '************',
2 => '************',
3 => '************',
4 => '************',
),
'datadirectory' => '/var/www/nextcloud-data',
'overwrite.cli.url' => '************',
'dbtype' => 'mysql',
'version' => '13.0.1.1',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => '************',
'logtimezone' => 'UTC',
'installed' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'updater.release.channel' => 'stable',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.local' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => '************',
),
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => '************',
'mail_domain' => '************',
'mail_smtpauth' => 1,
'mail_smtphost' => '************',
'mail_smtpport' => ''************',
'mail_smtpname' => '************',
'mail_smtppassword' => '************',
'mail_smtpsecure' => 'ssl',
);
The output of your Apache/nginx/system log in /var/log/apache2/error.log
:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/igbinary.so' - /usr/lib/php/20151012/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/redis.so' - /usr/lib/php/20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed May 16 00:09:46.536818 2018] [ssl:warn] [pid 2204] AH01909: [REDACTED]:443:0 server certificate does NOT include an ID which matches the server name
[Wed May 16 00:09:46.537976 2018] [mpm_prefork:notice] [pid 2204] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Wed May 16 00:09:46.537988 2018] [core:notice] [pid 2204] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 16 00:38:25.717322 2018] [:error] [pid 7907] [client 193.106.30.99:59762] script '/var/www/[REDACTED]/wp-admin/yt.php' not found or unable to stat
[Wed May 16 02:00:12.138544 2018] [:error] [pid 8475] [client 47.89.10.162:23153] script '/var/www/homepage/index.php' not found or unable to stat
[Wed May 16 07:58:31.361958 2018] [mpm_prefork:notice] [pid 2204] AH00169: caught SIGTERM, shutting down
[Wed May 16 07:58:31.495983 2018] [ssl:warn] [pid 17098] AH01909: [REDACTED]:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/igbinary.so' - /usr/lib/php/20151012/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/redis.so' - /usr/lib/php/20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed May 16 07:58:31.591056 2018] [ssl:warn] [pid 17102] AH01909: [REDACTED]:443:0 server certificate does NOT include an ID which matches the server name
[Wed May 16 07:58:31.600363 2018] [mpm_prefork:notice] [pid 17102] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Wed May 16 07:58:31.600394 2018] [core:notice] [pid 17102] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 16 08:04:12.438653 2018] [mpm_prefork:notice] [pid 17102] AH00169: caught SIGTERM, shutting down
[Wed May 16 08:04:25.338475 2018] [ssl:warn] [pid 1479] AH01909: [REDACTED]:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/igbinary.so' - /usr/lib/php/20151012/igbinary.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/redis.so' - /usr/lib/php/20151012/redis.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed May 16 08:04:25.534635 2018] [ssl:warn] [pid 1562] AH01909: [REDACTED]:443:0 server certificate does NOT include an ID which matches the server name
[Wed May 16 08:04:25.541091 2018] [mpm_prefork:notice] [pid 1562] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Wed May 16 08:04:25.541116 2018] [core:notice] [pid 1562] AH00094: Command line: '/usr/sbin/apache2'
[Wed May 16 08:04:26.354468 2018] [:error] [pid 1581] [client 192.168.1.1:52114] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such$
[Wed May 16 08:04:26.354785 2018] [:error] [pid 1581] [client 192.168.1.1:52114] PHP Fatal error: Uncaught Doctrine\\DBAL\\DBALException: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] No such$
[Wed May 16 08:20:44.560496 2018] [:error] [pid 1579] [client 91.210.144.203:59581] script '/var/www/homepage/xmlrpc.php' not found or unable to stat, referer: http://[REDACTED].pro/xmlrpc.php
[Wed May 16 08:20:45.509254 2018] [:error] [pid 3320] [client 91.210.144.203:64266] script '/var/www/homepage/wp-login.php' not found or unable to stat, referer: http://[REDACTED].pro/wp-login.php
[Wed May 16 09:58:33.573802 2018] [:error] [pid 1583] [client 193.106.30.99:50086] script '/var/www/[REDACTED]/imdex.php' not found or unable to stat
Update: Installed php7.2-curl php7.2-gd php7.2-xml php7.2-zip php7.2-mysql, this did not fix the issue.