Error: Can't find my PHP modules when they're there

Hi all, I just recently installed yii (1.06 stable) using windows xp. I don't know how well my installation is going but unlike the tutorial I've already received multiple error messages even though my requirements page ran green other than some missing SQL functionality, and I don't want to proceed if everything is breaking without my knowing.

My error is:

PHP Warning: PHP  Startup: Unable to load dynamic library 'C:Program FilesPHPextphp_mssql.dll' - The Specified module could not be found.

PHP Warning: PHP  Startup: Unable to load dynamic library 'C:Program FilesPHPextphp_oci8.dll' - The Specified module could not be found.

PHP Warning: PHP  Startup: Unable to load dynamic library 'C:Program FilesPHPextphp_pdo_mssql.dll' - The Specified module could not be found.

There are about 8 error messages of this (which all do really annoying prompts  :-[). The pop up says "This application has failed to start because <file name> was not found. Re-installing the application may fix this problem. The even stranger part is that all of those files that are said to not be found are actually there. I’ve also reinstalled yii multiple times. BUT! at the end it still asks me if i want to create a new web application…

Create a Web application under 'C:\test'? [Yes:No] yes



Your applications has been created successfully under C:\test.

my original command was (my root folder is named "webserver"):

C:webserveryiiframework>yiic webapp test

I'm fairly new to php, only about 3 months worth of experience learning the basics and setting up small websites, but I've had a very bad experience using JSP wiki where it said everything loaded fine when actually everything was broken in the back end… I would like to make sure this isn't the case.

Any help would be appreciated, if i need to post more information let me know, otherwise thanks a lot in advance!

Looks like php cannot find the dll files because they are under 'Program Files' folder where a space is in between of the path.

You may want to install the php in a different path which doesn't have any space in the dir name.


check extension_dir in php.ini file. It should be set to your directory which stores extensions, i.e.

extension_dir = "C:\Program Files\PHP\ext"

; Default timeout for socket based streams (seconds)

default_socket_timeout = 60



extension_dir="C:\Program Files\PHP\ext"

was in the php.ini file stored in location C:\Program Files\PHP, so it looks ok =(


which version PHP you have? And have you correct version extensions for PHP? Maybe PHP need some library for MS SQL? I use MySQL and I don`t have experience with MS SQL.

I'm using php 5 and my apologies I'm using MySQL too. I'm probably just going to go through and hope nothing too bad happens lol

Did you check what will suggested?

Hello Every body,

I tried to install YII first app & was following Blog tutorial. I am using Xampp on windows.

My YII downloaded zip in D:\YII\yii_frm\ & document root is c:\xampp\htdocs.

I tried to initiate firtst app. by issuing a command

D:\YII\yii_frm\framework>yiic -wepapp c:\xampp\htdocs\yiiblog.

Please note that path to php exe is in PATH variable.

I got this error:

PHP Warning:  PHP Startup: Unable to load dynamic library '\xampp\php\ext php_gd2.dll'

  • The specified module could not be found. in Unknown on line 0

similarly there are 20+ errors

Whats wrong. is it with YII or with my XAMPP installation.

I checked my ext dir. & as well as php.ini & PHP info modules are getting loaded when apache starts.

Please help ! Thanks all tech geeks for their time for this post.


Hello Friends,

Looks like I was wrong.

I put my framework under htdocs & then executed the command to create the application. The application created successfully.

Thanks a lot

so all you did was put the yii framework in the htdocs and it fixed it for you?