SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast icovey's Avatar
    Join Date
    Jul 2006
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP/MySQL Installation Problems

    OK, I know this is a very common problem but I'm having problems installing Apache (2.2.6)/PHP (5.2.5)/MySQL (5.1.11) on Windows....

    Despite performing all the usual configuration changes (editing conf.httd, php.ini adding the required .dll's) but PHP seems to be unable to *see* MySQL.

    Running the phpinfo() function returns information about PHP etc but does not include information about MySQL.

    Any ideas?

    Cheers,
    Cheers,
    Ian.

    7879 | Web Marketing Lichfield

  2. #2
    SitePoint Wizard holmescreek's Avatar
    Join Date
    Mar 2001
    Location
    Northwest Florida
    Posts
    1,707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If your setting up Apache/Php/MySql on your machine just as a test server for development, you may want to opt with one of these packages that has everything included and configured :

    http://www.apachefriends.org/en/xampp-windows.html (windows)

    http://mamp.info/en/index.php ( for mac os/x )
    intragenesis, llc professional web & graphic design

  3. #3
    SitePoint Enthusiast icovey's Avatar
    Join Date
    Jul 2006
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, thanks for that but I'd really like to nail this issue as I'm having the same problem with PHP and MySQL on another machine running IIS.

    As I say PHP is running OK but it just can't see MySQL.
    Cheers,
    Ian.

    7879 | Web Marketing Lichfield

  4. #4
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Did you set the correct path to extension_dir in php.ini?

  5. #5
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    The manual page is very explicit and helpful about win32 PHP5 installs when it comes to mysql.

    Once you get going I'd strongly advise using mysqli or PDO extensions.

  6. #6
    SitePoint Enthusiast icovey's Avatar
    Join Date
    Jul 2006
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by php_daemon View Post
    Did you set the correct path to extension_dir in php.ini?
    According to what I could find on the Web, I have done...


    Quote Originally Posted by Cups
    The manual page is very explicit and helpful about win32 PHP5 installs when it comes to mysql.

    Once you get going I'd strongly advise using mysqli or PDO extensions.
    Thanks for that, Cups. I'll double check the manual.
    Cheers,
    Ian.

    7879 | Web Marketing Lichfield

  7. #7
    SitePoint Enthusiast jlgarcia's Avatar
    Join Date
    Sep 2001
    Location
    Baja California, México
    Posts
    95
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have exactly the same problem, running Apache, PHP 5, MySQL 5 and PHP just seems not to note that MySQL exists in the machine.

    MySQL is working, in the PATH and ok, the same with Apache. I found that MySQL is NOT enabled by default in PHP 5 like it was in PHP 4, but I haven't found the settings that I have have to set in the PHP.INI file in order to tell PHP about MySQL.

    I have been trying uncommenting some lines but it just don't work. Does anybody knows where to find exactly what the settings has to be enabled in the PHP.INI to make this work?
    Oh, and I copied the DLL's from the ext folder to the c:\php\ folder too instead of changing the setting in the php.ini file.

    Everything is working fine but no MySQL access for PHP in my webpages.

    Thank you for any help.
    Use the source, Luke...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •