Multiserver setup dns new server cron.log PHP Warning: mysqli_real_connect() expects parameter 1 to

Discussion in 'ISPConfig 3 Priority Support' started by gvvg, Aug 7, 2019.

  1. gvvg

    gvvg New Member HowtoForge Supporter

    Hi,
    I've recently done a multi server install joining a dns server to an existing ispconfig install.
    I am not seeing any DNS bind files on the new server.
    I do see the DNS and DB on the system services screen.
    I do see the error in the cron.log
    PHP Warning: mysqli_real_connect() expects parameter 1 to be mysqli, null given in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 275

    I'm running ubuntu 18.04 LTS
    php 7.2.19
    I am able to connect to my master ispconfig db on the command line using root as well as ispcsrv4

    I am running mariadb on the master and mysql on the slave
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check if you are able to connect to the local database as well by using the username ispconfig and the password for the ispconfig user from config.inc.php file.
     
  3. gvvg

    gvvg New Member HowtoForge Supporter

    mysql -uispconfig -pxxxxxxxxxxxxx dbispconfig
    successful
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

  5. gvvg

    gvvg New Member HowtoForge Supporter

    Hi Till,
    I don't have a web interface running on the dns server is there another way to set the log level to debug from the command line?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    gvvg likes this.
  7. gvvg

    gvvg New Member HowtoForge Supporter

    I'm not sure why but everything is working now.
    Thanks for your help.
    G.
     

Share This Page