Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Windows XP OS.

Installed Apache 2.2.14, then PHP 5.2.12 (tested with phpinfo.php -> IT'S WORKS!) Then I installed MySQL 5.1. And now, when I add extension = php_mysql.dll to php.ini and restart server, Apache tells me that he can't start (small window with "The requested operation has failed"). Even if I add only extension = *smth*.dll ---> the same thing. Apache just don't love my extensions. How to prove him, that they are cool and stuff? Thanks.

share|improve this question

migrated from Jan 7 '10 at 23:47

This question came from our site for professional and enthusiast programmers.

Is your php extension directory set in php.ini and pointed to the right place? Is your dll in the stated extensions directory?

share|improve this answer
"extension_dir=c:\PHP\ext" --- in the php.ini File php_mysql is in the c:\PHP\ext. File libmysql.dll is in the c:\PHP. PATH is with "c:\PHP\;". Mystic!.. – Evgeni Jan 6 '10 at 9:54

Sometimes Apache + PHP doesn't like the order in which extensions are loaded.

Especially put at the front.

What you want to do is remove all the extensions and then add a few at a time (or one at a time), for example, and check that Apache starts. When you find the one that crashes, add the rest, then restart, and finally move the crashing one to the front and restart. This is an issue with FreeBSD at least and I suspect it's the same.

Here's the order on my server with recode before mysql which you can try to mimic first
share|improve this answer
  1. make sure your extension_dir is in the following format:

  2. make sure that extension=php_pdo.dll is uncommented and that you load sqlite ext right after. order is important.

    ... < snip > ...
share|improve this answer
Source:… – Mina Nov 29 '11 at 11:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.