Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Smarty 3.1.6 with IIS 7.5 & 8.0 for Windows Server 2008R

 
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
marchyang
Smarty n00b


Joined: 21 Jan 2014
Posts: 3

PostPosted: Tue Jan 21, 2014 4:05 am    Post subject: Smarty 3.1.6 with IIS 7.5 & 8.0 for Windows Server 2008R Reply with quote

Can anyone tell me how to solve this problem ?
Fatal error: Uncaught --> Smarty: unable to write file .\templates_c\wrt52dde9fe9c8358.95452229 <-- thrown in C:\inetpub\wwwroot\libs\sysplugins\smarty_internal_write_file.php on line 44
I have tried to install Smarty on 2008R2 & 2012R2 with PHP 5.5 & IIS 7.5 & 8.0 via Web Platform Installer 4.6.2 from Microsoft. I am sure the PHP is workable by phpinfo() displaying information of PHP 5.5.
The message come from the download of smarty 3.1.6's lib & demo folder.
I extract it and copy & past to the c:\inetpub\wwwroot, the problem is even I uncheck the read-only for the folder template_c and make it write permission for IIS_IUSRS, both of them are failure to solve the problem.

Any help is appreciate !!
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7286
Location: Lincoln Nebraska, USA

PostPosted: Tue Jan 21, 2014 2:22 pm    Post subject: Reply with quote

Search the forum for windows and write permissions, windows can be stubborn. Here is a start:

http://www.smarty.net/forums/viewtopic.php?t=13821
Back to top
View user's profile Send private message Visit poster's website
marchyang
Smarty n00b


Joined: 21 Jan 2014
Posts: 3

PostPosted: Wed Jan 22, 2014 9:37 am    Post subject: I fixed this problem finally... Reply with quote

Thanks everybody.
I studied the following url
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q271071
and check with Windows Server 2012, I wonder what's difference between IIS_USRS and IUSR_<Machine name>, and the answer is that I granted permission to IIS_USRS was wrong, but should I grant write permission to IUSR who is new anonymous account created in Windows Server 2012 and restart IIS. Then I browse the http://localhost/demo/index.php it works.
I don't understand the reason why, but maybe I think when users browser the page, then IIS needs write permission for anonymous user but not IIS_IUSRS itself to write files during the session. [/url]
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7286
Location: Lincoln Nebraska, USA

PostPosted: Wed Jan 22, 2014 6:07 pm    Post subject: Reply with quote

Thanks for the info, I'm making this one sticky.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP