DeBoerTool / odbc-driver

ODBC Driver for Laravel 5.5+
MIT License
25 stars 11 forks source link

PHP artisan serve works perfectly the database connects just fine, but when deploying on same server using nginx it fails #4

Closed jeremiahsherrill closed 4 years ago

jeremiahsherrill commented 4 years ago

Just curious if you have seen this before

SQLSTATE[60] SQLConnect: 0 [unixODBC][DataDirect][ODBC 20101 driver]1201

jeremiahsherrill commented 4 years ago

If for some reason anyone has this problem, the solution is to add the environment variable to .env

ODBCINI=/etc/odbc.ini (or where ever your odbc.ini file is located.

danielsdeboer commented 4 years ago

I was going to say that if it works with php artisan serve but not nginx, it sounds like an nginx configuration issue... but I looks like you got there before I could :)