[Mono-list] Configuration of apache2

Robert Jordan robertj at gmx.net
Sun Oct 22 13:48:35 EDT 2006


Kfir Lavi wrote:
> Hi,
> Here is my config file for Apache:
> 
> Alias /alex "/home/alex/www/test"
> AddMonoApplications default "/alex:/home/alex/www/test"
> MonoExecutablePath default /usr/bin/mono
> MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe
> 
> <Location /alex>
>   SetHandler mono
> </Location>
> 
> I'm using Debian.
> Why should I add
> MonoExecutablePath default /usr/bin/mono
> MonoServerPath default /usr/lib/mono/2.0/mod-mono-server2.exe
> 
> This paths are regular, so shouldn't they work automatically?

The default is ASP.NET 1.1. That's why you need to specify
another server assembly.

> Also with this configuration I get this error when loading page
> http://server/alex/WebForm1.aspx
> 
> Server error in '/alex' application
> Description: Error processing request.
> 
> Error Message: HTTP 500.
> 
> Stack Trace:
> 
> System.ComponentModel.Win32Exception: Some sort of w32 error occurred: 5
>   at System.IO.InotifyWatcher.StartMonitoringDirectory
> (System.IO.InotifyData data, Boolean justcreated) [0x00000]
>   at System.IO.InotifyWatcher.StartDispatching
> (System.IO.FileSystemWatcher fsw) [0x00000]
>   at System.IO.FileSystemWatcher.Start () [0x00000]
>   at System.IO.FileSystemWatcher.set_EnableRaisingEvents (Boolean
> value) [0x00000]
>   at (wrapper remoting-invoke-with-check)
> System.IO.FileSystemWatcher:set_EnableRaisingEvents (bool)
>   at System.Web.HttpApplicationFactory.CreateWatcher (System.String
> file, System.IO.FileSystemEventHandler hnd,
> System.IO.RenamedEventHandler reh) [0x00000]
>   at System.Web.HttpApplicationFactory.GetApplication
> (System.Web.HttpContext context) [0x00000]
>   at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000]

"Some sort of w32 error occurred: 5" is ERROR_ACCESS_DENIED.
Assure that the whole /home/alex/www/test/ tree is accessible
by the apache user.

Robert



More information about the Mono-list mailing list