Ok I've updated my step 7 section, I think this is a lot better.

7) Configure Mod_Mono with Apache

Type: cd /etc/apache2/mods-available/
Type: pico mod_mono.load

This will create a new file, add the following lines to the file:
  Include /etc/apache2/mod_mono.conf
  MonoServerPath /usr/local/bin/mod-mono-server2

Press CTRL+X to exit Pico, answer "Yes" to save your changes.

Now we have to activate our new module.

Type: a2enmod mod_mono
Restart Apache by typing: /etc/init.d/apache2 restart

8) Make sure it all works!

...

Also I've changed all the tar commands to "tar -xvpjf" so the user can see what's going on <g>

Also, *quick question* why doesn't the mod_mono.conf file just get built into the /mods-available directory in the first place, along with a mod_mono.load file? If this happened, I'd only need to tell users to enable the mod and boom they'd be done. Maybe the build guys can comment?

Thanks for the feedback!

Mike

Mike Christensen wrote:
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@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

------------------------------------------------------------------------

_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to