Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    4

    Question PHP MSSQL extension with cPanel

    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....hlight=MSSQL):
    1-. Download freetds -> www.freetds.org

    2-. tar -zxvf freetds-stable-tgz

    3-. cd freetds-*

    4-. ./configure --prefix=/usr/local/freetds --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld

    5-. make

    6-. make install

    7-. /usr/local/freetds/bin/tsql -S <ip of the server> -U <User SQL>

    8-. Add the next text in freetds.conf ( /usr/local/freetds/etc )
    [TDS]
    host = <ip of the Server with Sql>
    port = 1433
    tds version = 8.0

    9-. Add the following line in the file /etc/ld.so.conf and run ldconfig -v:
    /usr/local/freetds/lib

    10- Recompile PHP with --with-mssql=/usr/local/freetds flag.
    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:
    checking for MSSQL support via FreeTDS... yes
    configure: error: Directory /usr/local/freetds is not a FreeTDS installation
    directory
    A 'whereis freetds' shows that the install dir is right:
    [root@web rawopts]# whereis freetds
    freetds: /usr/local/etc/freetds.conf /usr/local/freetds
    Anyone have any ideas? I'm quite a newbie to Linux, and just followed the instructions above.

    Cheers

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    4

    Default

    I've overcome this by installing CentOS 5. Runs perfect now.

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    7

    Default

    all is ok but, this comand

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

    who I recompile?

  4. #4
    Registered User
    Join Date
    Nov 2007
    Posts
    4

    Default

    Quote Originally Posted by wildbrn View Post
    all is ok but, this comand

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

    who I recompile?
    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. #5
    Member
    Join Date
    Oct 2007
    Posts
    6

    Default

    Same error:

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


  6. #6
    Member
    Join Date
    Oct 2007
    Posts
    6

    Default

    Problem FIXED!

  7. #7
    Member
    Join Date
    Oct 2006
    Posts
    21

    Default

    Can you please state how you fixed it?

  8. #8
    Member
    Join Date
    Feb 2004
    Posts
    56

    Default

    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. #9
    Member
    Join Date
    Aug 2008
    Posts
    12

    Default

    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. #10
    Member
    Join Date
    Aug 2004
    Posts
    472

    Default

    It should be the ip of the MSSQL server
    www.cliffsupport.com
    i WebManager | Access WHM from your iPhone

Similar Threads & Tags
Similar threads

  1. bytesCode PHP Encoder next request for cPanel PHP extension build in
    By RodrigoGregorio in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 11-12-2010, 04:30 PM
  2. SOAP extension for cPanel PHP
    By cyon in forum cPanel and WHM Discussions
    Replies: 15
    Last Post: 12-12-2009, 02:37 AM
  3. php-patch + php extension + cPanel = HOW :(
    By x-man in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-13-2006, 12:36 AM
  4. Replies: 0
    Last Post: 01-30-2006, 06:34 PM
  5. ODBC or MSSQL connection with php under cpanel
    By kirkmiesle in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-30-2004, 08:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube