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

Tinco Andringa mail at tinco.nl
Thu Apr 2 10:05:59 EDT 2009


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


More information about the Mono-list mailing list