Ошибка при создании приложения.

Помогите, плиз… Что-то голову уже сломал - в чем я накасячил и как изменить настройки сервера? ОС Win Vista 32, сборка веб сервера - denwer3

после выполнения % YiiRoot/framework/yiic webapp WebRoot/testdrive

Вот что получаю:






W:homeyii.test>frameworkyiic webapp ..wwwtest


X-Powered-By: PHP/5.2.4


Content-type: text/html





Create a Web application under 'W:homeyii.testwwwtest'? [Yes|No] PHP Error[2


]: fgets(): supplied argument is not a valid stream resource


in file W:homeyii.testframeworkclicommandsWebAppCommand.php at line 55


#0  CConsoleApplication->displayError(2, fgets(): supplied argument is not a val


id stream resource, W:homeyii.testframeworkclicommandsWebAppCommand.php, 5


5) called at [W:homeyii.testframeworkbaseCErrorHandler.php:175]


#1  CErrorHandler->handleError(CErrorEvent Object ([code] => 2,[message] => fget


s(): supplied argument is not a valid stream resource,[file] => W:homeyii.test


frameworkclicommandsWebAppCommand.php,[line] => 55,[sender] => CConsoleAppli


cation Object ([commandMap] => Array (),[] => W:homeyii.testframeworkclicom


mands,[] => CConsoleCommandRunner Object ([commands] => Array ([message] => W:h


omeyii.testframeworkclicommandsMessageCommand.php,[shell] => W:homeyii.te


stframeworkclicommandsShellCommand.php,[webapp] => W:homeyii.testframewor


kclicommandsWebAppCommand.php),[] => W:homeyii.testframeworkyiic,[] => ,[


] => ),[name] => My Application,[charset] => UTF-8,[preload] => Array (),[source


Language] => en_us,[behaviors] => Array (),[] => ,[] => W:homeyii.testframewo


rkcli,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Array ([errorHandler] => CErrorH


andler Object ([maxSourceLines] => 25,[adminInfo] => the webmaster,[discardOutpu


t] => 1,[behaviors] => Array (),[] => 1,[] => ,[] => )),[] => Array ([coreMessag


es] => Array ([class] => CPhpMessageSource,[language] => en_us,[basePath] => W:


homeyii.testframeworkmessages),[db] => Array ([class] => CDbConnection),[mess


ages] => Array ([class] => CPhpMessageSource),[securityManager] => Array ([class


] => CSecurityManager),[statePersister] => Array ([class] => CStatePersister)),[


] => ,[] => ,[] => ,[] => ),[handled] => 1,[] => ,[] => )) called at [W:homeyi


i.testframeworkbaseCErrorHandler.php:87]


#2  CErrorHandler->handle(CErrorEvent Object ([code] => 2,[message] => fgets():


supplied argument is not a valid stream resource,[file] => W:homeyii.testfram


eworkclicommandsWebAppCommand.php,[line] => 55,[sender] => CConsoleApplicatio


n Object ([commandMap] => Array (),[] => W:homeyii.testframeworkclicommands


,[] => CConsoleCommandRunner Object ([commands] => Array ([message] => W:homey


ii.testframeworkclicommandsMessageCommand.php,[shell] => W:homeyii.testfr


ameworkclicommandsShellCommand.php,[webapp] => W:homeyii.testframeworkcli


commandsWebAppCommand.php),[] => W:homeyii.testframeworkyiic,[] => ,[] =>


),[name] => My Application,[charset] => UTF-8,[preload] => Array (),[sourceLangu


age] => en_us,[behaviors] => Array (),[] => ,[] => W:homeyii.testframeworkcl


i,[] => ,[] => ,[] => ,[] => ,[] => ,[] => Array ([errorHandler] => CErrorHandle


r Object ([maxSourceLines] => 25,[adminInfo] => the webmaster,[discardOutput] =>


 1,[behaviors] => Array (),[] => 1,[] => ,[] => )),[] => Array ([coreMessages] =


> Array ([class] => CPhpMessageSource,[language] => en_us,[basePath] => W:home


yii.testframeworkmessages),[db] => Array ([class] => CDbConnection),[messages]


 => Array ([class] => CPhpMessageSource),[securityManager] => Array ([class] =>


CSecurityManager),[statePersister] => Array ([class] => CStatePersister)),[] =>


,[] => ,[] => ,[] => ),[handled] => 1,[] => ,[] => )) called at [W:homeyii.tes


tframeworkbaseCApplication.php:621]


#3  CApplication->handleError(2, fgets(): supplied argument is not a valid strea


m resource, W:homeyii.testframeworkclicommandsWebAppCommand.php, 55, Array


 ([this] => WebAppCommand Object ([] => webapp,[] => CConsoleCommandRunner Objec


t ([commands] => Array ([message] => W:homeyii.testframeworkclicommandsMes


sageCommand.php,[shell] => W:homeyii.testframeworkclicommandsShellCommand.


php,[webapp] => W:homeyii.testframeworkclicommandsWebAppCommand.php),[] =>


 W:homeyii.testframeworkyiic,[] => ,[] => ),[] => ,[] => ),[args] => Array (


[0] => ..wwwtest),[path] => W:homeyii.testwwwtest,[dir] => W:homeyii.tes


twww))


#4  fgets(STDIN) called at [W:homeyii.testframeworkclicommandsWebAppComman


d.php:55]


#5  WebAppCommand->run(Array ([0] => ..wwwtest)) called at [W:homeyii.testf


rameworkconsoleCConsoleCommandRunner.php:62]


#6  CConsoleCommandRunner->run(Array ([0] => W:homeyii.testframeworkyiic,[1]


 => webapp,[2] => ..wwwtest)) called at [W:homeyii.testframeworkconsoleCC


onsoleApplication.php:88]


#7  CConsoleApplication->processRequest() called at [W:homeyii.testframework


baseCApplication.php:170]


#8  CApplication->run() called at [W:homeyii.testframeworkyiic.php:30]


#9  require_once(W:homeyii.testframeworkyiic.php) called at [W:homeyii.tes


tframeworkyiic:15]


Error in my_thread_global_end(): 1 threads didn't exit





W:homeyii.test>


Заранее благодарен за ответы.

Для работы утилиты yiic нужен правильно настроенный пхп, т.е. со всеми необходимыми модулями которые использует сам yii. Использовать пхп из денвера в командной строке помоему затруднительно, хотя могу ошибаться. имхо, для локальной разработки лучше использовать xampp.

C настройкой пхп у меня в принципе трудностей небыло. Тогда ещё один вопрос - какие библиотеки необходимо подключить, чтобы обеспечить работу yii?

в YiiRoot/requirements/ можно посмтотреть какие библиотеки нужны для работы и подключены ли они.

Подключил все библиотеки кроме пдо склайта и постгре и мемкача (весь вечер искал - не смог найти под висту…) Такая же беда.

Видимо пора съезжать с нее… У меня такое предчувствие, что это именно из-за ОС

Судя по всему в файлике yiic.bat не правильно прописан путь к php.

У меня прописано так:

if "%PHP_COMMAND%" == "" set PHP_COMMAND=Z:\usr\local\php5\php.exe

Где Z - буква монтируемого с денвером диска.

И все работает.

Нет, это другая проблема. Если бы было неправильно прописано, то был бы ответ - …/php.exe не является внутренней или внешней бла бла бла… Сейчас попробую с ХР запустить.

Для справки…

в Денвере файлов php.exe пять штук, которые лежат в папках:

  1. denwer\usr\bin

  2. denwer\usr\sbin

  3. denwer\usr\local\bin

  4. denwer\usr\local\sbin

  5. denwer\usr\local\php5

Заменил Z:\usr\local\php5\php.exe на Z:\usr\bin\php.exe (остальные просто лень было проверять)

и … о чудо - те же ошибки)

W:homeyiiwwwframework>yiic.bat webapp ./../test


PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5/extp


hp_soap.dll' - ═х эрщфхэ єърчрээ√щ ьюфєы№.


 in Unknown on line 0


X-Powered-By: PHP/5.2.4


Content-type: text/html





Create a Web application under 'W:homeyiiwwwtest'? [Yes|No] PHP Error[2]: fg


ets(): supplied argument is not a valid stream resource


in file W:homeyiiwwwframeworkclicommandsWebAppCommand.php at line 55


#0  CConsoleApplication->displayError(2, fgets(): supplied argument is not a val


id stream resource, W:homeyiiwwwframeworkclicommandsWebAppCommand.php, 55


) called at [W:homeyiiwwwframeworkbaseCErrorHandler.php:175]


#1  CErrorHandler->handleError(CErrorEvent Object ([code] => 2,[message] => fget


s(): supplied argument is not a valid stream resource,[file] => W:homeyiiwww


frameworkclicommandsWebAppCommand.php,[line] => 55,[sender] => CConsoleApplic


ation Object ([commandMap] => Array (),[] => W:homeyiiwwwframeworkclicomma


nds,[] => CConsoleCommandRunner Object ([commands] => Array ([message] => W:hom


eyiiwwwframeworkclicommandsMessageCommand.php,[shell] => W:homeyiiwwwf


rameworkclicommandsShellCommand.php,[webapp] => W:homeyiiwwwframeworkcli


commandsWebAppCommand.php),[] => W:homeyiiwwwframeworkyiic,[] => ),[name]


 => My Application,[charset] => UTF-8,[preload] => Array (),[sourceLanguage] =>


en_us,[] => ,[] => W:homeyiiwwwframeworkcli,[] => ,[] => ,[] => ,[] => ,[]


=> ,[] => Array ([errorHandler] => CErrorHandler Object ([maxSourceLines] => 25,


[adminInfo] => the webmaster,[discardOutput] => 1,[] => 1,[] => )),[] => Array (


[coreMessages] => Array ([class] => CPhpMessageSource,[language] => en_us,[baseP


ath] => W:homeyiiwwwframeworkmessages),[db] => Array ([class] => CDbConnect


ion),[messages] => Array ([class] => CPhpMessageSource),[securityManager] => Arr


ay ([class] => CSecurityManager),[statePersister] => Array ([class] => CStatePer


sister)),[] => ,[] => ,[] => ),[handled] => 1,[] => )) called at [W:homeyiiww


wframeworkbaseCErrorHandler.php:87]


#2  CErrorHandler->handle(CErrorEvent Object ([code] => 2,[message] => fgets():


supplied argument is not a valid stream resource,[file] => W:homeyiiwwwframe


workclicommandsWebAppCommand.php,[line] => 55,[sender] => CConsoleApplication


 Object ([commandMap] => Array (),[] => W:homeyiiwwwframeworkclicommands,[


] => CConsoleCommandRunner Object ([commands] => Array ([message] => W:homeyii


wwwframeworkclicommandsMessageCommand.php,[shell] => W:homeyiiwwwframew


orkclicommandsShellCommand.php,[webapp] => W:homeyiiwwwframeworkclicomm


andsWebAppCommand.php),[] => W:homeyiiwwwframeworkyiic,[] => ),[name] => M


y Application,[charset] => UTF-8,[preload] => Array (),[sourceLanguage] => en_us


,[] => ,[] => W:homeyiiwwwframeworkcli,[] => ,[] => ,[] => ,[] => ,[] => ,[


] => Array ([errorHandler] => CErrorHandler Object ([maxSourceLines] => 25,[admi


nInfo] => the webmaster,[discardOutput] => 1,[] => 1,[] => )),[] => Array ([core


Messages] => Array ([class] => CPhpMessageSource,[language] => en_us,[basePath]


=> W:homeyiiwwwframeworkmessages),[db] => Array ([class] => CDbConnection),


[messages] => Array ([class] => CPhpMessageSource),[securityManager] => Array ([


class] => CSecurityManager),[statePersister] => Array ([class] => CStatePersiste


r)),[] => ,[] => ,[] => ),[handled] => 1,[] => )) called at [W:homeyiiwwwfra


meworkbaseCApplication.php:613]


#3  CApplication->handleError(2, fgets(): supplied argument is not a valid strea


m resource, W:homeyiiwwwframeworkclicommandsWebAppCommand.php, 55, Array


([this] => WebAppCommand Object ([] => webapp,[] => CConsoleCommandRunner Object


 ([commands] => Array ([message] => W:homeyiiwwwframeworkclicommandsMessa


geCommand.php,[shell] => W:homeyiiwwwframeworkclicommandsShellCommand.php


,[webapp] => W:homeyiiwwwframeworkclicommandsWebAppCommand.php),[] => W:


homeyiiwwwframeworkyiic,[] => ),[] => ),[args] => Array ([0] => ./../test),[


path] => W:homeyiiwwwtest,[dir] => W:homeyiiwww))


#4  fgets(STDIN) called at [W:homeyiiwwwframeworkclicommandsWebAppCommand


.php:55]


#5  WebAppCommand->run(Array ([0] => ./../test)) called at [W:homeyiiwwwfram


eworkconsoleCConsoleCommandRunner.php:62]


#6  CConsoleCommandRunner->run(Array ([0] => W:homeyiiwwwframeworkyiic,[1]


=> webapp,[2] => ./../test)) called at [W:homeyiiwwwframeworkconsoleCConso


leApplication.php:88]


#7  CConsoleApplication->processRequest() called at [W:homeyiiwwwframeworkb


aseCApplication.php:162]


#8  CApplication->run() called at [W:homeyiiwwwframeworkyiic.php:30]


#9  require_once(W:homeyiiwwwframeworkyiic.php) called at [W:homeyiiwww


frameworkyiic:15]


Поменял назад:

W:homeyiiwwwframework>yiic.bat webapp ./../test


PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5/extp


hp_soap.dll' - ═х эрщфхэ єърчрээ√щ ьюфєы№.


 in Unknown on line 0


Create a Web application under 'W:homeyiiwwwtest'? [Yes|No] y


      mkdir W:/home/yii/www/test


      mkdir W:/home/yii/www/test/assets


   generate assets/.yii


      mkdir W:/home/yii/www/test/css


   generate css/bg.gif


   generate css/form.css


   generate css/main.css


      mkdir W:/home/yii/www/test/images


   generate images/.yii


      mkdir W:/home/yii/www/test/protected


      mkdir W:/home/yii/www/test/protected/commands


      mkdir W:/home/yii/www/test/protected/commands/shell


   generate protected/commands/shell/.yii


   generate protected/commands/.yii


      mkdir W:/home/yii/www/test/protected/components


      mkdir W:/home/yii/www/test/protected/components/views


   generate protected/components/views/mainMenu.php


   generate protected/components/MainMenu.php


   generate protected/components/UserIdentity.php


      mkdir W:/home/yii/www/test/protected/config


   generate protected/config/console.php


   generate protected/config/main.php


      mkdir W:/home/yii/www/test/protected/controllers


   generate protected/controllers/SiteController.php


      mkdir W:/home/yii/www/test/protected/extensions


   generate protected/extensions/.yii


      mkdir W:/home/yii/www/test/protected/messages


   generate protected/messages/.yii


      mkdir W:/home/yii/www/test/protected/models


   generate protected/models/ContactForm.php


   generate protected/models/LoginForm.php


      mkdir W:/home/yii/www/test/protected/runtime


   generate protected/runtime/.yii


      mkdir W:/home/yii/www/test/protected/views


      mkdir W:/home/yii/www/test/protected/views/layouts


   generate protected/views/layouts/main.php


      mkdir W:/home/yii/www/test/protected/views/site


   generate protected/views/site/contact.php


   generate protected/views/site/index.php


   generate protected/views/site/login.php


      mkdir W:/home/yii/www/test/protected/views/system


   generate protected/views/system/.yii


   generate protected/.htaccess


   generate protected/yiic


   generate protected/yiic.bat


      mkdir W:/home/yii/www/test/themes


      mkdir W:/home/yii/www/test/themes/classic


      mkdir W:/home/yii/www/test/themes/classic/views


      mkdir W:/home/yii/www/test/themes/classic/views/layouts


   generate themes/classic/views/layouts/.yii


      mkdir W:/home/yii/www/test/themes/classic/views/site


   generate themes/classic/views/site/.yii


      mkdir W:/home/yii/www/test/themes/classic/views/system


   generate themes/classic/views/system/.yii


   generate themes/classic/views/.htaccess


   generate themes/classic/.yii


   generate themes/.yii


   generate index.php





Your application has been created successfully under W:homeyiiwwwtest.





W:homeyiiwwwframework>

Пропиши нормальный php обработчиком и все должно работать)

Единственное, soap мне вроде как не нужен.:)

Ура!!! Спасибо огромное :)