problem with php 5 and MySQL?

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

    #1

    problem with php 5 and MySQL?

    Hello,

    I have just tried to install and use MySQL v5.0.27 and php v5.2.1 on
    my Windows XP Pro machine.

    This is the second time I have tried and failed to get php v5.2.1 to
    work with a local web site using IIS.

    As soon as I try to run a php file I get "waiting for 127.0.0.1.." and
    nothing happens.

    I realise that php.ini has to be configured to work with MySQL and I
    thought I had done this,

    extension_dir = c:\php\ext
    extension = php_mysql.dll

    php.ini is in the c:\windows folder.

    Any suggestions please?!

    Cheers,

    Geoff
  • Jerry Stuckle

    #2
    Re: problem with php 5 and MySQL?

    Geoff Cox wrote:
    Hello,
    >
    I have just tried to install and use MySQL v5.0.27 and php v5.2.1 on
    my Windows XP Pro machine.
    >
    This is the second time I have tried and failed to get php v5.2.1 to
    work with a local web site using IIS.
    >
    As soon as I try to run a php file I get "waiting for 127.0.0.1.." and
    nothing happens.
    >
    I realise that php.ini has to be configured to work with MySQL and I
    thought I had done this,
    >
    extension_dir = c:\php\ext
    extension = php_mysql.dll
    >
    php.ini is in the c:\windows folder.
    >
    Any suggestions please?!
    >
    Cheers,
    >
    Geoff
    Geoff,

    It works fine here. Did you also add the correct isapi filter to your
    IIS extension (and tell it to parse .php files)?

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • Geoff Cox

      #3
      Re: problem with php 5 and MySQL?

      On Tue, 06 Mar 2007 13:37:15 -0500, Jerry Stuckle
      <jstucklex@attg lobal.netwrote:
      >I realise that php.ini has to be configured to work with MySQL and I
      >thought I had done this,
      >>
      >extension_di r = c:\php\ext
      >extension = php_mysql.dll
      >>
      >php.ini is in the c:\windows folder.
      >>
      >Any suggestions please?!
      >>
      >Cheers,
      >>
      >Geoff
      >
      >Geoff,
      >
      >It works fine here. Did you also add the correct isapi filter to your
      >IIS extension (and tell it to parse .php files)?
      Jerry,

      Not sure what you mean by isapi filter?

      I did register php.exe as an application in IIS.

      Cheers

      Geoff

      Comment

      • Jerry Stuckle

        #4
        Re: problem with php 5 and MySQL?

        Geoff Cox wrote:
        On Tue, 06 Mar 2007 13:37:15 -0500, Jerry Stuckle
        <jstucklex@attg lobal.netwrote:
        >
        >>I realise that php.ini has to be configured to work with MySQL and I
        >>thought I had done this,
        >>>
        >>extension_d ir = c:\php\ext
        >>extension = php_mysql.dll
        >>>
        >>php.ini is in the c:\windows folder.
        >>>
        >>Any suggestions please?!
        >>>
        >>Cheers,
        >>>
        >>Geoff
        >Geoff,
        >>
        >It works fine here. Did you also add the correct isapi filter to your
        >IIS extension (and tell it to parse .php files)?
        >
        Jerry,
        >
        Not sure what you mean by isapi filter?
        >
        I did register php.exe as an application in IIS.
        >
        Cheers
        >
        Geoff
        Ah, that's the difference. I use PHP as an ISAPI extension instead.

        Not sure what it's called in XP, but look in the Properties box for your
        IIS server. You probably have a tab with something like "ISAPI
        Filters". It goes in there. The DLL is (path)/php5isapi.dll and your
        APP mappings should point at the same DLL for the .php extension.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • Geoff Cox

          #5
          Re: problem with php 5 and MySQL?

          On Tue, 06 Mar 2007 17:06:38 -0500, Jerry Stuckle
          <jstucklex@attg lobal.netwrote:

          >Ah, that's the difference. I use PHP as an ISAPI extension instead.
          >
          >Not sure what it's called in XP, but look in the Properties box for your
          >IIS server. You probably have a tab with something like "ISAPI
          >Filters". It goes in there. The DLL is (path)/php5isapi.dll and your
          >APP mappings should point at the same DLL for the .php extension.
          OK - thanks Jerry - will give it a go.

          Cheers

          Geoff

          Comment

          • Geoff Cox

            #6
            Re: problem with php 5 and MySQL?

            On Tue, 06 Mar 2007 17:06:38 -0500, Jerry Stuckle
            <jstucklex@attg lobal.netwrote:

            >Ah, that's the difference. I use PHP as an ISAPI extension instead.
            >
            >Not sure what it's called in XP, but look in the Properties box for your
            >IIS server. You probably have a tab with something like "ISAPI
            >Filters". It goes in there. The DLL is (path)/php5isapi.dll and your
            >APP mappings should point at the same DLL for the .php extension.
            Thanks Jerry - will give this go!

            Cheers

            Geoff

            Comment

            Working...