PHP could not find driver

Discussion in 'ISPConfig 3 Priority Support' started by Gaston Girardi, Oct 3, 2022.

  1. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Hi everyone today i did the update of ISPConfig from version 3.2.8p1 to 3.2.8p2 after doing that the dynamic sites i've got stop working.
    And now are giving the message: could not find driver (SQL: select * from ......), is the same on all.

    We are using PHP 8.0, and postgres, but everything was working fine till the update.

    i went to the php.ini files to check if the drivers for pgsql where uncommented, everything fine, but just in case I restart apache, but didn't work

    In the System logs i've got this errors
    Code:
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20200930/pdo_mysql (/usr/lib/php/20200930/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_mysql.so (/usr/lib/php/20200930/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_odbc' (tried: /usr/lib/php/20200930/pdo_odbc (/usr/lib/php/20200930/pdo_odbc: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_odbc.so (/usr/lib/php/20200930/pdo_odbc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /usr/lib/php/20200930/pdo_pgsql (/usr/lib/php/20200930/pdo_pgsql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_pgsql.so (/usr/lib/php/20200930/pdo_pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/lib/php/20200930/pgsql (/usr/lib/php/20200930/pgsql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pgsql.so (/usr/lib/php/20200930/pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'odbc' (tried: /usr/lib/php/20200930/odbc (/usr/lib/php/20200930/odbc: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/odbc.so (/usr/lib/php/20200930/odbc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20200930/pdo_mysql (/usr/lib/php/20200930/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_mysql.so (/usr/lib/php/20200930/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_odbc' (tried: /usr/lib/php/20200930/pdo_odbc (/usr/lib/php/20200930/pdo_odbc: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_odbc.so (/usr/lib/php/20200930/pdo_odbc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /usr/lib/php/20200930/pdo_pgsql (/usr/lib/php/20200930/pdo_pgsql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pdo_pgsql.so (/usr/lib/php/20200930/pdo_pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/lib/php/20200930/pgsql (/usr/lib/php/20200930/pgsql: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/pgsql.so (/usr/lib/php/20200930/pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'odbc' (tried: /usr/lib/php/20190902/odbc (/usr/lib/php/20190902/odbc: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/odbc.so (/usr/lib/php/20190902/odbc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql' (tried: /usr/lib/php/20190902/pdo_mysql (/usr/lib/php/20190902/pdo_mysql: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_mysql.so (/usr/lib/php/20190902/pdo_mysql.so: undefined symbol: mysqlnd_allocator)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_odbc' (tried: /usr/lib/php/20190902/pdo_odbc (/usr/lib/php/20190902/pdo_odbc: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_odbc.so (/usr/lib/php/20190902/pdo_odbc.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_pgsql' (tried: /usr/lib/php/20190902/pdo_pgsql (/usr/lib/php/20190902/pdo_pgsql: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_pgsql.so (/usr/lib/php/20190902/pdo_pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: /usr/lib/php/20190902/pdo_sqlite (/usr/lib/php/20190902/pdo_sqlite: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_sqlite.so (/usr/lib/php/20190902/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver)) in Unknown on line 0
    Oct  3 20:39:00 sse01 sessionclean[10725]: PHP Warning:  PHP Startup: Unable to load dynamic library 'pgsql' (tried: /usr/lib/php/20190902/pgsql (/usr/lib/php/20190902/pgsql: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pgsql.so (/usr/lib/php/20190902/pgsql.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Anyone has the same problem?
     
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  3. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Hi Th0m thanks for your fast answer, let me tell you the default version is still PHP 7.3 (because i've got debian 10), but i installed others versions of PHP, i've got from 5.6 to 8.0 passing through all in the middle, and it was working fine this morning before doiing the update, ive also has the PHP version set it in the website panel to use the 8.0 intead of the default.

    For the multi PHP version i remember i use a tutorial similar to this one:
    https://www.howtoforge.com/tutorial...fig-3-from-debian-packages-on-debian-8-and-9/
    But that was 2 years ago, as i comment before i had it working fine till this morning.

    Sorry if i wasn't clear in my first post
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    No worries.

    Can you run that test script as requested and share the output?
     
  5. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Sorry for the delay here is the result of the script, one important thing i forgot to tell, is i have multi server and this server only runs Web, Files and DB.

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Debian GNU/Linux 10 (buster)
     
    [INFO] uptime:  23:54:54 up  4:44,  1 user,  load average: 0.00, 0.00, 0.00
     
    [INFO] memory:
                  total        used        free      shared  buff/cache   available
    Mem:          125Gi       2.3Gi       121Gi       420Mi       2.0Gi       121Gi
    Swap:         9.3Gi          0B       9.3Gi
     
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.2.8p2
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 7.3.33-7+0~20220929.100+debian10~1.gbpdb2e49
    [INFO] php-cgi (used for cgi php in default vhost!) is version 7.3.33
    
    ##### PORT CHECK #####
    
    [WARN] Port 8080 (ISPConfig) seems NOT to be listening
    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
        Apache 2 (PID 6400)
    [INFO] I found the following mail server(s):
        Postfix (PID 1886)
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [INFO] I found the following ftp server(s):
        PureFTP (PID 2013)
    
    ##### LISTENING PORTS #####
    (only        ()
    Local        (Address)
    [localhost]:11211        (1452/memcached)
    [anywhere]:21        (2013/pure-ftpd)
    ***.***.***.***:53        (1494/named)
    [localhost]:53        (1494/named)
    [anywhere]:22        (1489/sshd)
    [anywhere]:5432        (1647/postgres)
    [localhost]:25        (1886/master)
    [localhost]:953        (1494/named)
    *:*:*:*::*:80        (6400/apache2)
    *:*:*:*::*:8081        (6400/apache2)
    *:*:*:*::*:21        (2013/pure-ftpd)
    *:*:*:*::*:53        (1494/named)
    *:*:*:*::*:22        (1489/sshd)
    *:*:*:*::*:5432        (1647/postgres)
    *:*:*:*::*:25        (1886/master)
    *:*:*:*::*:953        (1494/named)
    *:*:*:*::*:443        (6400/apache2)
    *:*:*:*::*:3306        (1585/mysqld)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy DROP)
    target     prot opt source               destination         
    f2b-sshd   tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 22
    ufw-before-logging-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-input  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-input  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination         
    ufw-before-logging-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-forward  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-forward  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    ufw-before-logging-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-before-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-after-logging-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-reject-output  all  --  [anywhere]/0            [anywhere]/0           
    ufw-track-output  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-before-logging-input (1 references)
    target     prot opt source               destination         
    
    Chain ufw-before-logging-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-before-logging-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-before-input (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    DROP       all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp spt:67 dpt:68
    ufw-not-local  all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***          udp dpt:5353
    ACCEPT     udp  --  [anywhere]/0            ***.***.***.***      udp dpt:1900
    ufw-user-input  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-before-output (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ufw-user-output  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-before-forward (1 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0            ctstate RELATED,ESTABLISHED
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 3
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 11
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 12
    ACCEPT     icmp --  [anywhere]/0            [anywhere]/0            icmptype 8
    ufw-user-forward  all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-after-input (1 references)
    target     prot opt source               destination         
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:137
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:138
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:139
    ufw-skip-to-policy-input  tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:445
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:67
    ufw-skip-to-policy-input  udp  --  [anywhere]/0            [anywhere]/0            udp dpt:68
    ufw-skip-to-policy-input  all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    
    Chain ufw-after-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-after-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-after-logging-input (1 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-after-logging-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-after-logging-forward (1 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-reject-input (1 references)
    target     prot opt source               destination         
    
    Chain ufw-reject-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-reject-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-track-input (1 references)
    target     prot opt source               destination         
    
    Chain ufw-track-output (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            ctstate NEW
    
    Chain ufw-track-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-logging-deny (2 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ctstate INVALID limit: avg 3/min burst 10
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW BLOCK] "
    
    Chain ufw-logging-allow (0 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10 LOG flags 0 level 4 prefix "[UFW ALLOW] "
    
    Chain ufw-skip-to-policy-input (7 references)
    target     prot opt source               destination         
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-skip-to-policy-output (0 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-skip-to-policy-forward (0 references)
    target     prot opt source               destination         
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-not-local (1 references)
    target     prot opt source               destination         
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type LOCAL
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type MULTICAST
    RETURN     all  --  [anywhere]/0            [anywhere]/0            ADDRTYPE match dst-type BROADCAST
    ufw-logging-deny  all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 10
    DROP       all  --  [anywhere]/0            [anywhere]/0           
    
    Chain ufw-user-input (1 references)
    target     prot opt source               destination         
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:21
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:22
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:25
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:80
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:3306
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8080
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:8081
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            multiport dports 40110:40210
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:53
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:20
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:110
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:143
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:443
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:465
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:587
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:993
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:995
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:2763
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:5432
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:10000
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:10040
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:11334
    ACCEPT     tcp  --  [anywhere]/0            [anywhere]/0            tcp dpt:5432
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:5432
    ACCEPT     udp  --  [anywhere]/0            [anywhere]/0            udp dpt:3306
    
    Chain ufw-user-output (1 references)
    target     prot opt source               destination         
    
    Chain ufw-user-forward (1 references)
    target     prot opt source               destination         
    
    Chain ufw-user-logging-input (0 references)
    target     prot opt source               destination         
    
    Chain ufw-user-logging-output (0 references)
    target     prot opt source               destination         
    
    Chain ufw-user-logging-forward (0 references)
    target     prot opt source               destination         
    
    Chain ufw-user-limit (0 references)
    target     prot opt source               destination         
    LOG        all  --  [anywhere]/0            [anywhere]/0            limit: avg 3/min burst 5 LOG flags 0 level 4 prefix "[UFW LIMIT BLOCK] "
    REJECT     all  --  [anywhere]/0            [anywhere]/0            reject-with icmp-port-unreachable
    
    Chain ufw-user-limit-accept (0 references)
    target     prot opt source               destination         
    ACCEPT     all  --  [anywhere]/0            [anywhere]/0           
    
    Chain f2b-sshd (1 references)
    target     prot opt source               destination         
    REJECT     all  --  ***.***.***.***      [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***       [anywhere]/0            reject-with icmp-port-unreachable
    REJECT     all  --  ***.***.***.***        [anywhere]/0            reject-with icmp-port-unreachable
    RETURN     all  --  [anywhere]/0            [anywhere]/0           
    
    ##### LET'S ENCRYPT #####
    acme.sh is installed in /root/.acme.sh/acme.sh
    
     
  6. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    What happens when you try to install all modules?
    Code:
    apt-get install php8.1 php8.1-cli php8.1-cgi php8.1-fpm php8.1-gd php8.1-mysql php8.1-imap php8.1-curl php8.1-intl php8.1-pspell php8.1-sqlite3 php8.1-tidy php8.1-xsl php8.1-zip php8.1-mbstring php8.1-soap php8.1-opcache libonig5 php8.1-common php8.1-readline php8.1-xml
     
  7. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Nothing happens because its already installed:

    Code:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libonig5 is already the newest version (6.9.1-1).
    php8.0 is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-cgi is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-cli is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-common is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-curl is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-fpm is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-gd is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-imap is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-intl is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-mbstring is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-mysql is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-opcache is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-pspell is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-readline is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-soap is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-sqlite3 is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-tidy is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-xml is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-xsl is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    php8.0-zip is already the newest version (1:8.0.24-1+0~20220929.42+debian10~1.gbp2c640a).
    The following package was automatically installed and is no longer required:
      ttf-dejavu-core
    Use 'apt autoremove' to remove it.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    
    As a comment i've uninstall all PHP versions and install it again from scratch, and the same message "could not find driver (SQL: select * from ...."

    Of course i've uncommented the extensions from all the PHP.ini files for the 8.0 version:

    Code:
    extension=odbc
    ;extension=openssl
    ;extension=pdo_firebird
    extension=pdo_mysql
    ;extension=pdo_oci
    extension=pdo_odbc
    extension=pdo_pgsql
    ;extension=pdo_sqlite
    extension=pgsql
    ;extension=shmop
    
     
  8. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    If I run a:
    Code:
    systemctl status apache2
    The output is:
    Code:
    ● apache2.service - The Apache HTTP Server
       Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
       Active: active (running) since Tue 2022-10-04 20:25:44 UTC; 4min 53s ago
         Docs: https://httpd.apache.org/docs/2.4/
      Process: 14910 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
        Tasks: 217 (limit: 4915)
       Memory: 159.8M
       CGroup: /system.slice/apache2.service
               ├─15003 /usr/sbin/apache2 -k start
               ├─15004 vlogger (access log)
               ├─15005 /usr/sbin/apache2 -k start
               ├─15006 /usr/sbin/apache2 -k start
               ├─15007 Passenger watchdog
               ├─15010 Passenger core
               ├─15020 Passenger ust-router
               ├─15093 /usr/sbin/apache2 -k start
               ├─15094 /usr/sbin/apache2 -k start
               ├─15230 php-cgi8.0 -d open_basedir=/var/www/clients/client4/web126/web:/var/www/clients/client4/web126/private:/var/www/clients/client4/web126/tmp:/var/www/ordering.ifoodpos.com/web:/srv/www/ordering.ifoodpos.com/web:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/dev/random:/dev/urandom -d upload_tmp_dir=/var/www/clients/client4/web126/tmp -d session.save_path=/var/www/clients/client4/web126/tmp -d sendmail_path=/usr/sbin/sendmail -t -i -f [email protected]
    
    
    Oct 04 20:25:44 sse01 systemd[1]: Starting The Apache HTTP Server...
    Oct 04 20:25:44 sse01 apachectl[14910]: AH00112: Warning: DocumentRoot [/var/www/anotherweb.domain.domain.com/web/subdominios/anotherweb] does not exist
    Oct 04 20:25:44 sse01 systemd[1]: Started The Apache HTTP Server.
    I don't see anything wrong, even the warning if from another site, doesn't has anything to do with the sites that are running PHP 8.0
     
  9. Gaston Girardi

    Gaston Girardi Member HowtoForge Supporter

    Finally i've solved the problem running one simply command: :oops:

    Code:
    apt-get install php8.0-pgsql
    Of course after that restart the apache service, thanks a lot for your help and time @Th0m
     
    Th0m likes this.

Share This Page