tags:

views:

94

answers:

3

We're building a new server and using IIS 7. PHP pages a served just fine and dandy, but the second we use any code to access a MySQL database, the page hangs for a good minute and serves the following error:

Server Error

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

Our database.php config file is configured correctly, so I can't figure out what might be doing this. MySQL seems to be properly installed as well.

Any ideas? Googling hasn't lead me anywhere useful.

A: 

please post the code

Matthew Carter
A: 

Looks like your MySQL-Extension of PHP is not loaded correctly. Is it included in the php.ini? If so, please just take a look in the php_error.log. There should be an entry there. Please post it here

Timo
A: 

Check this post on ServerFault

Artem K.