I'm using PHP Laravel 7.4 on Ubuntu 20.04.and trying to get data from SQL server located in windows server on another cloud.
this method was tested on my PC (Windows) and it successfully got the data from the windows server(mentioned above), But on my ubuntu server I follow the documents ubuntu 20.04 PHP 7.4https://learn.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-ver15
I got this error:
SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]TCPProvider: Error code 0x2746 (SQL: myquery){"userId":94,"exception":"[object](Illuminate\Database\QueryException(code: 08001): SQLSTATE[08001]:[Microsoft][ODBC Driver 17 for SQL Server]TCP Provider: Error code0x2746 (SQL: myquery) at/var/www/web-api/vendor/laravel/framework/src/Illuminate/Database/Connection.php:669)
I checked the logs in Microsoft SQL Server Management Studio and I notice this message appears every time I make a request from Ubuntu
"An TLS 1.2 connection request was received from a remote clientapplication, but none of the cipher suites supported by the clientapplication are supported by the server. The SSL connection requesthas failed."