Skip to content
This repository
Browse code

Update the IIS7 folder permission configuration docs.

  • Loading branch information...
commit 37e8b097397d2c7046c29537c288ffce2d7f60a3 1 parent 39c6606
Mateusz U authored July 26, 2012
23  docs/en/installation/windows-manual-iis-7.md
Source Rendered
@@ -14,7 +14,7 @@ These versions of Windows will **NOT** work with this guide:
14 14
 
15 15
 **IMPORTANT**: Windows Server 2003 users should [follow this guide](http://doc.silverstripe.org/installation-on-windows-server-2003-iis-6) to installing SilverStripe.
16 16
 
17  
-The goal is to get a good working web server platform so that one or more SilverStripe projects can be easily deployed onto the server using SVN.
  17
+The goal is to get a good working web server platform so that one or more SilverStripe projects can be easily deployed onto the server using SVN/GIT.
18 18
 
19 19
 We'll also install SQL Server 2008 R2, and support for connecting to it in PHP.
20 20
 
@@ -194,6 +194,17 @@ Make sure that the SMTP and smtp_port are set to your mail server's hostname and
194 194
 
195 195
 That should do it for the PHP configuration.
196 196
 
  197
+## Folder permissions for PHP
  198
+
  199
+Now we need to set up folder permissions for PHP. Open the php.ini and find the paths for sessions and file uploads. They will look like this:
  200
+
  201
+	upload_tmp_dir="C:\Windows\Temp"
  202
+	session.save_path="C:\Windows\Temp"
  203
+
  204
+You will need to give the IIS permission to write to these folders. This can be done by giving **Modify** permission to **IIS** user and **IIS_IUSRS** group.
  205
+
  206
+Other important folders to give these permissions to are `assets` and `silverstripe-cache` (if used) in your web root.
  207
+
197 208
 ## Test PHP installation
198 209
 
199 210
 Now that we've got PHP configured how we want it, let's test that PHP is working correctly.
@@ -247,6 +258,8 @@ First of all, install a copy of TortoiseSVN and then follow these steps:
247 258
   * Click Yes when warned of creating a new directory
248 259
   * Drag the newly created folder to **C:\inetpub\wwwroot** (you'll be asked for admin permissions to do this)
249 260
 
  261
+After gettng the code installed, make sure you set the folder permissions properly (see *Folder permissions for PHP* above).
  262
+
250 263
 ## Install the SilverStripe SQL Server module ("mssql")
251 264
 
252 265
   * In Windows Explorer, browse to your desktop
@@ -392,4 +405,10 @@ You can also [install wincache](http://learn.iis.net/page.aspx/678/use-the-windo
392 405
 
393 406
 You can also try installing and enabling static content compression for IIS on live sites. Do this in IIS Manager > Compression.
394 407
 
395  
-Doing all of the above should provide a significant performance boost to your site.
  408
+Doing all of the above should provide a significant performance boost to your site.
  409
+
  410
+**Q: I can upload files, but I get server error when downloading them.**
  411
+
  412
+**Q: I get a lot of stale session files - garbage collector seems not running.**
  413
+
  414
+**A:** This is because of the permissions being incorrectly configured on the temporary upload or session storage folders that the PHP uses. See *Folder permissions for PHP* section for how to configure this correctly.

0 notes on commit 37e8b09

Please sign in to comment.
Something went wrong with that request. Please try again.