jasonhinkle / phreeze

Phreeze Framework for PHP
http://phreeze.com/
GNU Lesser General Public License v2.1
377 stars 166 forks source link

Windows 7 & IIS #134

Open kaalki opened 10 years ago

kaalki commented 10 years ago

I keep getting error on attempt to build ...

unable to write file C:\inetpub\wwwroot\phreeze\builder/temp\445a68e695a7e5eb9b5b89f11fdfa4801cbd42ff.file.DefaultController.php.tpl.php

... please advise. Thanks.

jasonhinkle commented 10 years ago

This is a permission error - you just need to allow write permission to the temp folder so that it can write cache files. I've tested Phreeze on Win 7 + IIS and it works fine so long as you can configure the rewrite rules - instructions to do that are here http://phreeze.com/phreeze/documentation/serverconfig.php

kaalki commented 10 years ago

This is also tres"strange" ... I was just thinking about Phreeze on my way in to work this morning!!! Will check those instructions. Thanks and Happy New Year.


From: jasonhinkle notifications@github.com To: jasonhinkle/phreeze phreeze@noreply.github.com Cc: kaalki kalki@bellsouth.net Sent: Monday, January 6, 2014 12:32 AM Subject: Re: [phreeze] Windows 7 & IIS (#134)

This is a permission error - you just need to allow write permission to the temp folder so that it can write cache files. I've tested Phreeze on Win 7 + IIS and it works fine so long as you can configure the rewrite rules - instructions to do that are here http://phreeze.com/phreeze/documentation/serverconfig.php — Reply to this email directly or view it on GitHub.

xtrasmal commented 10 years ago

Yeah happy new year Jason!

kaalki commented 10 years ago

Jason, Here$B!G(Bs an error msg + stack trace from my recent attempt to build with Phreeze. Any idea what$B!G(Bs happening? Thanks in advance for your reply $B!D(B

unable to write file C:\inetpub\wwwroot\phreeze\builder/temp\445a68e695a7e5eb9b5b89f11fdfa4801cbd42ff.file.DefaultController.php.tpl.php

0 C:\inetpub\wwwroot\phreeze\libs\smarty\sysplugins\smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('C:\inetpub\wwwr...', '<?php /* Smarty...', Object(Smarty))

1 C:\inetpub\wwwroot\phreeze\libs\smarty\sysplugins\smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()

2 C:\inetpub\wwwroot\phreeze\builder\libs\Controller\GeneratorController.php(200): Smarty_Internal_TemplateBase->fetch('phreeze.backbon...')

3 [internal function]: GeneratorController->Generate()

4 C:\inetpub\wwwroot\phreeze\libs\verysimple\Phreeze\Dispatcher.php(138): call_user_func(Array)

5 C:\inetpub\wwwroot\phreeze\builder\index.php(23): Dispatcher::Dispatch(Object(Phreezer), Object(SavantRenderEngine), '', NULL, Object(GenericRouter))

6 {main}


Dr. Mikal Keenanhttp://home.sprintmail.com/~kalki Ph.D. Computer & Information Sciences M.S. Behavioral Medicine System (LMS) Admin Academic Technology $B!|(B CTL 241A 205.975.6545 Office 205.332.7163 Cell [Description: Description: cid:image004.png@01CC7E84.261BCA00]

jasonhinkle commented 10 years ago

happy new year xtrasmal!

kaalki - the folder C:\inetpub\wwwroot\phreeze\builder/temp\ doesn't appear to be writable. That's a server permission error. Windows unfortunately has OS level permissions and then web server level permissions so they both need to be set to allow the web server account (something like IIS_IUSRS or IUSR) to have write permission.

LazyLama commented 7 years ago

Hi Jason, Thanks for the post that fixed my perms issue.