x First time here? Check out the FAQ

Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!

  • Avatar5posts25karma

    Installing Umbraco on shared hosting or Medium trust

    Jose started this topic July 7, 2010 @ 01:05

    Hello,

    I would like to know as many other people what considerations are necesary to deploy a website in a shared or medium trust hosting using Umbraco 4.5 in the features shows medium trust support, but there is any documentation on how to do it, maybe someone of the great umbraco stuff could give us some help with this, at least what is necesary to do to make Umbraco work.

    I found a hacked umbraco 4.0.3 version for medium trust, but with the new version that supports medium trust I think could be better to use the new version.

    Thank you.


  • Avatar169posts643karma
    Comment with ID: 39541
    Adriano Fabri posted this reply July 17, 2010 @ 02:48

    Hi,

    I'm also interested to use umbraco 4.5 in a medium trust hosting but I didn't found any documentation that explain how to configure it for medium trust.

    Thank you


  • Jose posted this reply July 17, 2010 @ 06:31

    Hi,

    I have installed umbraco on a shared server succesfully after weeks of trying and trying, and constant comunication with my web hosting company well here is how I do it.

    1. Contacted to web host and ask for Full Control permissions for ASP application to the files and folders of umbraco http://umbraco.org/documentation/books/important-files-and-folder-structure/permissions.

    2. At first I modified the web.config this lines <add key="umbracoUseMediumTrust" value="true" />, <trust level="Medium" originUrl=".*" />  but later it was not necesary.
    3. The installation was fine, but some problems occurs when I tried to create new content (permission errors even when the permissions were setup) .
    4. After searching in the forums I found to change the <!-- <trust level="Medium" originUrl=".*" /> --> for <trust level="Full" /> this will work if you have full control permission on the files of umbraco especially on App_Data, App_Browsers

    I hope this will help you.

     Regards,

    José


  • Sebastiaan Janssen posted this reply July 17, 2010 @ 09:02

    Umbraco 4.5 should be able to support medium trust out of the box, earlier version just don't. And yes, you have to make I think two changes in the web.config:

    <add key="umbracoUseMediumTrust" value="false" />

    Should become "true".

    <!-- <trust level="Medium" originUrl=".*" />-->

    Should be uncommented.


  • Thiago Passos posted this reply September 5, 2010 @ 10:32

    Hi,

    Are there more information about how to install Umbraco 4.5.* with Medium Trust?

    I recently got a cloud site on Rackspace. They don't allow applications to run using Full Trust environment. They even have a web page explaining how their Medium Trust works (http://cloudsites.rackspacecloud.com/index.php/Overview_of_modified_Medium_Trust). On this page they say that Umbraco doesn't work there.

    I believe that this information was put there before the version 4.5. Can someone help me to know if it's possible to install Umbraco there?

    I have tried to change the Web.Config with the information provided by Sebastiaan on his post and I still can't install Umbraco. The error I'm getting is:

    Server Error in '/' Application.
    The application attempted to perform an operation not allowed by the security policy. &nbsp;To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

    Rackspace seems to have a good cloud service for a affordable price. It'd a shame if we can't install Umbraco on it, though.

    Any help will be welcome! Cheers!


  • Sebastiaan Janssen posted this reply September 5, 2010 @ 10:37

    A modified version of 4.0.3. Seemed to work a few months ago and these changes have been rolled into the 4.5.x branche. Have a look at this topic for a detailed explanation of how to get it to work.


  • Thiago Passos posted this reply September 5, 2010 @ 11:43

    Hi Sebastiaan, thanks for the quick reply!

    The Benjamin's website is not working and I couldn't get his modified version. As I was reading in some topics, I believe that Rackspace has changed its settings since 5 months ago when the topic you showed me has raised.

    When you say that the changes have been rolled to the 4.5 version you meant that I could use the 4.5.2 and I wouldn't need to use the Benjamin's one. Is that right?

    I'm still getting the error 'The application attemped to perform an operation nor allowed....' Not good.

    Thanks!


  • Sebastiaan Janssen posted this reply September 5, 2010 @ 11:46

    Exactly, you won't need the modified version any more. Umbraco 4.5 runs in medium trust. 

    As I'm reading it, the Rackspace settings did change 5 months ago and this is how it was solved.. I don't know if they've changed their settings again after that..

    Did you follow all of the instructions? Maybe you should try asking in the other thread as I don't have any experience with Rackspace..


  • Avatar61posts116karma
    Comment with ID: 45923
    Ricky Beard posted this reply September 6, 2010 @ 01:29

    I just moved several sites to medium trust on Rackspace Cloud Sites and I documented the process.

    http://www.rickybeard.com/blog/2010/9/2/running-umbraco-on-rackspace-cloud-sites


  • Avatar169posts643karma
    Comment with ID: 45951
    Adriano Fabri posted this reply September 6, 2010 @ 11:28

    There are two version you can use in those providers who use only Medium Trust configuration policy:

    Umbraco v4.0.3 and Umbraco v4.5

    I tried all two versions and function properly.

     


  • Thiago Passos posted this reply September 8, 2010 @ 01:51

    Hi Guys! Problem solved installing Umbraco on Rackspace Cloud sites using Medium Trust!

    Only Medium Trust Application are allowed over there and the Umbraco 5.4.2 does install properly. The necessary changes on the Web.Config file are:

    1) UmbracoUseMediumTrust set to 'true'

    <add key="umbracoUseMediumTrust" value="true" />

    2) Do not uncomment the line below. Rackspace does not allow application level overwrites and it will cause an exception.

    <!-- <trust level="Medium" originUrl=".*" />-->

    3) Add impersonate to the <system.web> section in order to have write permission. Check this link for more information on that: http://cloudsites.rackspacecloud.com/index.php/How_do_I_add_impersonation_to_my_ASP.NET_site%3F

    <identity impersonate="true" userName="dfw\YOUR_FTP_USERNAME" password="YOUR_FTP_PASSWORD" /> 

    That's it. The install process should run smoothly.

    The issue I was having was with write permissions using impersonate and a client FTP account. It wasn't creating folders (necessary when uploading media and others). It did work when using my principal FTP account but using a client FTP account folders were not allowed to be created. The Rackspace's Windows team has solved this issue.

    Rackspace has a web page where they say that Umbraco does not work on their server. This is out of date! I think someone from the Umbraco Admin team should contact them to update it.

    http://cloudsites.rackspacecloud.com/index.php/Overview_of_modified_Medium_Trust 

    Thanks to everyone for helping me!


Pages:

Please login or Sign up To post replies