[Mono-list] Guide to installing Mono 2.4 on a clean Ubuntu 8.10 Server machine

Mike Christensen imaudi at comcast.net
Thu Apr 2 16:09:52 EDT 2009


Thanks!  I'm thinking the official way to do it is probably create a 
file called mod_mono.load in /etc/apache2/mods-available that has:

Include /etc/apache2/mod_mono.conf
MonoServerPath /usr/local/bin/mod-mono-server2

and then create the link in mods-enabled.  Isn't there actually some 
sort of "enable-mod" script that does this for you too, rather than 
using the ln command directly?

Would people prefer this?  Thanks!!

Mike


Tinco Andringa wrote:
> Hi Mike, I like your guide :)
>
> I have one comment on step 7. What you do here is not the Apache way,
> and may scare people since they have to edit the apache2.conf which
> usually is a very large file.
>
>   
>> 7) Configure Mod_Mono with Apache
>>
>> Type: cd /etc/apache2
>> Type: pico apache2.conf
>>
>> Search for this section:
>>   # Include module configuration:
>>   Include /etc/apache2/mods-enabled/*.load
>>   Include /etc/apache2/mods-enabled/*.conf
>>
>> Add the following line under the above lines:
>>   Include /etc/apache2/mod_mono.conf
>>
>> At the end of this file, add the following line:
>>   MonoServerPath /usr/local/bin/mod-mono-server2
>>
>> Press CTRL+X to exit Pico, answer "Yes" to save your changes and press
>> enter to use the same file name.
>>
>> Restart Apache by typing: /etc/init.d/apache2 restart
>>     
>
> Simpler would be to make a symbolic link in the
> /etc/apache2/mods_enabled/ directory to the mod_mono.conf file like
> so:
>
> Type: ln -s /etc/apache2/mod_mono.conf /etc/apache2/mods-enabled/mod_mono.conf
>
> And with that, it might also be a good idea to put MonoServerPath in
> the mod_mono.conf file rather than in the apache2.conf. Since when one
> would disable mod_mono, MonoServerPath would likely throw an error or
> warning or at least be totally useless.
>
> Great work!
>
> Greetings,
> Tinco
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090402/3da3de8d/attachment.html 


More information about the Mono-list mailing list