Marmas Posted September 27 Posted September 27 (edited) I’m having a problem connecting the website to the server’s database. 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 September 27 by Marmas wrong photo
CerusL2 Posted September 29 Posted September 29 (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 September 29 by CerusL2
ZOUMHS Posted October 25 Posted October 25 send me a message when are you online, i will fix it for you free.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now