Can not install OJS on FreeBSD

Trying to install OJS 3.1.2-1 and 3.1.1-4 on FreeBSD 12, Apache 2.4.38, PHP 7.2.16 MySQL 5.6.43. Got white screen or install page.
in httpd-error.log got bunch of warnings and error.
PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /usr/local/www/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0

  • PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /usr/local/www/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0*
  • PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /usr/local/www/ojs/lib/pkp/pages/install/InstallHandler.inc.php on line 0*
  • PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /usr/local/www/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://192.168.0.140/ojs/index.php/index/install*
  • PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /usr/local/www/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://192.168.0.140/ojs/index.php/index/install*
  • PHP Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/www/ojs/cache/t_compile/e8ea13aa559bf8604ca823015b397a28d8666486^%%8B^8BC^8BC56207%%usernav.tpl.php on line 100, referer: http://192.168.0.140/ojs/index.php/index/install*
  • PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /usr/local/www/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://192.168.0.140/ojs/index.php/index/install*
  • PHP Warning: Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /usr/local/www/ojs/lib/pkp/pages/install/InstallHandler.inc.php on line 0, referer: http://192.168.0.140/ojs/index.php/index/install*
  • PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /usr/local/www/ojs/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php:456\nStack trace:\n#0 /usr/local/www/ojs/lib/pkp/lib/adodb/adodb.inc.php(558): ADODB_mysql->_connect(‘localhost’, ‘ojs2’, ‘ojs2’, ‘’)\n#1 /usr/local/www/ojs/lib/pkp/classes/db/DBConnection.inc.php(144): ADOConnection->Connect(‘localhost’, ‘ojs2’, ‘ojs2’, NULL, false)\n#2 /usr/local/www/ojs/lib/pkp/classes/db/DBConnection.inc.php(119): DBConnection->connect()\n#3 /usr/local/www/ojs/lib/pkp/classes/db/DBConnection.inc.php(106): DBConnection->initConn()\n#4 /usr/local/www/ojs/lib/pkp/classes/db/DBConnection.inc.php(55): DBConnection->initCustomDBConnection(‘mysql’, ‘localhost’, ‘ojs2’, ‘ojs2’, NULL, false, ‘utf8’)\n#5 /usr/local/www/ojs/lib/pkp/classes/install/PKPInstall.inc.php(76): DBConnection->__construct(‘mysql’, ‘localhost’, ‘ojs2’, ‘ojs2’, NULL, false, ‘utf8’)\n#6 /usr/local/www/ojs/lib/pkp/classes/install/Installer.inc.php(178): PKPInstall->preInstall()\n#7 /usr/local/www/ojs/lib/pkp/clas in /usr/local/www/ojs/lib/pkp/lib/adodb/drivers/adodb-mysql.inc.php on line 456, referer: http://192.168.0.140/ojs/index.php/index/install*
    This error looks very strange for me - Call to undefined function mysql_connect() because this function is obsolete in php5.5 and removed in php7.
    Thanks for any answer. Sorry for bad english.

You’ll want to use the mysqli driver instead of mysql in config.inc.php (or on the installation form).

Big thanks and respect!