Jump to content

Recommended Posts

Posted (edited)

 

I’m having a problem connecting the website to the server’s database.


image.png.7b1db20bd3663cb19e224a0f23c154f1.png

 

 
 

The same database l2c4_lin2db is in hAuthD, in SQL, and also in the website configuration above.
So this part is correct, just like the login, password, etc.

My domain www is pointing to my cPanel, so everything seems fine.
I also executed the database lin2site in SQL, but I don’t understand why the site doesn’t work.

I already tried putting:

  • $conMethod = 1

  • $conMethod = 2

  • $conMethod = 3

  • $conMethod = 4

None of them works.

When I set it to 2, I get:

This page isn’t working
www.site.com is currently unable to handle this request.
HTTP ERROR 500

And when I set it to 3 or 4, I get:

Failed to connect! #ODBC #DB


Database Config (the code you pasted)

 
 
########################################################### ## Database ## ########################################################### # Which connection method will you use? $conMethod = 2; // 1 = MsSQL, 2 = SQLSRV, 3 = ODBC, 4 = PDO-ODBC
 
 

 

 

Edited by Marmas
wrong photo
Posted (edited)

What webhosting are you using? You'll need to talk with administrators of the webhosting to open outgoing connections to port 1433, maybe they won't open it for you, instead, you should get a webhosting for mu online since they always have 1433 port open for outgoing connections. Also, make sure you have your 1433 TCP port open for incoming connections, for security, I suggest you exclusively add the cPanel IP Address to connect to your port 1433 in your firewall, so no one else can try to connect to your database.
Let me know if you have any questions, happy to help.

Edited by CerusL2
  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock