Portal Home > Knowledgebase > Articles Database > ODBC connection from a cPanel server to a Windows server
ODBC connection from a cPanel server to a Windows server
Posted by AndyB78, 12-21-2008, 01:59 PM |
ODBC connection from a cPanel server to a Windows server
Hello,
I was wondering if it's possible to use ODBC to connect to a Windows box from a Linux cPanel server. We have attempted connections from PHP (both as CGI as well as Apache module) and we get:
Fatal error: Call to undefined function odbc_pconnect() in...
and
Fatal error: Call to undefined function odbc_connect() in...
Is ODBC possible on cPanel servers?
Thanks in advance to anyone that takes the time to help in any way!
|
Posted by vapetrov, 12-21-2008, 05:53 PM |
It possible. You need to install odbc software on your server (like unixODBC) and configure your php
Read herehttp://www.php.net/manual/en/odbc.installation.php
To compile php with additional configure directives you need to edit file like /var/cpanel/easy/apache/rawopts/all_php5
Read cpanel documentation for detailshttp://www.cpanel.net/support/docs/e...tom_flags.html
__________________
Private remote administrator of Linux servers - www.petrov.ks.ua
Quality hosting - Host-Web-Site.com
|
Posted by AndyB78, 12-22-2008, 02:44 AM |
Thanks! So it needs a recompile...naturally!
|
Add to Favourites Print this Article
Also Read