PHP-SQL connection Failure.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ao

    PHP-SQL connection Failure.

    I had PHP installed on as CGI on a Window 2000 Server and connected to
    an MSSQL 2000 on another server. Both server were upgraded to Windows
    Server 2003 and problems developed that I could no longer run PHP any
    more.

    What I did next was to uninstall PHP and re-installed it as ISAPI, and
    make necessary configurations in Windows Server 2003. PHP seems to
    work fine now on my applications are having problem connection to
    MSSQL. One thing to note here is that I am using the old php.ini as it
    has been adapted to the application.

    The problem has to do with connection failure as shown below:

    Warning: mssql_pconnect( ): Unable to connect to server: ServerName in
    c:\Inetpub\wwwr oot\Application Dir\adodb\drive rs\adodb-mssql.inc.php on
    line 327

    Warning: error_log(c:/Application_tem p/errors.log): failed to open
    stream: Permission denied in
    c:\Inetpub\wwwr oot\Application Dir\adodb\adodb-errorhandler.in c.php on
    line 68

    Fatal error: mssql error: [: Connection error to server
    'ServerName,SQL UserName,PWD,Da tabase' with user ''] in
    PCONNECT(Server Name,SQLUserNam e,PWD,Database, '****', '****', ) in
    c:\Inetpub\wwwr oot\Application Dir\adodb\adodb-errorhandler.in c.php on
    line 75

    Is there any changes I need to make in php.ini regarding ISAPI
    installation.
    I am working with PHP4

    Thanks
  • Janwillem Borleffs

    #2
    Re: PHP-SQL connection Failure.

    ao wrote:[color=blue]
    > Is there any changes I need to make in php.ini regarding ISAPI
    > installation.
    > I am working with PHP4
    >[/color]

    No, but you will have to ensure that the passed credentials are valid and
    that the database server accepts connections from your IP.


    JW



    Comment

    • ao

      #3
      Re: PHP-SQL connection Failure.

      The connection problem was eventually resolved, it due to difference
      in the version of ntwdblib.dll in the 2 systems. The Webserver had
      ver 7.0 while the sql-server had 8.0.


      "Janwillem Borleffs" <jw@jwscripts.c om> wrote in message news:<4140bb06$ 0$46382$cd19a36 3@news.euronet. nl>...[color=blue]
      > ao wrote:[color=green]
      > > Is there any changes I need to make in php.ini regarding ISAPI
      > > installation.
      > > I am working with PHP4
      > >[/color]
      >
      > No, but you will have to ensure that the passed credentials are valid and
      > that the database server accepts connections from your IP.
      >
      >
      > JW[/color]

      Comment

      Working...