Can't get CakePHP to work on IIS7/Vista Home Premium?
CakePHP must have full permissions on /app/tmp. This is done with the IIS Guest Account which isn’t added by default in the Security tab. To enable access for the IIS Guest Account, do the following:
- Right-click on /app/tmp
- Select Properties and then the Security tab
- Click Edit and then Add in the Permissions for tmp dialog
- In the text box, enter IUSR and click OK
- Now select IUSR in the list and check the Full control check box
- Click OK to return to the Properties dialog
- Click Advanced
- Select IUSR in the list and click Edit
- Check the Replace all existing inheritable permissions on all descendants with inheritable permissions from this object box and click OK in all dialogs
You shouldn’t get any permission errors now, but I did get one about Cake being unable to write session data. To fix this, I opened core.php in my PHP editor, located the following line:
Configure::write(‘Session.save’, ‘php’);
and changed it to
Configure::write(‘Session.save’, ‘cake’);
Enjoy!