bibu
asked on
Problem on Mono mod installation(mod enables running asp.net on linux)
1. I use a normal user installed mono runtime,
2. then install mod-mono
3. in apache's config file I add the following line:
========================== ========== ===
LoadModule mono_module modules/mod_mono.so
Alias /test "/var/www/html/aspnet"
AddMonoApplications default "/test:/var/www/html/aspne t"
<Location /test >
SetHandler mono
</Location>
========================== ========== ===
4. then I restart apache, in its error_log I get the following result:
[error] Failed running '/usr/lib/pkgconfig/../../ bin/mono /usr/lib/pkgconfig/../../l ib/xsp/1.0 /mod-mono- server.exe --filename /tmp/mod_mono_server_defau lt --applications --port 8079 /test:/var/www/html/aspnet --nonstop (null) (null) (null) (null) (null) (null)'. Reason: Permission denied
and If I access the page through "http://127.0.0.1/test/index.aspx", get a 503 error[Service Temporarily Unavailable]
I changed to that user, and running the Permission denied code in error_log, seems I can start it without problem, why it failed when running in apache?
2. then install mod-mono
3. in apache's config file I add the following line:
==========================
LoadModule mono_module modules/mod_mono.so
Alias /test "/var/www/html/aspnet"
AddMonoApplications default "/test:/var/www/html/aspne
<Location /test >
SetHandler mono
</Location>
==========================
4. then I restart apache, in its error_log I get the following result:
[error] Failed running '/usr/lib/pkgconfig/../../
and If I access the page through "http://127.0.0.1/test/index.aspx", get a 503 error[Service Temporarily Unavailable]
I changed to that user, and running the Permission denied code in error_log, seems I can start it without problem, why it failed when running in apache?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I think the mod-mono works for apache, now no permission denied message appeared, but could you please shed me a light on why I get the following error when I access the index.aspx?
========================== ========== ==
Stack Trace:
System.ComponentModel.Win3 2Exception : Some sort of w32 error occurred: 0
in <0x00168> System.IO.FAMWatcher:Start Monitoring Directory (System.IO.FAMData data)
in <0x0018c> System.IO.FAMWatcher:Start Dispatchin g (System.IO.FileSystemWatch er fsw)
in <0x0001a> System.IO.FileSystemWatche r:Start ()
in <0x00032> System.IO.FileSystemWatche r:set_Enab leRaisingE vents (Boolean value)
in (wrapper remoting-invoke-with-check ) System.IO.FileSystemWatche r:set_Enab leRaisingE vents (bool)
in <0x00127> System.Web.Configuration.F ileWatcher Cache:.cto r (System.Web.Configuration. Configurat ionData data)
in <0x0004a> System.Web.Configuration.C onfigurati onData:get _FileCache ()
in <0x00020> System.Web.Configuration.C onfigurati onData:Get ConfigOptL ocation (System.String sectionName, System.Web.HttpContext context, Boolean useLoc)
in <0x00276> System.Web.Configuration.C onfigurati onData:Get Config (System.String sectionName, System.Web.HttpContext context)
in <0x0005a> System.Web.Configuration.W ebDefaultC onfig:GetC onfig (System.String sectionName, System.Web.HttpContext context)
in <0x00017> System.Web.Configuration.W ebConfigur ationSetti ngs:GetCon fig (System.String sectionName, System.Web.HttpContext context)
in <0x0000d> System.Web.HttpContext:Get Config (System.String name)
in <0x00028> System.Web.Configuration.C ompilation Configurat ion:GetIns tance (System.Web.HttpContext context)
in <0x0001a> System.Web.UI.BaseParser:g et_Compila tionConfig ()
in <0x0013f> System.Web.UI.TemplatePars er:.ctor ()
in <0x0000a> System.Web.UI.ApplicationF ileParser: .ctor (System.String fname, System.Web.HttpContext context)
in <0x00034> System.Web.UI.ApplicationF ileParser: GetCompile dApplicati onType (System.String inputFile, System.Web.HttpContext context)
in <0x000ae> System.Web.HttpApplication Factory:In itType (System.Web.HttpContext context)
in <0x00050> System.Web.HttpApplication Factory:Ge tApplicati on (System.Web.HttpContext context)
in <0x00083> System.Web.HttpRuntime:Rea lProcessRe quest (System.Object o)
==========================
Stack Trace:
System.ComponentModel.Win3
in <0x00168> System.IO.FAMWatcher:Start
in <0x0018c> System.IO.FAMWatcher:Start
in <0x0001a> System.IO.FileSystemWatche
in <0x00032> System.IO.FileSystemWatche
in (wrapper remoting-invoke-with-check
in <0x00127> System.Web.Configuration.F
in <0x0004a> System.Web.Configuration.C
in <0x00020> System.Web.Configuration.C
in <0x00276> System.Web.Configuration.C
in <0x0005a> System.Web.Configuration.W
in <0x00017> System.Web.Configuration.W
in <0x0000d> System.Web.HttpContext:Get
in <0x00028> System.Web.Configuration.C
in <0x0001a> System.Web.UI.BaseParser:g
in <0x0013f> System.Web.UI.TemplatePars
in <0x0000a> System.Web.UI.ApplicationF
in <0x00034> System.Web.UI.ApplicationF
in <0x000ae> System.Web.HttpApplication
in <0x00050> System.Web.HttpApplication
in <0x00083> System.Web.HttpRuntime:Rea
Some versions of mono gave this vague error when the server lacked permissions to the directory being watched.
"You cannot monitor a directory on which you don't have appropiate permissions."
http://bugzilla.ximian.com/show_bug.cgi?id=53011
"You cannot monitor a directory on which you don't have appropiate permissions."
http://bugzilla.ximian.com/show_bug.cgi?id=53011
ASKER
Thanks furiously, it finally works, your answer greatly helped us
ASKER