Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 597271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:15:43+00:00 2026-05-13T16:15:43+00:00

I have set up PHP5.3, MySQL5.1, and IIS7 on Window 7 but php doesn’t

  • 0

I have set up PHP5.3, MySQL5.1, and IIS7 on Window 7 but php doesn’t want to work with MySQL. I’m assuming it is a configuration error or an incomplete install on my part.

  1. MySQL5.1 is working
  2. PHP5.3 is working, phpinfo() shows info and that i have enabled MySQL
  3. IIS is setup and using fastCgiModule to run PHP
  4. IIS registers php.ini updates
  5. port 3306 is firewall free and open to the world
  6. php.ini is configured correctly
  7. I have added c:\php to the Windows systems PATH

In the past I remember moving a file, libmysql.dll, to System32 but I doesn’t look like that come with php5.3.1, as the driver comes built in now https://www.php.net/manual/en/mysqlnd.install.php.

(This has been giving me so much trouble I have been documenting my findings on my blog as http://inteldesigner.com/2010/code/having-problems-getting-php5-3-to-work-with-mysql5-1 )

NEED:

  1. I need to install PHP manually, don’t want to use the quick installer or an older version
  2. I need to get PHP5.3 to work with MySQL5.1 so i can install WordPress2.9 and Drupal7a

Any links or suggestion would be great, I have already done everything on the iis web site, nothing is working. I’m guessing they have not updated for new software.

BUGS/SOLUTION:

The solution is here: http://bugs.php.net/bug.php?id=50172 thanks go to don.raman on the iis.net forums http://forums.iis.net/p/1164911/1933894.aspx

SYMPTOMS:

The php function mysql_connect() in conjunction with php5.3 locks up sever and returns error 500. (IPv6 is the problem see above link)

TEST CODE:

<?php
    $con = mysql_connect("localhost","root","***");
    if (!$con)
      {
      die('Could not connect: ' . mysql_error());
      }
    
    // some code
    
    mysql_close($con);
    ?> 

ERRORS:

From Browser:

HTTP Error 500.0 - Internal Server Error
C:\php\php-cgi.exe - The FastCGI process exceeded configured activity timeout

When i run php -f c:\public_html\index.php from the command line i got:

PHP Warning:  mysql_connect(): [2002] A connection attempt failed because the co
nnected party did not  (trying to connect via tcp://localhost:3306) in C:\public
_html\index.php on line 10

Warning: mysql_connect(): [2002] A connection attempt failed because the connect
ed party did not  (trying to connect via tcp://localhost:3306) in C:\public_html
\index.php on line 10
PHP Warning:  mysql_connect(): A connection attempt failed because the connected
 party did not properly respond after a period of time, or established connectio
n failed because connected host has failed to respond.
 in C:\public_html\index.php on line 10

Warning: mysql_connect(): A connection attempt failed because the connected part
y did not properly respond after a period of time, or established connection fai
led because connected host has failed to respond.
 in C:\public_html\index.php on line 10
Could not connect: A connection attempt failed because the connected party did n
ot properly respond after a period of time, or established connection failed bec
ause connected host has failed to respond.

C:\Users\Kevin>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:15:44+00:00Added an answer on May 13, 2026 at 4:15 pm

    don.raman wrote:

    Please look at http://bugs.php.net/bug.php?id=50172 for resolution on this.

    Another alternative is to to use PHP 5.2.12 which doesn’t have this behavior.

    I found it http://forums.iis.net/p/1164911/1933894.aspx and posted about it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.