Php curl module isn't installed

Nextcloud version (eg, 12.0.2): 15.0.10

Operating system and version (eg, Ubuntu 17.04): Debian Buster

Apache or nginx version (eg, Apache 2.4.25):
Server version: Apache/2.4.38 (Debian)
Server built: 2019-04-07T18:15:40

PHP version (eg, 7.1): 7.3

The issue you are facing:
Got a message: php Curl module isn’t installed
(In French:

Le module PHP cURL n’est pas installé.

Veuillez demander à votre administrateur d’installer le module.

Les modules PHP ont été installés mais sont toujours indiqués comme manquants ?

Veuillez demander à votre administrateur serveur de redémarrer le serveur web.

)

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it: Not relevant

The output of your Nextcloud log in Admin > Logging:

{"reqId":"Nye3jRFDobVwXno7hV85","level":1,"time":"2019-08-10T01:33:37+00:00","remoteAddr":"184.105.247.195","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"184.105.247.195\" tried to access using \"91.121.255.255\" as host.","userAgent":"--","version":"15.0.10.0"}
{"reqId":"Acohx9g3NOuxuziYnyNI","level":1,"time":"2019-08-10T07:37:27+00:00","remoteAddr":"70.37.79.123","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"70.37.79.123\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 zgrab\/0.x","version":"15.0.10.0"} 
{"reqId":"jQT7XPiP7rQN4U7LVAkL","level":1,"time":"2019-08-10T07:39:16+00:00","remoteAddr":"169.197.255.255","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"169.197.255.255\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"15.0.10.0"} 
{"reqId":"r9G6G46hYHBvKOGYz11X","level":1,"time":"2019-08-10T07:39:31+00:00","remoteAddr":"169.197.255.255","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"169.197.255.255\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"15.0.10.0"} 
{"reqId":"1RA5Mp3pzZlP3Mlrw4AE","level":1,"time":"2019-08-10T07:39:48+00:00","remoteAddr":"169.197.255.255","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"169.197.255.255\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"15.0.10.0"} 
{"reqId":"fBI0KjGUvYciJHDJYdhl","level":1,"time":"2019-08-10T07:40:03+00:00","remoteAddr":"169.197.255.255","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"169.197.255.255\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"15.0.10.0"} 
{"reqId":"DgTbrWIKEsluBajUcrdf","level":1,"time":"2019-08-10T07:40:19+00:00","remoteAddr":"169.197.255.255","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"169.197.255.255\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"15.0.10.0"} 
{"reqId":"vAJV6Xu1qgE2xolWC11u","level":1,"time":"2019-08-10T07:40:34+00:00","remoteAddr":"169.197.255.255","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"169.197.255.255\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/60.0.3112.113 Safari\/537.36","version":"15.0.10.0"} 
{"reqId":"vTWMEqYDxOagqQ1ovYHI","level":1,"time":"2019-08-10T08:51:53+00:00","remoteAddr":"198.255.2557.112","user":"--","app":"core","method":"GET","url":"\/requested.html","message":"Trusted domain error. \"198.255.2557.112\" tried to access using \"91.121.255.255\" as host.","userAgent":"Mozilla\/5.0 zgrab\/0.x","version":"15.0.10.0"} 
{"reqId":"vZobOKqMRxR0ue4FsFvp","level":1,"time":"2019-08-10T10:49:29+00:00","remoteAddr":"209.17.97.74","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"209.17.97.74\" tried to access using \"akita.XXXX.fr\" as host.","userAgent":"Mozilla\/5.0 (compatible; Nimbostratus-Bot\/v1.3.2; http:\/\/cloudsystemnetworks.com)","version":"15.0.10.0"} 
{"reqId":"AtaUIYSVhpddOifepICj","level":1,"time":"2019-08-10T17:36:41+00:00","remoteAddr":"60.191.38.77","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"60.191.38.77\" tried to access using \"www.XXXX.fr\" as host.","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko\/20100101 Firefox\/47.0","version":"15.0.10.0"}

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

<?php
$CONFIG = array (
  'instanceid' => 'oc6izvw1hjcz',
  'passwordsalt' => 'I/./NkAXntpawDdCGicbNENwYUc/Rf',
  'secret' => 'Re2LQsfMBfv5jsDkvJDJi1qQDhXfehPcE9r91wpw0bsEDn34',
  'trusted_domains' =>
  array (
    0 => 'cloud.NONYMOUS.fr', 
    1 => 'web.NONYMOUS.fr', 
  ), 
  'datadirectory' => '/home/cloud/', 
  'overwrite.cli.url' => 'http://cloud.NONYMOUS.fr', 
  'dbtype' => 'mysql', 
  'version' => '15.0.10.0', 
  'dbname' => 'cloud', 
  'dbhost' => 'localhost', 
  'dbtableprefix' => 'oc_', 
  'dbuser' => 'cloud', 
  'dbpassword' => 'XXXXXXXXXXXXXXX', 
  'installed' => true, 
  'forcessl' => true, 
  'forceSSLforSubdomains' => true, 
  'mail_smtpmode' => 'smtp', 
  'mail_smtpsecure' => 'tls', 
  'mail_from_address' => 'owncloud', 
  'mail_domain' => 'NONYMOUS.fr', 
  'mail_smtpauthtype' => 'LOGIN', 
  'mail_smtpauth' => 1, 
  'mail_smtphost' => 'mail.gandi.net', 
  'mail_smtpport' => '587', 
  'mail_smtpname' => 'ANN@NONYMOUS.fr', 
  'mail_smtppassword' => 'XXXXXXXXXXXX', 
  'theme' => '', 
  'maintenance' => false, 
  'loglevel' => 1, 
  'trashbin_retention_obligation' => 'auto', 
  'htaccess.RewriteBase' => '/', 
  'updater.release.channel' => 'stable', 
);

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

[Sat Aug 10 19:49:54.889028 2019] [:error] [pid 1121] [client 58.97.18.91:62614] script '/home/web/public/laobiao.php' not found or unable to stat
[Sat Aug 10 19:49:55.085335 2019] [:error] [pid 1121] [client 58.97.18.91:62614] script '/home/web/public/sample.php' not found or unable to stat
[Sat Aug 10 19:49:57.166784 2019] [:error] [pid 1121] [client 58.97.18.91:62614] script '/home/web/public/shell.php' not found or unable to stat
[Sat Aug 10 19:49:57.559638 2019] [:error] [pid 1121] [client 58.97.18.91:62614] script '/home/web/public/12.php' not found or unable to stat
[Sat Aug 10 19:49:57.756053 2019] [:error] [pid 1121] [client 58.97.18.91:62614] script '/home/web/public/ecmsmod.php' not found or unable to stat
[Sat Aug 10 19:51:22.987529 2019] [:error] [pid 7923] [client 58.97.18.91:22093] script '/home/web/public/user.php' not found or unable to stat, referer: 554fcae493e564ee0dc75bdf2ebf94caads|a:3:{s:2:"id";s:3:"'/*";s:3:"num";s:141:"*/ union select 1,0x272F2A,3,4,5,6,7,8,0x7b247b24524345275d3b6469652f2a2a2f286d6435284449524543544f52595f534550415241544f5229293b2f2f7d7d,0--";s:4:"name";s:3:"ads";}554fcae493e564ee0dc75bdf2ebf94ca
[Sat Aug 10 22:47:38.839827 2019] [mpm_prefork:notice] [pid 911] AH00169: caught SIGTERM, shutting down
[Sat Aug 10 22:47:39.400919 2019] [mpm_prefork:notice] [pid 25123] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2s configured -- resuming normal operations
[Sat Aug 10 22:47:39.401142 2019] [core:notice] [pid 25123] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 10 22:49:26.534470 2019] [mpm_prefork:notice] [pid 25123] AH00169: caught SIGTERM, shutting down
[Sat Aug 10 22:49:26.997213 2019] [mpm_prefork:notice] [pid 26072] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2s configured -- resuming normal operations
[Sat Aug 10 22:49:26.997417 2019] [core:notice] [pid 26072] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 10 22:49:50.851318 2019] [mpm_prefork:notice] [pid 26072] AH00169: caught SIGTERM, shutting down
[Sat Aug 10 22:51:10.328556 2019] [mpm_prefork:notice] [pid 985] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2s configured -- resuming normal operations
[Sat Aug 10 22:51:10.439577 2019] [core:notice] [pid 985] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 10 22:59:42.988955 2019] [mpm_prefork:notice] [pid 985] AH00171: Graceful restart requested, doing restart
[Sat Aug 10 22:59:43.416530 2019] [mpm_prefork:notice] [pid 985] AH00163: Apache/2.4.25 (Debian) OpenSSL/1.0.2s configured -- resuming normal operations
[Sat Aug 10 22:59:43.416597 2019] [core:notice] [pid 985] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 10 23:04:09.648364 2019] [mpm_prefork:notice] [pid 985] AH00169: caught SIGTERM, shutting down
[Sat Aug 10 23:05:23.702774 2019] [mpm_prefork:notice] [pid 3608] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1c configured -- resuming normal operations
[Sat Aug 10 23:05:23.703008 2019] [core:notice] [pid 3608] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 10 23:16:49.980809 2019] [mpm_prefork:notice] [pid 3608] AH00171: Graceful restart requested, doing restart
[Sat Aug 10 23:16:50.396035 2019] [mpm_prefork:notice] [pid 3608] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1c configured -- resuming normal operations
[Sat Aug 10 23:16:50.396098 2019] [core:notice] [pid 3608] AH00094: Command line: '/usr/sbin/apache2'
[Sat Aug 10 23:20:59.765059 2019] [mpm_prefork:notice] [pid 3608] AH00169: caught SIGTERM, shutting down
[Sat Aug 10 23:21:00.186956 2019] [mpm_prefork:notice] [pid 8736] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1c configured -- resuming normal operations
[Sat Aug 10 23:21:00.187153 2019] [core:notice] [pid 8736] AH00094: Command line: '/usr/sbin/apache2'

What I did:
I wanted to update from nextcloud 15.0.10 to 16.0.3.
But the update button didn’t appear dispite the update message…
I guessed (and read) that the problem were about php version (it was php7.0)
I updated php with a little “apt install php7.3”
Then I had the issue.
I did “apt install php7.3-curl”.
The installation seemed to be ok.
I reloaded apache2…
And then same issue…
Are you able to help me ?
Thank you

I’m seeing trusted domain errors too. Are you accessing it via an address different than what’s in your trusted_domains array? I’m also seeing the web server is unable to find some files. Are your permissions correct? Finally, I think the php curl module relies on the curl(1) application. Make sure it’s installed since Debian doesn’t come with it by default

apt install curl

Thanks for your help.

  1. I’m not accessing to my nextcloud with an address which isn’t in the trusted_domains array.
  2. The errors seems to be some robots that trying to launch random script names. These files doesn’t exist.
  3. I did “apt install curl”, and debian answered that I had the last version of curl.

So I guess that the problem is somewhere else… too bad…

Perhaps your php module isn’t being properly loaded? Did you reload or restart apache?