Strange error

Discussion in 'ISPConfig 3 Priority Support' started by diablo666, Dec 29, 2020.

  1. diablo666

    diablo666 Active Member HowtoForge Supporter

    Hi there,
    all database can't connect to mysql (which is up and running and working fine from command line).

    The errore is "Error establishing a database connection".
    I've investigated and find this in ispconfig log
    Code:
    Tue Dec 29 14:19:01 CET 2020 PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20180731/pdo_mysql.so (/usr/lib/php/20180731/pdo_mysql.so: undefined symbol: pdo_throw_exception), /usr/lib/php/20180731/pdo_mysql.so.so (/usr/lib/php/20180731/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Tue Dec 29 14:19:01 CET 2020 PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20180731/pdo_mysql.so (/usr/lib/php/20180731/pdo_mysql.so: undefined symbol: pdo_throw_exception), /usr/lib/php/20180731/pdo_mysql.so.so (/usr/lib/php/20180731/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Tue Dec 29 14:19:01 CET 2020 PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlite.so' (tried: /usr/lib/php/20180731/pdo_sqlite.so (/usr/lib/php/20180731/pdo_sqlite.so: undefined symbol: pdo_throw_exception), /usr/lib/php/20180731/pdo_sqlite.so.so (/usr/lib/php/20180731/pdo_sqlite.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Tue Dec 29 14:19:01 CET 2020 PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlite.so' (tried: /usr/lib/php/20180731/pdo_sqlite.so (/usr/lib/php/20180731/pdo_sqlite.so: undefined symbol: pdo_throw_exception), /usr/lib/php/20180731/pdo_sqlite.so.so (/usr/lib/php/20180731/pdo_sqlite.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Tue Dec 29 14:19:01 CET 2020 finished server.php.
    Tue Dec 29 14:19:01 CET 2020 PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_mysql.so' (tried: /usr/lib/php/20180731/pdo_mysql.so (/usr/lib/php/20180731/pdo_mysql.so: undefined symbol: pdo_throw_exception), /usr/lib/php/20180731/pdo_mysql.so.so (/usr/lib/php/20180731/pdo_mysql.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Tue Dec 29 14:19:01 CET 2020 PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlite.so' (tried: /usr/lib/php/20180731/pdo_sqlite.so (/usr/lib/php/20180731/pdo_sqlite.so: undefined symbol: pdo_throw_exception), /usr/lib/php/20180731/pdo_sqlite.so.so (/usr/lib/php/20180731/pdo_sqlite.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    Tue Dec 29 14:20:01 CET 2020 finished server.php.
    
    In apache log i only see Gracefull restart.
    spconfig is working without any issue.

    I've multiple php versione installed from this tutorial
    How to install PHP 5.6 and 7.0 - 7.4 as PHP-FPM & FastCGI for ISPConfig 3.1 with apt on Debian 8 to 10 (howtoforge.com)
    Any idea?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. diablo666

    diablo666 Active Member HowtoForge Supporter

    Alread done this check, all is correct, no pending updates
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a Debian server and not Ubuntu, right?
     
  5. diablo666

    diablo666 Active Member HowtoForge Supporter

    Yes Debian 10.7
     
  6. diablo666

    diablo666 Active Member HowtoForge Supporter

    If i open http://IP to see default apache page, i get the same error, and abviouosly there's no database connection...
    All website goes to the first site in list...
     
  7. diablo666

    diablo666 Active Member HowtoForge Supporter

    I've found the problem, the first website was binded to a prticular ip address and this broke all apache configuration
    upload_2020-12-29_15-7-30.png

    Switching back from 10.0.0.4 to * all was fixed...
     
  8. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Yes, you should not mix those. Always use * OR the IP for all sites on a server. :)
     
  9. diablo666

    diablo666 Active Member HowtoForge Supporter

    The problem is, that editing a website with a reseller account it's the only available option, the user can't select "*"
    upload_2020-12-30_10-24-59.png
     
  10. diablo666

    diablo666 Active Member HowtoForge Supporter

    Mmm ok i've found the fix, in the profile of the reseller i've got to select my own webserver, or it will propose only the ip address
     
    Th0m likes this.
  11. diablo666

    diablo666 Active Member HowtoForge Supporter

    An information, if i delete the LAN ip address, it will broke all system?
    upload_2020-12-30_14-5-14.png
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Disable just the name virtual host checkbox in the IP details to hide it in websites.
     
  13. diablo666

    diablo666 Active Member HowtoForge Supporter

    Perfect.
     

Share This Page