ddorminey
Member
- Joined
- Dec 11, 2007
- Messages
- 78
- Reaction score
- 0
Hi All,
Thanks for all your work here.
I just downloaded piaf green 2.0.6.4 and free pbx 2.11 with incredible pbx 11 and incredible fax 11.
This is currently a test environment in preparation for upgrading our existing PIAF production box.
I have been able, in the past, to use the MSSQL_DB lookup source in Callerid Superfecta to query our inhouse ERP that runs on MSSQL 2008R2. It works reliably and quickly.
On Superfecta 2.11.03, the MSSQL_DB source is gone and has been replace with the 'Database' source. I have configured ODBC and FreeTDS and can connect from the PIAF VM to my MSSQL server consistently.
However, when i try to use the 'database' source in Superfecta, I get the following:
Now, I have enough PHP knowledge to realize that means the PHP cant see what unixODBC is providing. (and I know is working since I tested it using isql and tsql from the command line)
However, I am not certain how to enable MSSQL support in PHP and am unclear where the source is to recompile with MSSQL enabled.
The PHP website says to configure PHP with the following...
Can anyone point me in the right direction?
Thanks!
---D
Thanks for all your work here.
I just downloaded piaf green 2.0.6.4 and free pbx 2.11 with incredible pbx 11 and incredible fax 11.
This is currently a test environment in preparation for upgrading our existing PIAF production box.
I have been able, in the past, to use the MSSQL_DB lookup source in Callerid Superfecta to query our inhouse ERP that runs on MSSQL 2008R2. It works reliably and quickly.
On Superfecta 2.11.03, the MSSQL_DB source is gone and has been replace with the 'Database' source. I have configured ODBC and FreeTDS and can connect from the PIAF VM to my MSSQL server consistently.
However, when i try to use the 'database' source in Superfecta, I get the following:
Code:
Connection failed: SQLSTATE[IM002] SQLDriverConnect: 0 [unixODBC][Driver Manager]Data source name not found, and no default driver specified
Fatal error: Call to a member function prepare() on a non-object in /var/www/html/admin/modules/superfecta/sources/source-Database.module on line 68
Now, I have enough PHP knowledge to realize that means the PHP cant see what unixODBC is providing. (and I know is working since I tested it using isql and tsql from the command line)
However, I am not certain how to enable MSSQL support in PHP and am unclear where the source is to recompile with MSSQL enabled.
The PHP website says to configure PHP with the following...
Code:
./configure --with-mssql=/usr/local/freetds
Can anyone point me in the right direction?
Thanks!
---D
