Novgor Posted July 7, 2020 Share Posted July 7, 2020 Hello.I want to make the database on a separate server.In the configuration.php file I specify the server address. $ db_host = '192.168.0.1'; $ db_port = '3306'; $ db_username = 'whmcs_dev'; $ db_password = 'password'; $ db_name = 'whmcs_dev'; As a result, I get the error "Critical Error Could not connect to the 'whmcs_dev' database."Checked through the console, there is access to the database.If you register a localhost, then everything works.What could be wrong? 0 Quote Link to comment Share on other sites More sharing options...
Novgor Posted July 8, 2020 Author Share Posted July 8, 2020 Error: WHMCS\Exception\Application\Configuration\CannotConnectToDatabase: Could not connect to the 'whmcs_dev' database. in /home/dev2/vendor/whmcs/whmcs-foundation/lib/Application/ApplicationServiceProvider.php:0 Stack trace: #0 /home/dev2/vendor/illuminate/container/Container.php(731): WHMCS\Application\ApplicationServiceProvider->WHMCS\Application\{closure}(Object(WHMCS\Container), Array) #1 /home/dev2/vendor/illuminate/container/Container.php(629): Illuminate\Container\Container->build(Object(Closure), Array) #2 /home/dev2/vendor/illuminate/container/Container.php(1174): Illuminate\Container\Container->make('app') #3 /home/dev2/vendor/illuminate/support/Facades/Facade.php(151): Illuminate\Container\Container->offsetGet('app') #4 /home/dev2/vendor/illuminate/support/Facades/Facade.php(120): Illuminate\Support\Facades\Facade::resolveFacadeInstance('app') #5 /home/dev2/vendor/whmcs/whmcs-foundation/lib/Application/Support/Facades/Facade.php(0): Illuminate\Support\Facades\Facade::getFacadeRoot() #6 /home/dev2/init.php(0): WHMCS\Application\Support\Facades\Facade::self() #7 /home/dev2/index.php(0): unknown() #8 {main} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.