[Mono-list] Configuration of apache2

Kfir Lavi lavi.kfir at gmail.com
Mon Oct 23 07:20:11 EDT 2006


Ok,
The problem was pemissions of the directories and files. To solve it I did:
find $DIR -type d -exec chmod 770 {} \; -exec chgrp www-data {} \; &&
find $DIR -type f -exec chmod 640 {} \; -exec chgrp www-data {} \;

Where $DIR is the directory of the files.
Thanks for the help.
Kfir

On 10/22/06, Robert Jordan <robertj at gmx.net> wrote:
> 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
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>


More information about the Mono-list mailing list