Odd problem installing PHP5

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

    Odd problem installing PHP5

    WinXP Pro, Apache 1.3.27, trying to add PHP 5.0.4 with MySQL support to
    the mix. Everything works fine until I add 'extension=libm ysql.dll' to
    php.ini, and then starting Apache gives me the same error popup two or
    three times, all with the same message:
    PHP Startup: Invalid library (maybe not a PHP library) 'libmysql.dll'

    I've tried all manner of variations of extension_dir, and copied
    libmysql.dll from the php5 distro into c:\windows\syst em32, all to no
    avail. PHP seems to work otherwise, but there's no MySQL support.


    ---
    avast! Antivirus: Outbound message clean.
    Virus Database (VPS): 0523-6, 06/09/2005
    Tested on: 6/10/2005 9:02:58 AM
    avast! - copyright (c) 1988-2005 ALWIL Software.
    Join hundreds of millions of others & get free antivirus for PC, Mac, & Android. Surf safely with our VPN. Download Avast!




  • Philip  Olson

    #2
    Re: Odd problem installing PHP5

    Use php_mysql.dll not libmysql.dll inside php.ini

    Read the PHP manual, it talks about this:


    Comment

    • Matt Ion

      #3
      Re: Odd problem installing PHP5

      Philip Olson wrote:[color=blue]
      > Use php_mysql.dll not libmysql.dll inside php.ini
      >
      > Read the PHP manual, it talks about this:
      > http://php.net/mysql[/color]


      Ahh, thanks... I was going by the install.txt which didn't specify that,
      it just said to use libmysql.dll for php5.

      That seems to be working now...


      ---
      avast! Antivirus: Outbound message clean.
      Virus Database (VPS): 0523-6, 06/09/2005
      Tested on: 6/10/2005 4:38:47 PM
      avast! - copyright (c) 1988-2005 ALWIL Software.
      Join hundreds of millions of others & get free antivirus for PC, Mac, & Android. Surf safely with our VPN. Download Avast!




      Comment

      • Dale

        #4
        Re: Odd problem installing PHP5

        Make sure you copy the *.dll files from the php install to the system32
        directory (or the directory where apache.exe lives.

        Comment

        • Dale

          #5
          Re: Odd problem installing PHP5

          .... I should have been more specific, sorry, copy the dll files from
          the root of the PHP install, you do not have to copy the dlls from the
          ext directory as the extension_dir points to that directory. You
          might be able to set a path variable to point to the php root, but I
          couldn't get it to work for me.

          Comment

          • Philip  Olson

            #6
            Re: Odd problem installing PHP5

            Actually it's much preferred to never copy *any* PHP files (or any
            files at all really) into the system32 directory. That's sloppy.
            Instead, setup the system PATH environment variable as mentioned in the
            manual to point to the PHP directory so all PHP files can be found.

            install.txt is generated directly from the PHP manual. Please specify
            where it says this so it can be corrected/clarified.

            Comment

            • Philip  Olson

              #7
              Re: Odd problem installing PHP5

              Sorry I missed your comment about PATH :-) It works, be sure it's the
              system path and not the user path. And restart Windows after setting it.

              Comment

              Working...