Advertisement

12.22.2007 at 03:23PM PST, ID: 23040216
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

Unable to get PHP on Windows 2003 IIS6 to connect to MySQL for Drupal

Asked by SerenitySystems in Server Software, PHP and Databases, MySQL Server

Tags: , , , ,

I am trying to put together a single Windows 2003 machine running IIS6, PHP, and MySQL in order to run Drupal.  When I open the Drupal configuration page, it can't connect to the database. I get this error msg:

"Your web server does not appear to support any common database types. Check with your hosting provider to see if they offer any databases that Drupal supports."

The error page gives me this link: http://drupal.org/node/270#database

I have tried the suggestions there. I have reinstalled mysql and php.  I have been using MySQL Control Center 0.9.8, which is a Win32 GUI app, to manage mysql and it appears the databse is runnning fine.  I can make/edit databases and user accounts. I can manage permissions.

I have a good understanding of how php integrates into IIS, but I have less understanding how mysql is tied in.  I have run some of the scripts from http://www.php.net/mysql_connect    but I always get this error:

"Fatal error: Call to undefined function mysql_connect() in C:\Inetpub\wwwroot\drupal-5.5\php1.php on line 2"

I can telnet to localhost 3306 and get a connection, so I know the SQL server is listening on that port.

I have played around with my.ini and php.ini but that didn't help. I haven't been able to find much in the way of noobie explanatins of what these settings mean.

I'm using these versions:

php-5.2.5-win32-installer.msi
mysql-5.0.45-win32.zip
drupal-5.5.tar.gz
Windows 2003 Server SP2

PHP appears to be working ine. I'm out of ideas. Here's the output from phpinfo:

System  Windows NT WEB1 5.2 build 3790  
Build Date  Nov 8 2007 23:18:08  
Configure Command  cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"  
Server API  ISAPI  
Virtual Directory Support  enabled  
Configuration File (php.ini) Path  C:\WINDOWS  
Loaded Configuration File  (none)  
PHP API  20041225  
PHP Extension  20060613  
Zend Extension  220060519  
Debug Build  no  
Thread Safety  enabled  
Zend Memory Manager  enabled  
IPv6 Support  enabled  
Registered PHP Streams  php, file, data, http, ftp, compress.zlib  
Registered Stream Socket Transports  tcp, udp  
Registered Stream Filters  convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, zlib.*  
Start Free Trial
 
 
[+][-]12.22.2007 at 03:29PM PST, ID: 20520073

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Server Software, PHP and Databases, MySQL Server
Tags: mysql, php, connect, iis6, unable
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.22.2007 at 04:20PM PST, ID: 20520140

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.22.2007 at 05:10PM PST, ID: 20520228

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.22.2007 at 05:12PM PST, ID: 20520230

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.22.2007 at 05:27PM PST, ID: 20520251

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628