Installing with mono and Apache

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.
7/31/2008 3:08:34 AM
Gravatar
Total Posts 3

Installing with mono and Apache

Hello all,

I had a very simple mojoPortal setup running on a SUSE box with Apache/mod-mono for about a year. (This was mojoportal 1.0.5 at the time). Now I have redone the pages, took the current mojoPortal version (2.2.5.8) and even got a custom module running. All works fine using mono and xsp2 from the command line.

However, trying to get things to run on the target server (openSUSE 11, mono 1.9.1 as it comes out of the box) has given me a hard time so far. After some struggling, I have gotten past the Setup page (file system and database connection/permission already passed). Now it throws an exception trying to access a page:

Server Error in '/download' Application
Invalid parameter

Description: HTTP 500. Error processing request.

Stack Trace:

System.IO.IOException: Invalid parameter
at System.IO.File.SetLastWriteTime (System.String path, DateTime last_write_time) [0x00000]
at System.IO.File.SetLastWriteTimeUtc (System.String path, DateTime last_write_time) [0x00000]
at mojoPortal.Business.WebHelpers.CacheHelper.TouchCacheFile (System.String pathToCacheFile) [0x00000]
at mojoPortal.Business.WebHelpers.CacheHelper.TouchMenuCacheDependencyFile () [0x00000]
at mojoPortal.Business.WebHelpers.CacheHelper.GetMenuPagesFromCache () [0x00000]
at mojoPortal.Business.WebHelpers.CacheHelper.GetMenuPagesFromContext () [0x00000]
at mojoPortal.Business.WebHelpers.CacheHelper.GetMenuPages () [0x00000]
at mojoPortal.Web.SiteUtils.TopPageHasChildren (Int32 startingNodeOffset) [0x00000]
at mojoPortal.Web.layout.SetupLayout () [0x00000]
at mojoPortal.Web.layout.Page_Load (System.Object sender, System.EventArgs e) [0x00000]
at System.Web.UI.Control.OnLoad (System.EventArgs e) [0x00000]
at System.Web.UI.Control.LoadRecursive () [0x00000]
at System.Web.UI.Control.LoadRecursive () [0x00000]
at System.Web.UI.Page.ProcessLoad () [0x00000]
at System.Web.UI.Page.ProcessPostData () [0x00000]
at System.Web.UI.Page.InternalProcessRequest () [0x00000]
at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000]

Version information: Mono Version: 2.0.50727.42; ASP.NET Version: 2.0.50727.42

I saw this error mentioned in another forum post, referring to a mod-mono-server error (see here: http://lists.ximian.com/pipermail/mono-devel-list/2007-December/026134.html). Is this issue still a problem with the current mono release? How could the site be run productively on mono?

Best regards,

Helge

8/1/2008 1:53:55 PM
Gravatar
Total Posts 3

Re: Installing with mono and Apache

Hi again, (answer to self)

got it to work finally. It turned out to be a filesystem permission problem. After chown'ing mojoPortal's web folder to wwwrun:www, everything went smooth. (Needless to say that this was after hours of fiddling in httpd.conf, web.config etc., switching to lighttpd/FastCGI, getting lots of 404 errors :-), switching back again, ...).

Anyway, now that it's running: congratulations for mojoPortal and especially its mono support!

There is however one small issue remaining. I have written a custom module as an ascx control. All "standard" pages display german "Umlaut" characters correctly (ä, ö, ü). However, fixed text in my user control renders incorrectly (?? for each "umlaut" character). I'd appreciate any suggestions on how to fix this issue.

Best regards,
Helge

8/1/2008 3:43:14 PM
Gravatar
Total Posts 18439

Re: Installing with mono and Apache

Hi Helge,

I would check that the .ascx file is a utf-8 encoded file not ansi, if it is already utf-8 then it may be a Mono bug.

Hope it helps,

Joe

8/4/2008 6:18:45 AM
Gravatar
Total Posts 3

Re: Installing with mono and Apache

Hi Joe,

the "file" utility actually reports my ascx files as utf-8. However, I've solved it by setting all label texts from code.

Thanks for your help & best regards,

Helge

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