Connect Site on a Linux Host

Results 1 to 8 of 8
  1. #1
    Member rahulbisme is offline
    MemberRank
    Jun 2008 Join Date
    Stamford, CTLocation
    90Posts

    Connect Site on a Linux Host

    How can I connect mssql with a linux web host? I know its a microsoft database, but i'm sure it's possible, right? I have enabled remote access for MSSQL, now I just need this linux host to connect to it.

    Any ideas/ways to fix it?

    Thanks :)


  2. #2
    Banned Blasian is offline
    BannedRank
    Aug 2009 Join Date
    California, USLocation
    773Posts

    Re: Connect Site on a Linux Host

    $host = 'blah';
    PHP Code:
    $user 'username';
    $pass 'password';
    $db 'GunzDB';

    mssql_connect$host$user$pass) or die ('Could Not Connect to Mssql Server');
    mssql_select_db $db) or die ( 'Can not select database' ); 
    where host is:
    Code:
    server_name:port
    Port is the default mssql port.
    Last edited by Blasian; 16-03-11 at 02:02 AM.

  3. #3
    Member rahulbisme is offline
    MemberRank
    Jun 2008 Join Date
    Stamford, CTLocation
    90Posts

    Re: Connect Site on a Linux Host

    And this will work on linux even though I don't have MSSQL support?

  4. #4
    Banned Blasian is offline
    BannedRank
    Aug 2009 Join Date
    California, USLocation
    773Posts

    Re: Connect Site on a Linux Host

    Quote Originally Posted by rahulbisme View Post
    And this will work on linux even though I don't have MSSQL support?
    well if the MSSQL is hosted on a windows or w/e. But there this wine do.

    sudo apt-get wine

    sudo apt-get winetricks
    then run winetricks and see if mssql is supported, I don't know what
    version of linux your using, but even if you did Linux os can't run
    gunz servers at least i never tried.

    Dont for get to like if i helped u =,=
    Last edited by Blasian; 16-03-11 at 02:08 AM.

  5. #5
    igunz.net Dawson is offline
    LegendRank
    Feb 2010 Join Date
    ::1 (Canada BC)Location
    2,581Posts

    Re: Connect Site on a Linux Host

    You just want to host your WEBSITE on a linux box right? IF it's just the website just make sure apache/litespeed/whatever webserver is running on the linux box has the MSSQL support added (if it doesn't contact your host and ask for it! It's free for them anyway)

    Then it's as simple as doing the remote connection as said above.

  6. #6
    Member rahulbisme is offline
    MemberRank
    Jun 2008 Join Date
    Stamford, CTLocation
    90Posts

    Re: Connect Site on a Linux Host

    They said it didn't come with MSSQL but I feel as if I can add something to .htaccess to enable it. Would it be possible?
    Posted via Mobile Device

  7. #7
    Banned Blasian is offline
    BannedRank
    Aug 2009 Join Date
    California, USLocation
    773Posts

    Re: Connect Site on a Linux Host

    Quote Originally Posted by rahulbisme View Post
    They said it didn't come with MSSQL but I feel as if I can add something to .htaccess to enable it. Would it be possible?
    Posted via Mobile Device
    .htaccess has nothing to do with it.

    =.=
    I we already told you how the rest is up to you e.g. Google.com

  8. #8


Advertisement