Installing mojoPortal on godaddy.com

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/2/2009 4:15:08 PM
Gravatar
Total Posts 25

Installing mojoPortal on godaddy.com

I thought that someone else may find the following 'how to' useful for trouble shooting Godaddy installation issues.

The following article walks through setting up mojoPortal on godaddy.com and overcoming the medium trust issues and shows how to run multiple sites as either folder or host based.


NOTE: I have decided on using MySql because godaddy puts a limit of 200mb on a MsSql database. On the other hand godaddy only limits MySql sizes by available disk space. I am installing on Windows IIS 7 so I can run Php 5.0 if needed but  IIS 6 should be the same. I want to say that I am by no means a mojoPortal guru so if any one sees any error in the following article, please send me and email so I can update it to help others.
 

Getting Started:

  1. Purchase a godaddy hosting account. Does not matter which one you choose.
  2. Purchase or transfer a domain name to use with hosting.
  3. Login to you godaddy hosting manager and setup your hosting account if you have not done so.
  4. Using tortoise svn, download the lastest build to some folder on your hard drive.
     * SVN I used : https://forgesvn1.novell.com/svn/mojoportal/trunk
     * Local folder I used : c:/inetpub/wwwroot/mojoPortal
  5. Open the solution called: mojoportal-complete.sln for VS 2008, or mojoportal-complete-vs2005.sln for VS 2005.


    -----See Joe's Post Below For A Better Way Of Doing This---------------------------
  6. Compile the project. This will create a bin folder in the Web project and its this Web folder that we will upload to godaddy. 
  7. The MySql dataadapter is available from mojoPortal and is called 'mojoportal-2-2-8-2-c-mysqldatalayer.zip'.
     * Download this and extract the contents to your Web/bin folder of mojo.  -> c:/inetpub/wwwroot/mojoPortal/Web/bin. This wires mojo to the MySql datalayer. for other DB's you will want to copy the correct adapter to this bin folder.
     * Next copy all the output dlls from mojoPortal.Data.MySql/bin to the Web/bin folder.
  8. Next step you will need to change the current web.config file names. In the mojoPortal/Web folder rename web.config to web.fulltrust.config and rename the file that says web.meduimstrust.config to web.config. This means we are using medium trust settings that mojoPortal already has setup for us.
  9. Now we are ready to upload the Web folder to our Godaddy hosting folder. Zip the Web folder into a single .zip file and use your FTP program of choice to upload the .zip file to your root directory that you wish to use on godaddy. It is much faster to upload a single zip than to do it file by file. Godaddy has a file extraction tool built into your hosting account which can be used to unzip the file in seconds.
    ------------------------------------------------------------------------------------------

  10. We now assume your web.zip file is sitting in your godaddy hosted folder.
  11. Login to you hosting account with godaddy and open the hosting manager for your specific hosted account. 
  12. Click on the Content->File Manager drop down menu item. This will open the file manger to your root directory. Locate the uploaded .zip file and select the check box beside it. Then in the top tray click "unarchived" this will unzip the contents to the folder you choose to install mojo in.
  13. With the file manager open select the following folders and change their permissions to Read and Write.
  14. ClientScript, Data, and Setup folders need read write permissions. and all sub folders should inherit from these folders. These permissions will allow mojo to create folders and files as needed when you create new site or content.
  15. Next create a MySql database from by selecting the mysql database icon from godaddy's hosting manager. Create the MySql DB using MySql version 5.0 and give it a user name and password. Once the creation is complete you can grab the connection string by clicking the the edit button under Actions from you list on MySql databases. Just click edit under the actions column of you avaiable databases, then Configuration in the tool bar that pops up. Copy the connection string from the last entry.
    Example: Server=SomeDB.db.5555555.hostedresource.com; Port=5555; Database=SomeDB; Uid=UserName; Pwd='your password';
  16. Next we need to change the web.config MySqlConnectionString = to the connection string you just got from godaddy. I change my local file then uploaded the changed web.config to godaddy. 
  17. Set the following in the web.config file
    1.) <add key="MySqlConnectionString" value='your connextion string'/>
    2.) <add key="UseFoldersInsteadOfHostnamesForMultipleSites" value="false" />
    I am using host names but you can easily use folder names as long as the web site is in the root folder and by setting the value to false. SMTP Mail setup:  
    <add key="DisableDotNetOpenMail" value="false" />
    <add key="SMTPServer" value="relay-hosting.secureserver.net" />
    <add key="SMTPRequiresAuthentication" value="false" />
    <add key="SMTPUseSsl" value="false" />
    <add key="SMTPPort" value="25" />
    <add key="SMTPUser" value="" />
    <add key="SMTPPassword" value="" />
    <add key="SMTPTimeoutInMilliseconds" value="15000" />
  18. Now we can launch mojoportal for the first time by running http://yourdomain/setup/ in the browser.
  19. You will be prompted to add the following to the web.config: <add key="Lucene.Net.lockdir" value="D:\Hosting\3993208\html\.....\index" />
  20. Once the site setup wizard is finished you should rename or remove the Setup/Default.aspx page so users can't run it again and possibly kill your hard work. On the server you will see a directory called Setup/ with a file named default.aspx. I suggest you just delete it.

 

Hope this helps. I only tested that the site was up and that I could login. If I come across any errors I will try to update this document as quickly as possible. Also if I missed anything above please let me know so I can make the changes.

 

Happy, mojoPortal installs to you.

Cheers,
Joseph Rosson
www.josephrosson.com

 

3/3/2009 5:37:05 AM
Gravatar
Total Posts 18439

Re: Installing mojoPortal on godaddy.com

Hi Joseph,

Your instructions are for building the source code which is good for developers, it can also be done with the release files without having to compile anything.

When compiling the source code yourself, the only thing I would do different is I would not just zip up the web folder, it has lots of C# source code and there is no need or benefit to deploying C# source code to the production site (its already compiled into dlls in the /bin). You can easily package a build without the source code using the free UnLeashIt tool as discussed in this article: http://www.mojoportal.com/deploymentfromwindows.aspx

So the idea is to use UnLeashIt to pre-package into a local folder without the C# source code, then you can zip that folder and deploy.

Best,

Joe 

3/17/2009 1:16:44 PM
Gravatar
Total Posts 3

Re: Installing mojoPortal on godaddy.com

After many restless nights I discovered along with Joe Rosson, that the App_Data folder also needs to have R/W permissions, and all subfolders.

I hope this helps someone. I discovered this after enabling the Image Gallery Module in Mojo.

3/24/2009 6:09:14 PM
Gravatar
Total Posts 1

Re: Installing mojoPortal on godaddy.com

Hey Joe,

Double check Godaddy MySQL size limits.

It seems they changed the database limits without notifying customers.

http://help.godaddy.com/topic/67/article/1482

3/25/2009 9:15:10 AM
Gravatar
Total Posts 25

Re: Installing mojoPortal on godaddy.com

Well for me that's the final straw. The funny thing is that the link you posted was last updated 1 day after I posted this forum entry. It's almost like they read the forum then made the change. I am an existing customer for 3 years and when I signed up it was unlimited. So if they are the type of company that will pull the rug out from under clients, then I see no future with me and Godaddy.com.

 

Thanks for the head's up Willy,

Joe

5/24/2009 7:27:18 AM
Gravatar
Total Posts 29

Re: Installing mojoPortal on godaddy.com

Thanks guys, these posts just saved my life (ok thats an exaggeration) now I need to figure how to get all the content i meticulously did locally, to the host.

9/29/2010 11:06:49 AM
Gravatar
Total Posts 13

Re: Installing mojoPortal on godaddy.com

Dear members,

This is a good resource. along with system logs feature, http://www.mojoportal.com/mediumtrust.aspx and the common collation problem resolutions from the forum, it helped me install without much challenge on godaddy.

However, i have two installation of the same web application & sql 2005 db, one on private host (with full trust, mojoportal version - 2.3.4.5 MSSQL) and the other one on godaddy (medium trust and latest version of mojoportal, mojoPortal 2.3.5.3 9/20/2010 mssql) and currently experiencing the following errors and css/skin problem.

1. System.Security.Permissions.SecurityPermission error - i have changed the pool to classic and resetted, but still have the problem, such as when accessing system info as follow:

2010-09-29 08:58:30,217 ERROR mojoPortal.Web.Global - 195.225.63.226-en-GB - /Admin/ServerInformation.aspx
System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at System.Runtime.InteropServices.RuntimeEnvironment.GetCORVersion(StringBuilder sb, Int32 BufferLength, Int32& retLength)
   at System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion()
   at mojoPortal.Web.AdminUI.ServerInformation.PopulateControls()
   at mojoPortal.Web.AdminUI.ServerInformation.Page_Load(Object sender, EventArgs e)
   at System.Web.UI.Control.OnLoad(EventArgs e)
   at mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
   at System.Web.UI.Page.ProcessRequest()
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
   at System.Web.UI.Page.ProcessRequest(HttpContext context)
   at ASP.admin_serverinformation_aspx.ProcessRequest(HttpContext context)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
The action that failed was:
Demand
The type of the first permission that failed was:
System.Security.Permissions.SecurityPermission
The Zone of the assembly that failed was:
MyComputer

2. The CSS/skin appear different (the one on medium trust loses some background styles), couldnt get any from systems log

I would appreciate any assistance in resolving these problems and any thoughts.

Working environments (the one with problem)

  • Godaddy shared windows hosting
  • IIS: 7.0, ASP.Net Runtime Version: 2.0/3.0/3.5 
  • IIFmojoPortal 2.3.5.3 9/20/2010
  • MS SQL 2005 (9.00.4053.00, SP3, Standard Edition (64-bit)

Thanks,

9/29/2010 1:28:58 PM
Gravatar
Total Posts 18439

Re: Installing mojoPortal on godaddy.com

Hi,

I confirm this as a bug, I am able to reproduce the error on my machine using medium trust.

Apparently this line of code causes the error under medium trust:

litDotNetVersion.Text = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();

I will have to wrap a try catch around that for the next version. In the meantime it just means you can't use that system information page, it will not affect anything else.

Best,

Joe

9/30/2010 3:41:40 AM
Gravatar
Total Posts 13

Re: Installing mojoPortal on godaddy.com

Thanks so much Joe,

Can you please advice on the second issue, where i am not sure if it is a skin or basic scripting problem?

The sites are as follow:

1. www.acbf-pact.net (live (test)- running from dedicated server with full trust, mojo version 2.3.4.5. - tempo until the godaddy issue is resolved.)

2. www.acbfpact.org (test - running from godaddy with medium trust, mojo version 2.3.5.3)

both sites uses same web files, db and skin.

Issue in brief:

the styles on the www.acbf-pact.net is different (missing parts) - eg. a. on the right side of the home page where we have latest news, the background color and forecolor is missing. b. the H1 headings looks indented pushed to the right across the site.

Attempts:

1. initially both were on same version 2.3.4.5 and the problem was there. so i upgraded mojoportal for the www.acbfpact.org to 2.3.5.3

2. re transfer the skin files, reset the application pool, i ve also changed it from integrated to classic

3. checked file permissions

Last error message from system log is:

2010-09-29 14:27:33,489 INFO mojoPortal.Web.Global - Global.asax.cs Application_End
2010-09-30 01:16:33,040 INFO mojoPortal.Web.Global - Application Started.
2010-09-30 01:16:33,071 ERROR mojoPortal.Web.Global - Application_Start Could not register VirtualPathProvider, this error is expected when running in Medium trust or lower
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
   at mojoPortal.Web.Global.RegisterVirtualPathProvider()
   at mojoPortal.Web.Global.Application_Start(Object sender, EventArgs e)
The action that failed was:
InheritanceDemand
The type of the first permission that failed was:
System.Web.AspNetHostingPermission
The Zone of the assembly that failed was:
MyComputer
 

Regards,

Fasil

9/30/2010 7:20:57 AM
Gravatar
Total Posts 18439

Re: Installing mojoPortal on godaddy.com

Hi Fasil,

That error is expected to be logged when running in medium trust under .NET 3.5.

What it means is that we could not register our VirtualPathProvider for themes. What our VirtualPathProvider allows is to store the theme.skin file in the skin folder instead of the default location under /App_Themes. So the problem under .NET 3.5 medium trust is that it will always use the theme.skin file from /App_Themes/default. You can solve the problem with your skin by copying the theme.skin file from your skin folder into the /App_Themes/default folder. This means also that if you use more than one skin, they all will use the same theme.skin file from the App_Themes/default folder and this is a problem if they need different settings for theme.skin.  This limitation only exists in .NET 3.5 medium trust, under .NET 4 VirtualPathProviders work even in medium trust.

Hope it helps,

Joe

9/30/2010 11:02:53 AM
Gravatar
Total Posts 13

Re: Installing mojoPortal on godaddy.com

Thanks Joe,

It resolved the issue. Thanks so much. I will look into moving into .net4 lang before hosting multisites.

Regards,

Fasil

You must sign in to post in the forums. This thread is closed to new posts.