Ankündigung

Einklappen
Keine Ankündigung bisher.

mysql mysqli

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    mysql mysqli

    Ich steige gerade auf die aktuelle smarthome um. Leider bekomme ich über phpmyadmin keinen Zugang mehr.

    Es erscheint folgende Fehlermeldung:

    Die Erweiterung mysqli fehlt. Bitte die PHP-Konfiguration überprüfen. Siehe unsere Dokumentation für mehr Informationen.

    Auch unter google stehen einige Lösungsansätze, aber bis jetzt bleiben meine Versuche erfolglos.

    Wer kann mir eine Hilfe geben??

    LG und Danke
    Wolfgang

    #2
    Hi, es ist schwierig anhand deinen Angaben herauszufinden, wo das Problem ist.

    Ich mache mal einen ersten Versuch.

    Ich vermute du hast SmartHomeNG mit MySQL als Backend im Einsatz und hattest bislang per phpmyadmin auch Mal für Wartungszwecke direkt auf die Datenbank zugegriffen.

    Im Zuge deines Umstiegs hast du auch eine neue PHP-Version im Apache2 (für phpmyadmin) installiert, vermutlich mindestens 7.x.

    Nun kommst wirft phpmyadmin Brief Fehlermeldung, da es mit PHP 7 oder höher die mysqli Extensions braucht, du aber die nicht installiert hast.

    Erster Schritt:
    apt-get install php-mysql
    Ansonsten bräuchte man weitere Infos von dir:
    Bisherige und neue Versionen von:
    Smarthomeng
    PHP
    Apache/nginx
    Phpmyadmin
    Betriebssystem


    Darüber hinaus wäre interessant, ob du auf dem bestehenden System geblieben bist oder auch das Betriebssystem neu aufgesetzt hast.


    Das klingt auf alle Fälle eher nach einem Problem der Werbserver Installation und nicht nach SmartHomeNG selbst.

    Kommentar


      #3
      Hallo jzehnter,
      danke für Deine Antwort.

      Ich hatte unter der "alten" smarthome 1.8.x eine private Tabelle unter mysql angelegt und hier min/max-Werte verschiedener Itemwerte festgehalten. Dazu hatte ich mir ein eigenes Plugin gebastelt.

      Jetzt hatte ich mir das 1.9.1.img heruntergaladen und auf einem frischen Raspi 4 installiert, die grundlegenden Parameter angepasst. Der ADMIN kann geladen werden und es sieht gut aus. Zu meinem eigenen Plugin hatte ich schon einige Verbesserungswünsche notiert und will dieses Plugin überarbeiten.
      Dafür wollte ich mit phpMyadmin die eigene Datenbank anlegen und einrichten. Dazu den phpadmin gestartet und die Fehlermelder erhalten.

      Nachfolgender Hinweis brachte auch keinen Erfolg

      To connect to a MySQL server, PHP needs a set of MySQL functions called “MySQL extension”. This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysqli.so or php_mysqli.dll. phpMyAdmin tried to load the extension but failed. Usually, the problem is solved by installing a software package called “PHP-MySQL” or something similar.
      There are currently two interfaces PHP provides as MySQL extensions - mysql and mysqli. The mysqli is tried first, because it’s the best one.
      This problem can be also caused by wrong paths in the php.ini or using wrong php.ini.
      Make sure that the extension files do exist in the folder which the extension_dir points to and that the corresponding lines in your php.ini are not commented out (you can use phpinfo() to check current setup):

      [PHP]

      ; Directory in which the loadable extensions (modules) reside.
      extension_dir = "C:/Apache2/modules/php/ext"

      The php.ini can be loaded from several locations (especially on Windows), so please check you’re updating the correct one. If using Apache, you can tell it to use specific path for this file using PHPIniDir directive:

      LoadFile "C:/php/php5ts.dll"
      LoadModule php5_module "C:/php/php5apache2_2.dll"
      <IfModule php5_module>
      PHPIniDir "C:/PHP"
      <Location>
      AddType text/html .php
      AddHandler application/x-httpd-php .php
      </Location>
      </IfModule>

      In some rare cases this problem can be also caused by other extensions loaded in PHP which prevent MySQL extensions to be loaded. If anything else fails, you can try commenting out extensions for other databases from php.ini.


      In PHP habe ich keine Erfahrung und komme hier nicht weiter.
      Wer schafft es?

      LG
      Wolfgang

      ​​​​​​​

      Kommentar


        #4
        Ich brauche da noch etwas mehr Infos, kannst du mal die Ausgabe der folgenden Befehle hier posten:
        • php -v
        • php -m
        • php -i | grep mysql
        • apache2ctl -S
        • ls -a /etc/apache2/mods-enabled/
        • dpkg -l | grep php
        • update-alternatives --list php
        Gruß,
        Julian

        Kommentar


          #5
          Danke Julian für Deine Hilfe!
          Spät, aber dennoch die Informationen. Eine Konfirmation der Enkelin hatte heute Vorfahrt!

          Hier die Daten:
          1. smarthome@SmartHomeNG ~]$ php -v
          PHP 8.0.1 (cli) (built: Jan 12 2021 10:05:21) ( NTS )
          Copyright (c) The PHP Group
          Zend Engine v4.0.1, Copyright (c) Zend Technologies
          with Zend OPcache v8.0.1, Copyright (c), by Zend Technologies

          2. [smarthome@SmartHomeNG ~]$ php -m
          [PHP Modules]
          calendar
          Core
          ctype
          curl
          date
          dom
          exif
          FFI
          fileinfo
          filter
          ftp
          gettext
          hash
          iconv
          json
          libxml
          mbstring
          openssl
          pcntl
          pcre
          PDO
          Phar
          posix
          readline
          Reflection
          session
          shmop
          SimpleXML
          sockets
          sodium
          SPL
          standard
          sysvmsg
          sysvsem
          sysvshm
          tokenizer
          xml
          xmlreader
          xmlwriter
          xsl
          Zend OPcache
          zlib

          [Zend Modules]
          Zend OPcache

          3. OpenSSL> php -i | grep mysql
          Invalid command 'php'; type "help" for a list.
          error in php
          OpenSSL> "help"
          Standard commands
          asn1parse ca ciphers cms
          crl crl2pkcs7 dgst dhparam
          dsa dsaparam ec ecparam
          enc engine errstr gendsa
          genpkey genrsa help list
          nseq ocsp passwd pkcs12
          pkcs7 pkcs8 pkey pkeyparam
          pkeyutl prime rand rehash
          req rsa rsautl s_client
          s_server s_time sess_id smime
          speed spkac srp storeutl
          ts verify version x509

          Message Digest commands (see the `dgst' command for more details)
          blake2b512 blake2s256 gost md4
          md5 rmd160 sha1 sha224
          sha256 sha3-224 sha3-256 sha3-384
          sha3-512 sha384 sha512 sha512-224
          sha512-256 shake128 shake256 sm3

          Cipher commands (see the `enc' command for more details)
          aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb
          aes-256-cbc aes-256-ecb aria-128-cbc aria-128-cfb
          aria-128-cfb1 aria-128-cfb8 aria-128-ctr aria-128-ecb
          aria-128-ofb aria-192-cbc aria-192-cfb aria-192-cfb1
          aria-192-cfb8 aria-192-ctr aria-192-ecb aria-192-ofb
          aria-256-cbc aria-256-cfb aria-256-cfb1 aria-256-cfb8
          aria-256-ctr aria-256-ecb aria-256-ofb base64
          bf bf-cbc bf-cfb bf-ecb
          bf-ofb camellia-128-cbc camellia-128-ecb camellia-192-cbc
          camellia-192-ecb camellia-256-cbc camellia-256-ecb cast
          cast-cbc cast5-cbc cast5-cfb cast5-ecb
          cast5-ofb des des-cbc des-cfb
          des-ecb des-ede des-ede-cbc des-ede-cfb
          des-ede-ofb des-ede3 des-ede3-cbc des-ede3-cfb
          des-ede3-ofb des-ofb des3 desx
          rc2 rc2-40-cbc rc2-64-cbc rc2-cbc
          rc2-cfb rc2-ecb rc2-ofb rc4
          rc4-40 seed seed-cbc seed-cfb
          seed-ecb seed-ofb sm4-cbc sm4-cfb
          sm4-ctr sm4-ecb sm4-ofb

          OpenSSL>
          4. OpenSSL> apache2ctl -S
          Invalid command 'apache2ctl'; type "help" for a list.
          error in apache2ctl
          OpenSSL> "help"
          Standard commands
          asn1parse ca ciphers cms
          crl crl2pkcs7 dgst dhparam
          dsa dsaparam ec ecparam
          enc engine errstr gendsa
          genpkey genrsa help list
          nseq ocsp passwd pkcs12
          pkcs7 pkcs8 pkey pkeyparam
          pkeyutl prime rand rehash
          req rsa rsautl s_client
          s_server s_time sess_id smime
          speed spkac srp storeutl
          ts verify version x509

          Message Digest commands (see the `dgst' command for more details)
          blake2b512 blake2s256 gost md4
          md5 rmd160 sha1 sha224
          sha256 sha3-224 sha3-256 sha3-384
          sha3-512 sha384 sha512 sha512-224
          sha512-256 shake128 shake256 sm3

          Cipher commands (see the `enc' command for more details)
          aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb
          aes-256-cbc aes-256-ecb aria-128-cbc aria-128-cfb
          aria-128-cfb1 aria-128-cfb8 aria-128-ctr aria-128-ecb
          aria-128-ofb aria-192-cbc aria-192-cfb aria-192-cfb1
          aria-192-cfb8 aria-192-ctr aria-192-ecb aria-192-ofb
          aria-256-cbc aria-256-cfb aria-256-cfb1 aria-256-cfb8
          aria-256-ctr aria-256-ecb aria-256-ofb base64
          bf bf-cbc bf-cfb bf-ecb
          bf-ofb camellia-128-cbc camellia-128-ecb camellia-192-cbc
          camellia-192-ecb camellia-256-cbc camellia-256-ecb cast
          cast-cbc cast5-cbc cast5-cfb cast5-ecb
          cast5-ofb des des-cbc des-cfb
          des-ecb des-ede des-ede-cbc des-ede-cfb
          des-ede-ofb des-ede3 des-ede3-cbc des-ede3-cfb
          des-ede3-ofb des-ofb des3 desx
          rc2 rc2-40-cbc rc2-64-cbc rc2-cbc
          rc2-cfb rc2-ecb rc2-ofb rc4
          rc4-40 seed seed-cbc seed-cfb
          seed-ecb seed-ofb sm4-cbc sm4-cfb
          sm4-ctr sm4-ecb sm4-ofb

          cd ..
          ?????

          [smarthome@SmartHomeNG ~]$4 b apache2ctl -S
          AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
          VirtualHost configuration:
          *:80 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)
          ServerRoot: "/etc/apache2"
          Main DocumentRoot: "/var/www/html"
          Main ErrorLog: "/var/log/apache2/error.log"
          Mutex default: dir="/var/run/apache2/" mechanism=default
          Mutex watchdog-callback: using_defaults
          PidFile: "/var/run/apache2/apache2.pid"
          Define: DUMP_VHOSTS
          Define: DUMP_RUN_CFG
          User: name="www-data" id=33 not_used
          Group: name="www-data" id=33 not_used
          [smarthome@SmartHomeNG ~]$

          smarthome@SmartHomeNG ~]$ ls -a /etc/apache2/mods-enabled/
          insgesamt 8,0K
          drwxr-xr-x 2 root root 4,0K 29. Jun 15:28 ./
          drwxr-xr-x 8 root root 4,0K 29. Jun 15:28 ../
          lrwxrwxrwx 1 root root 36 29. Jun 15:28 access_compat.load -> ../mods-available/access_compat.load
          lrwxrwxrwx 1 root root 28 29. Jun 15:28 alias.conf -> ../mods-available/alias.conf
          lrwxrwxrwx 1 root root 28 29. Jun 15:28 alias.load -> ../mods-available/alias.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 auth_basic.load -> ../mods-available/auth_basic.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authn_core.load -> ../mods-available/authn_core.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authn_file.load -> ../mods-available/authn_file.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authz_core.load -> ../mods-available/authz_core.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authz_host.load -> ../mods-available/authz_host.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authz_user.load -> ../mods-available/authz_user.load
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 autoindex.conf -> ../mods-available/autoindex.conf
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 autoindex.load -> ../mods-available/autoindex.load
          lrwxrwxrwx 1 root root 30 29. Jun 15:28 deflate.conf -> ../mods-available/deflate.conf
          lrwxrwxrwx 1 root root 30 29. Jun 15:28 deflate.load -> ../mods-available/deflate.load
          lrwxrwxrwx 1 root root 26 29. Jun 15:28 dir.conf -> ../mods-available/dir.conf
          lrwxrwxrwx 1 root root 26 29. Jun 15:28 dir.load -> ../mods-available/dir.load
          lrwxrwxrwx 1 root root 26 29. Jun 15:28 env.load -> ../mods-available/env.load
          lrwxrwxrwx 1 root root 29 29. Jun 15:28 filter.load -> ../mods-available/filter.load
          lrwxrwxrwx 1 root root 27 29. Jun 15:28 mime.conf -> ../mods-available/mime.conf
          lrwxrwxrwx 1 root root 27 29. Jun 15:28 mime.load -> ../mods-available/mime.load
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 mpm_event.conf -> ../mods-available/mpm_event.conf
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 mpm_event.load -> ../mods-available/mpm_event.load
          lrwxrwxrwx 1 root root 34 29. Jun 15:28 negotiation.conf -> ../mods-available/negotiation.conf
          lrwxrwxrwx 1 root root 34 29. Jun 15:28 negotiation.load -> ../mods-available/negotiation.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 reqtimeout.conf -> ../mods-available/reqtimeout.conf
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 reqtimeout.load -> ../mods-available/reqtimeout.load
          lrwxrwxrwx 1 root root 31 29. Jun 15:28 setenvif.conf -> ../mods-available/setenvif.conf
          lrwxrwxrwx 1 root root 31 29. Jun 15:28 setenvif.load -> ../mods-available/setenvif.load
          lrwxrwxrwx 1 root root 29 29. Jun 15:28 status.conf -> ../mods-available/status.conf
          lrwxrwxrwx 1 root root 29 29. Jun 15:28 status.load -> ../mods-available/status.load
          [
          [smarthome@SmartHomeNG ~]5. ls -a /etc/apache2/mods-enabled/
          [smarthome@SmartHomeNG ~]$ ls -a /etc/apache2/mods-enabled/
          insgesamt 8,0K
          drwxr-xr-x 2 root root 4,0K 29. Jun 15:28 ./
          drwxr-xr-x 8 root root 4,0K 29. Jun 15:28 ../
          lrwxrwxrwx 1 root root 36 29. Jun 15:28 access_compat.load -> ../mods-available/access_compat.load
          lrwxrwxrwx 1 root root 28 29. Jun 15:28 alias.conf -> ../mods-available/alias.conf
          lrwxrwxrwx 1 root root 28 29. Jun 15:28 alias.load -> ../mods-available/alias.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 auth_basic.load -> ../mods-available/auth_basic.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authn_core.load -> ../mods-available/authn_core.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authn_file.load -> ../mods-available/authn_file.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authz_core.load -> ../mods-available/authz_core.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authz_host.load -> ../mods-available/authz_host.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 authz_user.load -> ../mods-available/authz_user.load
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 autoindex.conf -> ../mods-available/autoindex.conf
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 autoindex.load -> ../mods-available/autoindex.load
          lrwxrwxrwx 1 root root 30 29. Jun 15:28 deflate.conf -> ../mods-available/deflate.conf
          lrwxrwxrwx 1 root root 30 29. Jun 15:28 deflate.load -> ../mods-available/deflate.load
          lrwxrwxrwx 1 root root 26 29. Jun 15:28 dir.conf -> ../mods-available/dir.conf
          lrwxrwxrwx 1 root root 26 29. Jun 15:28 dir.load -> ../mods-available/dir.load
          lrwxrwxrwx 1 root root 26 29. Jun 15:28 env.load -> ../mods-available/env.load
          lrwxrwxrwx 1 root root 29 29. Jun 15:28 filter.load -> ../mods-available/filter.load
          lrwxrwxrwx 1 root root 27 29. Jun 15:28 mime.conf -> ../mods-available/mime.conf
          lrwxrwxrwx 1 root root 27 29. Jun 15:28 mime.load -> ../mods-available/mime.load
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 mpm_event.conf -> ../mods-available/mpm_event.conf
          lrwxrwxrwx 1 root root 32 29. Jun 15:28 mpm_event.load -> ../mods-available/mpm_event.load
          lrwxrwxrwx 1 root root 34 29. Jun 15:28 negotiation.conf -> ../mods-available/negotiation.conf
          lrwxrwxrwx 1 root root 34 29. Jun 15:28 negotiation.load -> ../mods-available/negotiation.load
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 reqtimeout.conf -> ../mods-available/reqtimeout.conf
          lrwxrwxrwx 1 root root 33 29. Jun 15:28 reqtimeout.load -> ../mods-available/reqtimeout.load
          lrwxrwxrwx 1 root root 31 29. Jun 15:28 setenvif.conf -> ../mods-available/setenvif.conf
          lrwxrwxrwx 1 root root 31 29. Jun 15:28 setenvif.load -> ../mods-available/setenvif.load
          lrwxrwxrwx 1 root root 29 29. Jun 15:28 status.conf -> ../mods-available/status.conf
          lrwxrwxrwx 1 root root 29 29. Jun 15:28 status.load -> ../mods-available/status.load


          ii php-bz2 2:7.4+76 all bzip2 module for PHP [default]
          ii php-common 2:76 all Common files for PHP packages
          ii php-gd 2:7.4+76 all GD module for PHP [default]
          ii php-google-recaptcha 1.2.4-3 all reCAPTCHA PHP client library
          ii php-json 2:7.4+76 all JSON module for PHP [default]
          ii php-mariadb-mysql-kbs 1.2.12-1 all Knowledge base about MariaDB and MySQL server variables
          ii php-mysql 2:7.4+76 all MySQL module for PHP [default]
          ii php-phpmyadmin-motranslator 5.2.0-1 all translation API for PHP using Gettext MO files
          ii php-phpmyadmin-shapefile 2.1-5 all translation API for PHP using Gettext MO files
          ii php-phpmyadmin-sql-parser 5.4.1-1 all validating SQL lexer and parser
          ii php-phpseclib 2.0.30-2 all implementations of an arbitrary-precision integer arithmetic library
          ii php-psr-cache 1.0.1-2 all Common interface for caching libraries
          ii php-psr-container 1.0.0-2 all Common Container Interface (PHP FIG PSR-11)
          ii php-psr-log 1.1.3-2 all common interface for logging libraries
          ii php-symfony-cache 4.4.19+dfsg-2+deb11u1 all provides an extended PSR-6, PSR-16 (and tags) implementation
          ii php-symfony-cache-contracts 1.1.10-2 all Generic abstractions related to caching
          ii php-symfony-config 4.4.19+dfsg-2+deb11u1 all load configurations from different data sources
          ii php-symfony-dependency-injection 4.4.19+dfsg-2+deb11u1 all standardize and centralize construction of objects
          ii php-symfony-expression-language 4.4.19+dfsg-2+deb11u1 all compile and evaluate expressions
          ii php-symfony-filesystem 4.4.19+dfsg-2+deb11u1 all basic filesystem utilities
          ii php-symfony-service-contracts 1.1.10-2 all Generic abstractions related to writing services
          ii php-symfony-var-exporter 4.4.19+dfsg-2+deb11u1 all export serializable PHP data structure to plain PHP code
          ii php-symfony-yaml 4.4.19+dfsg-2+deb11u1 all convert YAML to PHP arrays and the other way around
          ii php-tcpdf 6.3.5+dfsg1-1 all PHP class for generating PDF files on-the-fly
          ii php-twig 2.14.3-1+deb11u1 all Flexible, fast, and secure template engine for PHP
          ii php-twig-i18n-extension 3.0.0-2 all i18n extension for the Twig template system
          ii php-zip 2:7.4+76 all Zip module for PHP [default]
          ii php7.4-bz2 7.4.28-1+deb11u1 armhf bzip2 module for PHP
          ii php7.4-common 7.4.28-1+deb11u1 armhf documentation, examples and common module for PHP
          ii php7.4-gd 7.4.28-1+deb11u1 armhf GD module for PHP
          ii php7.4-json 7.4.28-1+deb11u1 armhf JSON module for PHP
          ii php7.4-mysql 7.4.28-1+deb11u1 armhf MySQL module for PHP
          ii php7.4-zip 7.4.28-1+deb11u1 armhf Zip module for PHP
          ii php8.0-cli 8.0.1-1 armhf command-line interpreter for the PHP scripting language
          ii php8.0-common 8.0.1-1 armhf documentation, examples and common module for PHP
          ii php8.0-curl 8.0.1-1 armhf CURL module for PHP
          ii php8.0-fpm 8.0.1-1 armhf server-side, HTML-embedded scripting language (FPM-CGI binary)
          ii php8.0-mbstring 8.0.1-1 armhf MBSTRING module for PHP
          ii php8.0-opcache 8.0.1-1 armhf Zend OpCache module for PHP
          ii php8.0-readline 8.0.1-1 armhf readline module for PHP
          ii php8.0-xml 8.0.1-1 armhf DOM, SimpleXML, XML, and XSL module for PHP
          ii phpmyadmin 4:5.0.4+dfsg2-2 all MySQL web administration tool
          [smarthome@SmartHomeNG ~]$

          6.
          [smarthome@SmartHomeNG ~]$ update-alternatives --list php
          /usr/bin/php8.0

          Aufruf: grep [OPTION]… MUSTER [DATEI]
          „grep --help“ liefert weitere Informationen.
          [smarthome@SmartHomeNG ~]$ dpkg -l | grep php

          [smarthome@SmartHomeNG ~]$ [smarthome@SmartHomeNG ~]$ update-alternatives --list php
          /usr/bin/php8.0
          Aufruf: grep [OPTION]… MUSTER [DATEI]…
          „grep --help“ liefert weitere Informationen.
          [smarthome@SmartHomeNG ~]$ dpkg -l | grep php
          -bash: [smarthome@SmartHomeNG: Kommando nicht gefunden.
          dpkg -l | grep help
          ^C
          -bash: Aufruf:: Kommando nicht gefunden.
          -bash: „grep: Kommando nicht gefunden.
          -bash: [smarthome@SmartHomeNG: Kommando nicht gefunden.
          [smarthome@SmartHomeNG ~]$


          dpkg -l | grep help
          ii dbconfig-common 2.0.19 all framewo rk that helps packages to manage databases
          ii debhelper 13.3.4 all helper programs for debian/rules
          ii dh-autoreconf 20 all debhelp er add-on to call autoreconf and clean up after the build
          ii dh-strip-nondeterminism 1.12.0-1 all file no n-deterministic information stripper — Debhelper add-on
          ii init-system-helpers 1.60 all helper tools for all init systems
          ii libbpf0:armhf 1:0.3-2+rpi1 armhf eBPF he lper library (shared library)
          ii libdebhelper-perl 13.3.4 all debhelp er perl modules
          ii libfcgi-perl:armhf 0.79+ds-2 armhf helper module for FastCGI
          ii libjs-underscore 1.9.1~dfsg-3 all JavaScr ipt's functional programming helper library
          ii libpam-modules-bin 1.4.0-9+deb11u1+rpt2 armhf Pluggab le Authentication Modules for PAM - helper binaries
          ii libpkcs11-helper1:armhf 1.27-1 armhf library that simplifies the interaction with PKCS#11
          ii libutempter0:armhf 1.2.1-2 armhf privile ged helper for utmp/wtmp updates (runtime)
          ii lua-any 27 all helper script for shebang lines in Lua scripts
          ii runit-helper 2.10.3 all dh-runi t implementation detail
          [smarthome@SmartHomeNG ~]$

          Kommentar


            #6
            Da ist einiges durcheinander gekommen. Nr. 3 und 4 hast Du aus OpenSSL heraus aufgerufen. Deshalb steht da nichts brauchbares drin. Auch weiter unten sind Fehler. Am besten startest Du ab Nr. 3 nochmal neu und korrigierst den Post.
            Dennoch sieht man schon, dass die meisten Erweiterungsmodule für php7.4 installiert sind, nicht aber für php8. Das musst Du manuell korrigieren

            Gruß
            Wolfram

            Kommentar


              #7
              Genau, etwas weiter bringt es uns aber. In der CLI ist php8.0 aktiv und da fehlt die MySQL Erweiterung sowohl in den installierten Paketen, aus auch folglich bei den Modulen.

              Ich weiß jetzt nicht, aus welchen Quellen du PHP installiert hast, ggf sury.org.


              Probiere mal folgende:
              • apt update
              • apt install php8.0-mysql
              • apt install php8.0-mysqli
              • apt install php8.0-common
              • service apache2 restart

              Wenn das noch nicht hilft, brauchen wir tatsächlich nochmal alle Infos mit korrekter Ausgabe.
              Zuletzt geändert von jzehnter; 03.07.2022, 11:51. Grund: 1x apt ergänzt

              Kommentar


                #8
                mysqli-test.txt Danke Julian,

                nach dem Aufruf aller von Dir genannten Befehle geht jetzt tatsächlich der phpmyadmin-Aufruf wieder!!

                Herzlichen Dank.

                Ich habe immer nur das aktuelle IMG auf einen frischen Raspi4-8
                gezogen und hier mit minimalen Daten versucht zu starten.

                Ich werde die komplette Installation noch einmal aufsetzen und beobachten.

                Danke auch an Wolfram, ja ich war einmal im falschen Pfad bei der Auflistung, sorry.

                Danke und Grüße

                Wolfgang




                Hallo Julian,

                dank Deiner Hilfe lief alles einmal einige Wochen.
                Durch eigene Blödheit und dem Ausfall meiner KNX-Schnittstelle habe ich eine Neuinstallation
                durchgeführt und geteu Deiner Vorgabe die Punkte abgearbeitet, da wieder der PHPMYADMIN meine Datenbank nicht anzeigt. Bei den Punkten 4 und 5 hängt der Fehler.

                Was kann ich tun , wo liegt mein Fehler?

                Danke für jegliche Hilfe?


                Zuvor ausgeführt!
                apt update
                apt install php8.0-mysql
                apt install php8.0-mysqli
                apt install php8.0-common
                service apache2 restart
                1. [smarthome@SmartHomeNG ~]$ php -v
                PHP 8.2.1 (cli) (built: Jan 7 2023 08:34:34) (NTS)
                Copyright (c) The PHP Group
                Zend Engine v4.2.1, Copyright (c) Zend Technologies

                with Zend OPcache v8.2.1, Copyright (c), by Zend Technologies

                2. [smarthome@SmartHomeNG ~]$ php -m
                [PHP Modules]
                calendar
                Core
                ctype
                curl
                date
                dom
                exif
                FFI
                fileinfo
                filter
                ftp
                gettext
                hash
                iconv
                json
                libxml
                mbstring
                openssl
                pcntl
                pcre
                PDO
                Phar
                posix
                random
                readline
                Reflection
                session
                shmop
                SimpleXML
                sockets
                sodium
                SPL
                standard
                sysvmsg
                sysvsem
                sysvshm
                tokenizer
                xml
                xmlreader
                xmlwriter
                xsl
                Zend OPcache
                zlib

                [Zend Modules]

                Zend OPcache


                3. OpenSSL> php -i | grep mysql ??
                [smarthome@SmartHomeNG ~]$ dpkg -l | grep help
                ii dbconfig-common 2.0.19 all framework that helps packages to manage databases
                ii debhelper 13.3.4 all helper programs for debian/rules
                ii dh-autoreconf 20 all debhelper add-on to call autoreconf and clean up after the build
                ii dh-strip-nondeterminism 1.12.0-1 all file non-deterministic information stripper — Debhelper add-on
                ii init-system-helpers 1.60 all helper tools for all init systems
                ii libbpf0:arm64 1:0.3-2 arm64 eBPF helper library (shared library)
                ii libdebhelper-perl 13.3.4 all debhelper perl modules
                ii libfcgi-perl:arm64 0.79+ds-2 arm64 helper module for FastCGI
                ii libjs-underscore 1.9.1~dfsg-3 all JavaScript's functional programming helper library
                ii libpam-modules-bin 1.4.0-9+deb11u1+rpt2 arm64 Pluggable Authentication Modules for PAM - helper binaries
                ii libpkcs11-helper1:arm64 1.27-1 arm64 library that simplifies the interaction with PKCS#11
                ii libutempter0:arm64 1.2.1-2 arm64 privileged helper for utmp/wtmp updates (runtime)
                ii lua-any 27 all helper script for shebang lines in Lua scripts
                ii runit-helper 2.10.3 all dh-runit implementation detail
                [smarthome@SmartHomeNG ~]$


                [smarthome@SmartHomeNG ~]$

                4. apache2ctl -S

                -bash: apache2ctl: Kommando nicht gefunden.

                5. ls -a /etc/apache2/mods-enabled/

                ls: Zugriff auf '/etc/apache2/mods-enabled/' nicht möglich: Datei oder Verzeichnis nicht gefunden

                6. [smarthome@SmartHomeNG ~]$ dpkg -l | grep php
                ii libawl-php 0.62-1 all Andrew's Web Libraries - PHP Utility Libraries
                ii php 2:8.2+93+0~20221211.45+debian11~1.gbpdb4dcc all server-side, HTML-embedded scripting language (default)
                ii php-bz2 2:8.1+93+0~20221029.44+debian11~1.gbpaae3e9 all bzip2 module for PHP [default]
                ii php-common 2:93+0~20221211.45+debian11~1.gbpdb4dcc all Common files for PHP packages
                ii php-curl 2:8.2+93+0~20221211.45+debian11~1.gbpdb4dcc all CURL module for PHP [default]
                ii php-gd 2:8.1+93+0~20221029.44+debian11~1.gbpaae3e9 all GD module for PHP [default]
                ii php-google-recaptcha 1.2.4-3 all reCAPTCHA PHP client library
                ii php-json 2:8.2+93+0~20221211.45+debian11~1.gbpdb4dcc all JSON module for PHP [default]
                ii php-mariadb-mysql-kbs 1.2.12-1 all Knowledge base about MariaDB and MySQL server variables
                ii php-mbstring 2:8.2+93+0~20221211.45+debian11~1.gbpdb4dcc all MBSTRING module for PHP [default]
                ii php-mcrypt 3:1.0.5-1+0~20220706.8+debian11~1.gbpba43ab arm64 PHP bindings for the libmcrypt library
                ii php-mysql 2:8.1+93+0~20221029.44+debian11~1.gbpaae3e9 all MySQL module for PHP [default]
                ii php-phpmyadmin-motranslator 5.2.0-1 all translation API for PHP using Gettext MO files
                ii php-phpmyadmin-shapefile 2.1-5 all translation API for PHP using Gettext MO files
                ii php-phpmyadmin-sql-parser 5.4.1-1 all validating SQL lexer and parser
                ii php-phpseclib 2.0.30-2 all implementations of an arbitrary-precision integer arithmetic library
                ii php-psr-cache 1.0.1-2 all Common interface for caching libraries
                ii php-psr-container 1.0.0-2 all Common Container Interface (PHP FIG PSR-11)
                ii php-psr-log 1.1.3-2 all common interface for logging libraries
                ii php-symfony-cache 4.4.19+dfsg-2+deb11u1 all provides an extended PSR-6, PSR-16 (and tags) implementation
                ii php-symfony-cache-contracts 1.1.10-2 all Generic abstractions related to caching
                ii php-symfony-config 4.4.19+dfsg-2+deb11u1 all load configurations from different data sources
                ii php-symfony-dependency-injection 4.4.19+dfsg-2+deb11u1 all standardize and centralize construction of objects
                ii php-symfony-expression-language 4.4.19+dfsg-2+deb11u1 all compile and evaluate expressions
                ii php-symfony-filesystem 4.4.19+dfsg-2+deb11u1 all basic filesystem utilities
                ii php-symfony-service-contracts 1.1.10-2 all Generic abstractions related to writing services
                ii php-symfony-var-exporter 4.4.19+dfsg-2+deb11u1 all export serializable PHP data structure to plain PHP code
                ii php-symfony-yaml 4.4.19+dfsg-2+deb11u1 all convert YAML to PHP arrays and the other way around
                ii php-tcpdf 6.3.5+dfsg1-1 all PHP class for generating PDF files on-the-fly
                ii php-twig 2.14.3-1+deb11u2 all Flexible, fast, and secure template engine for PHP
                ii php-twig-i18n-extension 3.0.0-2 all i18n extension for the Twig template system
                ii php-xml 2:8.2+93+0~20221211.45+debian11~1.gbpdb4dcc all DOM, SimpleXML, WDDX, XML, and XSL module for PHP [default]
                ii php-zip 2:8.1+93+0~20221029.44+debian11~1.gbpaae3e9 all Zip module for PHP [default]
                ii php8.0-common 1:8.0.27-2+0~20230113.47+debian11~1.gbp65d51b arm64 documentation, examples and common module for PHP
                ii php8.0-mysql 1:8.0.27-2+0~20230113.47+debian11~1.gbp65d51b arm64 MySQL module for PHP
                ii php8.1-bz2 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 bzip2 module for PHP
                ii php8.1-cli 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 command-line interpreter for the PHP scripting language
                ii php8.1-common 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 documentation, examples and common module for PHP
                ii php8.1-gd 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 GD module for PHP
                ii php8.1-mcrypt 3:1.0.5-1+0~20220706.8+debian11~1.gbpba43ab arm64 PHP bindings for the libmcrypt library
                ii php8.1-mysql 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 MySQL module for PHP
                ii php8.1-opcache 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 Zend OpCache module for PHP
                ii php8.1-phpdbg 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 server-side, HTML-embedded scripting language (PHPDBG binary)
                ii php8.1-readline 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 readline module for PHP
                ii php8.1-zip 8.1.14-2+0~20230113.32+debian11~1.gbp6a972c arm64 Zip module for PHP
                ii php8.2 8.2.1-2+0~20230113.12+debian11~1.gbpa67f25 all server-side, HTML-embedded scripting language (metapackage)
                ii php8.2-cli 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 command-line interpreter for the PHP scripting language
                ii php8.2-common 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 documentation, examples and common module for PHP
                ii php8.2-curl 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 CURL module for PHP
                ii php8.2-fpm 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 server-side, HTML-embedded scripting language (FPM-CGI binary)
                ii php8.2-mbstring 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 MBSTRING module for PHP
                ii php8.2-opcache 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 Zend OpCache module for PHP
                ii php8.2-readline 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 readline module for PHP
                ii php8.2-xml 8.2.1-1+0~20230107.11+debian11~1.gbp326758 arm64 DOM, SimpleXML, XML, and XSL module for PHP
                ii phpmyadmin 4:5.0.4+dfsg2-2+deb11u1 all MySQL web administration tool
                [smarthome@SmartHomeNG ~]$XSL module for PHP

                ii phpmyadmin 4:5.0.4+dfsg2-2+deb11u1 all MySQL web administration tool

                [smarthome@SmartHomeNG ~]$ update-alternatives --list php
                /usr/bin/php8.1
                /usr/bin/php8.2
                Angehängte Dateien
                Zuletzt geändert von schloessl; 30.01.2023, 17:00. Grund: Ich hab mir en gleichen Fehler eingehandelt! Bitte um Hilfe!

                Kommentar


                  #9
                  Gerne Wolfgang .


                  Das Image nutze ich selbst nicht, kenne daher die genaue Konfiguration nicht.
                  Aber wir haben es dann doch ganz schnell hinbekommen!

                  Kommentar


                    #10
                    Ist hier von meinem raspi img die Rede? Falls ich hier was anpassen soll bitte um Info. Webserver bleibt aber mal nginx
                    Zuletzt geändert von bmx; 07.07.2022, 12:29.

                    Kommentar

                    Lädt...
                    X