Sql for website not loading

http://soreloser.infinityfreeapp.com/
I get this error…

SQL ERROR [ mysqli ]
No such file or directory [2002]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.

Trying to load my old PhpBB forum and I used this from my cpanel DB configuration file with this info.

|MySQL DB Name|MySQL User Name|MySQL Password|MySQL Host Name|PHPMyAdmin|

epiz_28564775_sumato_phpn1
epiz_28564775
*(Your vPanel Password)
sql310.epizy.com

Into the config.php here…

<?php
// phpBB 3.0.x auto-generated configuration file
// Do not change anything in this file!
$dbms = 'mysqli';
$dbhost = 'sql310.epizy.com';
$dbport = '3306';
$dbname = 'epiz_28564775_sumato_phpn1';
$dbuser = 'epiz_28564775';
$dbpasswd = 'PRIVATE';
$table_prefix = 'phpbb_';
$acm_type = 'file';
$load_extensions = '';

@define('PHPBB_INSTALLED', true);
// @define('DEBUG', true);
// @define('DEBUG_EXTRA', true);

any ideas or help with this?

Hi and welcome to the forum

Try to correct this from your config into this

$dbms = 'phpbb\\db\\driver\\mysqli';

and probably add/edit this

$phpbb_adm_relative_path = 'adm/';
$acm_type = 'phpbb\\cache\\driver\\file';
4 Likes

Thank You for the reply and the help,

I did what you suggested, and waited five minutes…

“General Error
SQL ERROR [ mysqli ]
No such file or directory [2002]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.”

Still the same.

this is how I redid the config.php

$dbms = ‘phpbb\db\driver\mysqli’;
$dbhost = ‘sql310.epizy.com’;
$dbport = ‘3306’;
$dbname = ‘epiz_28564775_sumato_phpn1’;
$dbuser = ‘epiz_28564775’;
$dbpasswd = ‘private’;
$table_prefix = ‘phpbb_’;
$phpbb_adm_relative_path = ‘adm/’;
$acm_type = ‘phpbb\cache\driver\file’;$load_extensions = ‘’;

I added $phpbb_adm_relative_path = ‘adm/’;
to a separate line, and not sure if there is an order for it to go into.

you need to have a double backslash (escape)
as I wrote in the code

try installing phbb on one of your other hosting acc via Softaculous app from control panel
and see what code are inside in original config file

3 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.