The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP MSSQL extension with cPanel

Discussion in 'General Discussion' started by Xtrm2Matt, Nov 30, 2007.

  1. Xtrm2Matt

    Xtrm2Matt Registered

    Joined:
    Nov 28, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I've been in contact with support a bit regarding this, and also looked on the forum but having a slight problem.

    I followed the following instructions (http://forums.cpanel.net/showthread.php?t=66644&highlight=MSSQL):
    I added '--with-mssql=/usr/local/freetds' to /var/cpanel/easy/apache/rawopts/all_php5

    I'm trying to re-build Apache/PHP with above, but it's erroring on the following part:
    A 'whereis freetds' shows that the install dir is right:
    Anyone have any ideas? I'm quite a newbie to Linux, and just followed the instructions above.

    Cheers
     
  2. Xtrm2Matt

    Xtrm2Matt Registered

    Joined:
    Nov 28, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I've overcome this by installing CentOS 5. Runs perfect now.
     
  3. wildbrn

    wildbrn Member

    Joined:
    Apr 21, 2005
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    all is ok but, this comand

    10- Recompile PHP with --with-mssql=/usr/local/freetds flag.

    who I recompile?
     
  4. Xtrm2Matt

    Xtrm2Matt Registered

    Joined:
    Nov 28, 2007
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Log into WHM, and just re-compile Apache. It'll read from the /var/cpanel/easy/apache/rawopts/all_php5 file that you want custom build parameters :)
     
  5. FTNET

    FTNET Member

    Joined:
    Oct 11, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Same error:

    checking for MSSQL support via FreeTDS... yes
    configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory

    :eek:
     
  6. FTNET

    FTNET Member

    Joined:
    Oct 11, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Problem FIXED!:p
     
  7. Gibberish

    Gibberish Member

    Joined:
    Oct 27, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Can you please state how you fixed it?
     
  8. Aldweb

    Aldweb Well-Known Member

    Joined:
    Feb 18, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    Same error:

    checking for MSSQL support via FreeTDS... yes
    configure: error: Directory /usr/local/freetds is not a FreeTDS installation directory

    How to fix problem?

    Thanks
     
  9. furtif

    furtif Member

    Joined:
    Aug 17, 2008
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hey

    A little question:

    Code:
    [TDS]
    host = <ip of the Server with Sql>
    "ip of the server with sql" = ip of MS SQL server ?

    I have a lot of account on cpanel/whm server, and i try to install php_msssql for one account only. If i add this file, all account can acces to MS SQL server ?

    Thanks you and sorry for my english
     
  10. david510

    david510 Well-Known Member

    Joined:
    Aug 22, 2004
    Messages:
    473
    Likes Received:
    0
    Trophy Points:
    16
    It should be the ip of the MSSQL server
     
Loading...

Share This Page