Internal Server Error - DB-Driver not found (PHP 8.3.11)

Nextcloud version: 29.0.6.1
Operating system and version: Ubuntu 22.04.4
Apache or nginx version: 2.4.62
PHP version: 8.3.11

PHP 8.3.11 (cli) (built: Aug 30 2024 09:27:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.3.11, Copyright (c) Zend Technologies
    with Zend OPcache v8.3.11, Copyright (c), by Zend Technologies

After upgrade to Nextcloud 29.0.6.1 get this error message:

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.

Yesterday I first ran apt-get upgrade/dist-upgrade. The I upgraded nextcloud step by step from 26 (I think) to 29. Everything seemed fine at first. After upgrading to 29.0.6.1 I could even view the admin page normally. But today morning I got the error message mentioned above. I did not change anything in between.

Nextcloud Logs:

{
  "reqId": "keels8i0AVrPOdXvtqvY",
  "level": 3,
  "time": "2024-09-05T08:35:01+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "cron",
  "method": "",
  "url": "--",
  "message": "Failed to connect to the database: An exception occurred in the driver: could not find driver",
  "userAgent": "--",
  "version": "29.0.6.1",
  "exception": {
    "Exception": "Doctrine\\DBAL\\Exception",
    "Message": "Failed to connect to the database: An exception occurred in the driver: could not find driver",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
        "line": 453,
        "function": "connect",
        "class": "OC\\DB\\Connection",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
        "line": 411,
        "function": "getDatabasePlatformVersion",
        "class": "Doctrine\\DBAL\\Connection",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
        "line": 318,
        "function": "detectDatabasePlatform",
        "class": "Doctrine\\DBAL\\Connection",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/DB/ConnectionAdapter.php",
        "line": 200,
        "function": "getDatabasePlatform",
        "class": "Doctrine\\DBAL\\Connection",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php",
        "line": 121,
        "function": "getDatabasePlatform",
        "class": "OC\\DB\\ConnectionAdapter",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/AppConfig.php",
        "line": 1239,
        "function": "expr",
        "class": "OC\\DB\\QueryBuilder\\QueryBuilder",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/AppConfig.php",
        "line": 264,
        "function": "loadConfig",
        "class": "OC\\AppConfig",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/AppConfig.php",
        "line": 1380,
        "function": "searchValues",
        "class": "OC\\AppConfig",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/App/AppManager.php",
        "line": 131,
        "function": "getValues",
        "class": "OC\\AppConfig",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/App/AppManager.php",
        "line": 152,
        "function": "getInstalledAppsValues",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/legacy/OC_App.php",
        "line": 234,
        "function": "getInstalledApps",
        "class": "OC\\App\\AppManager",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 90,
        "function": "getEnabledApps",
        "class": "OC_App",
        "type": "::"
      },
      {
        "file": "/var/www/html/nextcloud/lib/base.php",
        "line": 714,
        "function": "runInitialRegistration",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/base.php",
        "line": 1189,
        "function": "init",
        "class": "OC",
        "type": "::"
      },
      {
        "file": "/var/www/html/nextcloud/cron.php",
        "line": 58,
        "args": [
          "/var/www/html/nextcloud/lib/base.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/nextcloud/lib/private/DB/Connection.php",
    "Line": 167,
    "message": "Failed to connect to the database: An exception occurred in the driver: could not find driver",
    "exception": {},
    "CustomMessage": "Failed to connect to the database: An exception occurred in the driver: could not find driver"
  }
}
An unhandled exception has been thrown:
Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: could not find driver in /var/www/html/nextcloud/lib/private/DB/Connection.php:167
Stack trace:
#0 /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(453): OC\DB\Connection->connect()
#1 /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(411): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /var/www/html/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(318): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /var/www/html/nextcloud/lib/private/DB/ConnectionAdapter.php(200): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(121): OC\DB\ConnectionAdapter->getDatabasePlatform()
#5 /var/www/html/nextcloud/lib/private/AppConfig.php(1239): OC\DB\QueryBuilder\QueryBuilder->expr()
#6 /var/www/html/nextcloud/lib/private/AppConfig.php(264): OC\AppConfig->loadConfig()
#7 /var/www/html/nextcloud/lib/private/AppConfig.php(1380): OC\AppConfig->searchValues()
#8 /var/www/html/nextcloud/lib/private/App/AppManager.php(131): OC\AppConfig->getValues()
#9 /var/www/html/nextcloud/lib/private/App/AppManager.php(152): OC\App\AppManager->getInstalledAppsValues()
#10 /var/www/html/nextcloud/lib/private/legacy/OC_App.php(234): OC\App\AppManager->getInstalledApps()
#11 /var/www/html/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php(90): OC_App::getEnabledApps()
#12 /var/www/html/nextcloud/lib/base.php(714): OC\AppFramework\Bootstrap\Coordinator->runInitialRegistration()
#13 /var/www/html/nextcloud/lib/base.php(1189): OC::init()
#14 /var/www/html/nextcloud/console.php(48): require_once('...')
#15 /var/www/html/nextcloud/occ(11): require_once('...')
#16 {main}pi@NanoPi-R6C:/var/www/html/nextcloud$

This looks like you have multiple php versions running, which often occurs after these steps. The version you listed above, is only the cli SAPI. Your apache uses another SAPI to speak with php.

Please run → php-updater script ←
It will provide you a comprehensive overview about the php realm on your server and can fix such errors in the majority of cases.

hth.


Much and good luck,
ernolf

Thanks for the quick response. I downloaded and ran the script. I followed the recommended steps. Now it seems stuck here:

How long is this step supposed to take?
Can you make out any obvies errors in my screenshot?

Thanks!

You can safely kill the script at any point with Ctrl+C

Yes, because your web server uses php8.2 while your cli (which is used by cron which throwed the error) is on php8.3.


So now you have different options:

  • remove php8.3 completely from your system by

    apt-get purge '*php8.3*'
    

    then you run php8.2 systemwide. (That is what I would recommend)

or

  • keep the partial php8.3 installed and start the script again this way:

    php-updater 8.2 8.3
    

    then it will install the missing part of php8.3, then run

    php-updater --switch-version
    

    and switch everything (cli, apache2 etc) to php8.3

or

  • run

    php-updater --switch-version
    

    and switch cli to php8.2

h.t.h.


Much and good luck,
ernolf

Thanks again! Yes I killed the script after a while.

Do you care to elaborate why you prefere the first option? So I have only one PHP-Version left? Wouldn’t this mean apt-get upgrade installs 8.3 the next time again?

Related to this: How can I ensure I don’t update PHP anymore? Completely avoiding updates seems a bad idea.

No. There is no need to be afraid for that. As long as you removed all dependency- and meta packages (the php-updater script will hint you for that), there will be no installation steps any more of that kind.

You can update your php version with the php-updater script and then run

apt-get update && apt-get dist-upgrade

at any time. And always when you want to install a new php-version or want to switch between versions (back- or forwards), use php-updater.


ernolf

I have uninstalled php 8.3. now it looks like this:

The script asked me if I want to update, which I refused:
grafik

I have restarted apache2, but I still get this:

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.

In nextcloud/data/nextcloud.log are no new details. The last message was the failing cron job again. But it was logged hours ago, before I removed php 8.3.

Are there any other logs I can check?

Please look in the server logs

/var/log/apache2/access.log
/var/log/apache2/error.log

And it would be very helpfull, if you could provide some more details about your server and setup. Which apps are enabled, your config/config.php (without he secrets) etc.


ernolf

Thanks for the help. I really appreciate it!

I’m running nextcloud on a nano-pi. URL is provided by ddns and the certificate I got from let’s encrypt. Also I think i used MariaDB even though it says mysql below.

Here are more logs and the php config. xyz is a placeholder for information I don’t want to share. I can’t find any obvious problems unfortunately.

[Fri Sep 06 04:17:51.174318 2024] [core:error] [pid 219127:tid 219127] [client 37.114.32.223:45086] AH10244: invalid URI path (/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh)
[Fri Sep 06 04:24:17.251950 2024] [php:error] [pid 219123:tid 219123] [client 137.184.126.194:39986] script '/var/www/html/alive.php' not found or unable to stat
[Fri Sep 06 17:57:58.871552 2024] [core:error] [pid 221718:tid 221718] [client 47.89.242.141:50380] AH10244: invalid URI path (/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh)
[Fri Sep 06 17:58:00.305111 2024] [core:error] [pid 219125:tid 219125] [client 47.89.242.141:50382] AH10244: invalid URI path (/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh)
[Fri Sep 06 17:58:19.728389 2024] [php:error] [pid 233666:tid 233666] [client 47.89.242.141:58636] script '/var/www/html/index.php' not found or unable to stat
[Fri Sep 06 17:58:20.592899 2024] [php:error] [pid 233666:tid 233666] [client 47.89.242.141:58636] script '/var/www/html/index.php' not found or unable to stat
[Fri Sep 06 17:58:20.810724 2024] [php:error] [pid 233666:tid 233666] [client 47.89.242.141:58636] script '/var/www/html/index.php' not found or unable to stat
[Fri Sep 06 19:16:14.946767 2024] [core:error] [pid 219127:tid 219127] [client 8.216.83.6:39788] AH10244: invalid URI path (/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh)
[Fri Sep 06 19:16:16.493704 2024] [core:error] [pid 219400:tid 219400] [client 8.216.83.6:39794] AH10244: invalid URI path (/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh)
[Fri Sep 06 21:25:04.775618 2024] [mpm_prefork:notice] [pid 912:tid 912] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Sep 06 21:25:11.738941 2024] [ssl:warn] [pid 243022:tid 243022] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Sep 06 21:25:11.739019 2024] [ssl:warn] [pid 243022:tid 243022] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 06 21:25:11.821877 2024] [ssl:warn] [pid 243023:tid 243023] AH01906: 127.0.1.1:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Fri Sep 06 21:25:11.821928 2024] [ssl:warn] [pid 243023:tid 243023] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 06 21:25:11.827806 2024] [mpm_prefork:notice] [pid 243023:tid 243023] AH00163: Apache/2.4.62 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Fri Sep 06 21:25:11.827856 2024] [core:notice] [pid 243023:tid 243023] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 06 22:11:11.698765 2024] [core:error] [pid 243024:tid 243024] [client 101.44.163.208:33502] AH10244: invalid URI path (/cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh)
[Fri Sep 06 22:11:12.054059 2024] [core:error] [pid 243050:tid 243050] [client 101.44.163.208:34040] AH10244: invalid URI path (/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh)
185.180.140.4 - - [06/Sep/2024:20:03:48 +0000] "GET / HTTP/1.1" 200 1829 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
180.149.125.172 - - [06/Sep/2024:20:06:41 +0000] "GET / HTTP/1.1" 200 1783 "-" "Mozilla/5.0 (Windows NT 5.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36"
103.7.8.110 - - [06/Sep/2024:20:16:39 +0000] "GET / HTTP/1.1" 200 1986 "-" "Mozilla/5.0 (Debian; Linux i686; rv:123.0) Gecko/20100101 Firefox/123.0"
103.7.8.110 - - [06/Sep/2024:20:16:40 +0000] "GET /favicon.ico HTTP/1.1" 404 2196 "-" "Mozilla/5.0 (Debian; Linux i686; rv:123.0) Gecko/20100101 Firefox/123.0"
83.97.73.245 - - [06/Sep/2024:20:44:45 +0000] "GET /actuator/gateway/routes HTTP/1.1" 302 542 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36"
91.92.249.4 - - [06/Sep/2024:20:57:41 +0000] "GET /.git/config HTTP/1.1" 404 2196 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 15_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/99.3  Mobile/15E148 Safari/605.1.15"
149.50.103.48 - - [06/Sep/2024:21:06:00 +0000] "GET / HTTP/1.1" 302 477 "-" "-"
185.224.128.187 - - [06/Sep/2024:21:08:13 +0000] "GET /cgi-bin/luci/;stok=/locale HTTP/1.1" 302 529 "-" "Go-http-client/1.1"
194.26.25.250 - - [06/Sep/2024:21:09:33 +0000] "GET / HTTP/1.1" 200 1754 "-" "-"
194.26.25.250 - - [06/Sep/2024:21:09:33 +0000] "GET / HTTP/1.1" 200 1754 "-" "-"
94.156.66.116 - - [06/Sep/2024:21:10:37 +0000] "GET /_profiler/phpinfo HTTP/1.1" 404 2196 "-" "Mozilla/5.0 (Linux; Android 7.1.2; FP2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3888.0 Mobile Safari/537.36"
94.156.66.116 - - [06/Sep/2024:21:11:49 +0000] "GET /_profiler/phpinfo HTTP/1.1" 404 2196 "-" "Mozilla/5.0 (X11; Linux i686; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 SeaMonkey/2.7.1"
87.236.176.62 - - [06/Sep/2024:21:14:19 +0000] "GET / HTTP/1.1" 200 1986 "http://80.109.43.33:8080" "Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)"
87.236.176.80 - - [06/Sep/2024:21:14:22 +0000] "GET /favicon.ico HTTP/1.1" 404 2211 "-" "Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)"
68.183.53.77 - - [06/Sep/2024:21:14:23 +0000] "GET /favicon.ico HTTP/1.1" 404 2211 "-" "Mozilla/5.0 (compatible; InternetMeasurement/1.0; +https://internet-measurement.com/)"
23.129.64.137 - - [06/Sep/2024:21:14:24 +0000] "GET /favicon.ico HTTP/1.1" 404 2211 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36"
194.26.25.250 - - [06/Sep/2024:21:14:57 +0000] "GET /remote/login?lang=en HTTP/1.1" 400 2012 "-" "-"
194.26.25.250 - - [06/Sep/2024:21:14:58 +0000] "GET /remote/login?lang=en HTTP/1.1" 400 2012 "-" "-"
95.214.55.138 - - [06/Sep/2024:21:17:16 +0000] "GET / HTTP/1.1" 302 533 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"
185.224.128.83 - - [06/Sep/2024:21:25:54 +0000] "GET /cgi-bin/luci/;stok=/locale HTTP/1.1" 302 529 "-" "Go-http-client/1.1"
185.224.128.84 - - [06/Sep/2024:21:27:48 +0000] "GET /cgi-bin/luci/;stok=/locale HTTP/1.1" 404 2177 "http://80.109.43.33:8080/cgi-bin/luci/;stok=/locale" "Go-http-client/1.1"
185.191.126.213 - - [06/Sep/2024:21:34:23 +0000] "GET / HTTP/1.1" 302 477 "-" "-"
185.224.128.47 - - [06/Sep/2024:21:49:50 +0000] "GET / HTTP/1.1" 302 474 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"
185.16.39.118 - - [06/Sep/2024:21:50:03 +0000] "GET / HTTP/1.1" 302 533 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"
185.191.126.213 - - [06/Sep/2024:21:53:11 +0000] "GET / HTTP/1.1" 302 477 "-" "-"
45.148.10.242 - - [06/Sep/2024:21:54:03 +0000] "GET /cgi-bin/luci/;stok=/locale HTTP/1.1" 302 529 "-" "Hello"
154.216.17.87 - - [06/Sep/2024:22:02:25 +0000] "GET /.git/config HTTP/1.1" 404 2264 "-" "python-requests/2.32.3"
154.216.17.87 - - [06/Sep/2024:22:02:25 +0000] "GET / HTTP/1.0" 400 684 "-" "-"
101.44.163.208 - - [06/Sep/2024:22:11:11 +0000] "POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1" 400 486 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:12 +0000] "POST /cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/sh HTTP/1.1" 400 486 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:15 +0000] "POST /hello.world?%ADd+allow_url_include%3d1+%ADd+auto_prepend_file%3dphp://input HTTP/1.1" 302 683 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:15 +0000] "GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 632 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:15 +0000] "GET /vendor/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 302 624 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:15 +0000] "GET /vendor/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 616 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:16 +0000] "GET /vendor/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 302 608 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:16 +0000] "GET /vendor/phpunit/phpunit/LICENSE/eval-stdin.php HTTP/1.1" 302 622 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:16 +0000] "GET /vendor/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 646 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:17 +0000] "GET /phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 618 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:17 +0000] "GET /phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 302 610 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:17 +0000] "GET /phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 602 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:17 +0000] "GET /phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 302 594 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:17 +0000] "GET /lib/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 626 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:18 +0000] "GET /lib/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 302 618 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:18 +0000] "GET /lib/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 610 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:18 +0000] "GET /lib/phpunit/Util/PHP/eval-stdin.php HTTP/1.1" 302 602 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:18 +0000] "GET /lib/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 640 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:18 +0000] "GET /laravel/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 648 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:18 +0000] "GET /www/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 640 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:19 +0000] "GET /ws/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 638 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:19 +0000] "GET /yii/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 640 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:19 +0000] "GET /zend/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 642 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:20 +0000] "GET /ws/ec/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 644 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:20 +0000] "GET /V2/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 638 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:20 +0000] "GET /tests/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 644 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:20 +0000] "GET /test/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 642 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:20 +0000] "GET /testing/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 648 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:20 +0000] "GET /api/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 640 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:21 +0000] "GET /demo/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 642 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:22 +0000] "GET /cms/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 640 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:22 +0000] "GET /crm/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 640 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:22 +0000] "GET /admin/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 644 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:22 +0000] "GET /backup/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 646 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:22 +0000] "GET /blog/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 642 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:22 +0000] "GET /workspace/drupal/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 666 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:23 +0000] "GET /panel/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 644 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:23 +0000] "GET /public/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 646 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:23 +0000] "GET /apps/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 642 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:23 +0000] "GET /app/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1" 302 640 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:23 +0000] "GET /index.php?s=/index/\\think\\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=Hello HTTP/1.1" 302 748 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:24 +0000] "GET /public/index.php?s=/index/\\think\\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=Hello HTTP/1.1" 302 762 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:24 +0000] "GET /index.php?lang=../../../../../../../../usr/local/lib/php/pearcmd&+config-create+/&/<?echo(md5(\"hi\"));?>+/tmp/index1.php HTTP/1.1" 302 794 "-" "Custom-AsyncHttpClient"
101.44.163.208 - - [06/Sep/2024:22:11:24 +0000] "GET /index.php?lang=../../../../../../../../tmp/index1 HTTP/1.1" 302 630 "-" "Custom-AsyncHttpClient"
192.42.116.175 - - [06/Sep/2024:22:17:46 +0000] "GET /remote/fgt_lang?lang=/../../../../dev/cmdb/sslvpn_websession HTTP/1.1" 404 2212 "-" "Python-urllib/3.12"
185.224.128.187 - - [06/Sep/2024:22:45:41 +0000] "GET /cgi-bin/luci/;stok=/locale HTTP/1.1" 404 2177 "http://80.109.43.33:8080/cgi-bin/luci/;stok=/locale" "Go-http-client/1.1"
45.156.128.45 - - [06/Sep/2024:22:47:29 +0000] "GET / HTTP/1.1" 200 1829 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
149.50.103.48 - - [06/Sep/2024:22:58:44 +0000] "GET / HTTP/1.1" 302 477 "-" "-"
178.211.139.188 - - [06/Sep/2024:22:59:32 +0000] "GET / HTTP/1.1" 302 533 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.85 Safari/537.36 Edg/90.0.818.46"
<?php
$CONFIG = array (
  'mail_smtpdebug' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'instanceid' => 'xyz',
  'passwordsalt' => 'xyz',
  'secret' => 'xyz',
  'trusted_domains' =>
  array (
    0 => '192.168.0.188',
    1 => 'xyz.ddns.net',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '29.0.6.1',
  'overwrite.cli.url' => 'http://192.168.0.188/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'xyz',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'xyz.nextcloud',
  'mail_domain' => 'gmail.com',
  'mail_smtpauth' => 1,
  'mail_smtpport' => '465',
  'mail_smtpname' => 'xyz.nextcloud@gmail.com',
  'mail_smtppassword' => 'xyz',
  'mail_smtpsecure' => 'ssl',
  'default_phone_region' => 'AT',
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
    0 => 'Users',
    1 => 'admin',
  ),
  'updater.secret' => 'xyz',
);

EDIT: Okay, it seems use the wrong path for index.php and alive.php… Not sure where to change that though…

EDIT2:
etc/apache2/sites-enabled/nextcloud.conf

<VirtualHost *:80>
ServerName xyz.ddns.net
DocumentRoot /var/www/html/nextcloud

<Directory /var/www/html/nextcloud/>
 Require all granted
 Options FollowSymlinks MultiViews
 AllowOverride All
 <IfModule mod_dav.c>
 Dav off
 </IfModule>

SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud

 </Directory>

ErrorLog /var/log/apache2/xyz.ddns.net.error_log
CustomLog /var/log/apache2/xyz.ddns.net.access_log common
RewriteEngine on
RewriteCond %{SERVER_NAME} =xyz.ddns.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

That is OK. MariaDB is absolutely transparent and can be handled as if it is MySQL.

But this is your Problem:

Beside others, the php module apcu is missing.
Please install this missing php modules:

sudo apt-get install php8.2-{apcu,bz2,gmp,igbinary,imagick,intl}

And after you’ve done that, here’s a free tip to optimize performance:

  • make sure the file:
    /etc/php/8.2/mods-available/igbinary.ini
    looks like this:
; configuration for php igbinary module
; priority=20

; Load igbinary extension
extension=igbinary.so

; Use igbinary as session serializer
session.serialize_handler = igbinary

; Enable or disable compacting of duplicate strings
; The default is On.
igbinary.compact_strings=On

; Use igbinary as serializer in APC cache (3.1.7 or later)
apc.serializer = igbinary
  • and add this line to the file
    /etc/php/8.2/cli/php.ini
apc.enable_cli = 1

if not yet done.


After you have done that, restart your webserver and then everything should work.
:crossed_fingers:
hth.


Much and good luck,
ernolf

Ahhh… Thanks a lot!
Everything works again!

How did you know the missing modules from the logs?

(I think I had all of these modules installed for php 8.3 and the 8.3 installation got messed up through the whole upgrade process…)

1 Like

Hi @Osiris1,

:partying_face: :dancing_women: :tada: :piñata: :mirror_ball:


… your second screenshot from the

  • php-updater --list-installed

screen.


Yes. Next time use php-updater strait away from the start, that will prevent such adventures. That’s why I wrote it!
It can do even more for you; you can switch from the old apache2 module to php-fpm, which is much faster and more secure, since it supports http2. :wink:


Much and good luck,
ernolf

Yeah, at somepoint I need to update to 8.3. Then I’m definitely going to use your script. It’s really useful and saves me from a lot of headaches! Thanks again!

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.