Jump to content

Novgor


Novgor

Recommended Posts

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?

Link to comment
Share on other sites

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}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated