18 July 2013

Umbraco: Notes

Install

I had a few niggles with Umbraco CMS Install.

Using a separate database server

    • Don't use the WebInstaller. For some reason although there are options to set the remote db server it fails to connect. Follow the manual install process instead.
    • Change the permissions on the web.config to allow writing by the install process otherwise it will get stuck on "5% connecting to the database".

Multiple Websites

  • Domain 'mydomain.com' has already been assigned: 
    • Original site exists: Manage the Hostnames of the site it is assigned to and remove it
    • Original site deleted: Undelete it then manage hostnames
    • Original site deleted from Recycle bin: re-cycle app pool

Folder Permissions

I had some issues with permissions on folders/files.
To check permissions you can apparently add the following to the Umbraco site's URL:
/install/default.aspx?installStep=validatePermissions
Although it didn't work for me.
There are command line scripts to check/correc them e.g.:
http://our.umbraco.org/wiki/install-and-setup/set-umbraco-folder-permissions-from-command-line

For a Win2008R2 system with IIS7 save the following to a bat file and run in the website folder, replacing [ApplicationPoolName]:
REM Following line in original script incorrectly sets all child folder permissions
REM icacls . /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls app_code /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)RX
icacls app_browsers /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)RX
icacls app_data /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls bin /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)R
icacls config /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls css /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls data /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls masterpages /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls media /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls python /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls scripts /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls [ApplicationPoolName] /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls usercontrols /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)R
icacls xslt /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls views /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls web.config /grant "IIS APPPOOL\[ApplicationPoolName]":(OI)(CI)M
icacls web.config /grant "IIS APPPOOL\[ApplicationPoolName]":M
REM If you have installed the Robots.txt editor package you need the following line too
REM icacls robots.txt /grant "IIS APPPOOL\[ApplicationPoolName]":M

No comments:

Post a Comment