[Mono-list] Apache user configuration with mono_module

Howard Cole howard.cole@selestial.com
Thu, 23 Dec 2004 11:39:10 +0000


The need to start mod-mono-server rather than a fork from apache is only 
necessary if you run apache under a dedicated user name, and have the 
following type of setup in your "httpd.conf" file:

Group apache
User apache

Under this configuration, running mono as an apache fork gives the 
following message in your browser "503 Service Temporarily Unavailable"

If you have the default httpd build options then the httpd.conf file is 
set to:

Group #-1
User nobody

The defaults work fine with mono; there is no need to set the 
permissions on the /tmp/mod-mono-server.

Howard
www.selestial.com


Amish Munshi wrote:

>On Wed, Dec 22, 2004 at 05:25:15PM +0000, Howard Cole wrote:
>  
>
>>I feel this should feature more prominently in the mono documentation 
>>otherwise many people that run apache as a different user are going to 
>>waste several days as I have, or switch back to windows!
>>
>>    
>>
>
>I spent approx 2-3 hrs due to this problem, finally google gave me the
>answer. :-)
>
>I have written a document on how to set this up. I am not sure how good the
>document quality is so I have not made it available to google (It is in sxw
>format) at http://www.munshi.biz/mono .
>
>
>Also I noticed that I need not start mod-mono-server, the document I read
>mentioned that I have to start mod-mono-server myself, but if you follow
>the instructions mentioned in the above document, mod-mono-server starts by
>itself (Apache forks it).
>
>Amish.
>
>
>
>  
>