Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Installing sqlsrv module from PHP Pecl Issue

Discussion in 'EasyApache' started by sayedsoft, Jun 6, 2018.

Tags:
  1. sayedsoft

    sayedsoft Registered

    Joined:
    Jun 6, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Türkiye
    cPanel Access Level:
    Reseller Owner
    hello my name is yaman

    i want install sqlsrv module from Home »Software »Module Installers
    i have taken this message :

    In file included from /usr/local/include/sql.h:19:0,
    from /root/tmp/pear/sqlsrv/shared/xplat.h:30,
    from /root/tmp/pear/sqlsrv/shared/typedefs_for_linux.h:23,
    from /root/tmp/pear/sqlsrv/shared/xplat_winnls.h:24,
    from /root/tmp/pear/sqlsrv/shared/FormattedPrint.h:24,
    from /root/tmp/pear/sqlsrv/shared/FormattedPrint.cpp:23:
    /usr/local/include/sqltypes.h:400:19: error: 'SQLBIGINT' does not name a type
    typedef ODBCINT64 SQLBIGINT;
    ^
    /usr/local/include/sqltypes.h:403:20: error: 'SQLUBIGINT' does not name a type
    typedef UODBCINT64 SQLUBIGINT;
    ^
    make: *** [shared/FormattedPrint.lo] Error 1
    ERROR: `make' failed

    how can i install it please help me
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,531
    Likes Received:
    1,965
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @sayedsoft,

    The sqlsrv PECL module depends on the unixODBC and unixODBC-devel RPMs. You have to install them via YUM before installing the PECL module:

    Code:
    yum install unixODBC unixODBC-devel
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sayedsoft

    sayedsoft Registered

    Joined:
    Jun 6, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Türkiye
    cPanel Access Level:
    Reseller Owner
    unixODBC unixODBC-devel is installed in my host
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,531
    Likes Received:
    1,965
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @sayedsoft,

    It looks like you have an active support ticket open for this topic (#9679899). I'll monitor the ticket and update this thread with the outcome once it's complete.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,531
    Likes Received:
    1,965
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, this looks to relate to internal case EA-7095 where the EasyApache 4 freetds RPM doesn't include libtdsodbc.so. I'll monitor this case and update this thread with the outcome once it's available. In the meantime, the suggested workaround in the support ticket was to install the freetds RPM from the EPEL YUM repo or to use the alt-freetds RPM as provided with CloudLinux.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. solcre

    solcre Registered

    Joined:
    Apr 19, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    51
    Is this fixed? It is possible to install SQLSRV on a Cpanel running on Centos 6?
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,531
    Likes Received:
    1,965
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @solcre,

    There's no update to report on the status of internal case EA-7095 at this time. However, note the SQLSRV, and PDO_SQLSRV PECL modules are only compatible with PHP running on Windows. This is noted on the following document:

    PHP: MS SQL Server (PDO) - Manual

    As an alternative, you can use the ODBC EA4 RPM. The following command will install this RPM (PHP 7.0 is the version in the example below):

    Code:
    yum install ea-php70-php-odbc
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice