My test environment was a standard web server install from the Fedora 13 download DVD. After the install, I started the same process I performed with the Ubuntu install, which was something like this:
mkdir mono cd mono wget https://raw.githubusercontent.com/nathanb/iws-snippets/master/mono-install-scripts/fedora/install_mono-master.sh chmod 744 fed*.sh ./install_mono-master.sh
That’s it. It’ll first install all the required dependencies for the build and the web server. It’ll then download the 9/1 build (or latest tested version) from the daily tarball list and pull mod_mono and xsp from subversion trunk. Finally, it will extract, compile, and install everything.
The only thing remaining is to setup a web application and configure apache to use mod_mono. For this, I like to use the Mod Mono Config Tool as a starting point to build my virtual host configuration file.
Setup your web server:
- Move the mod_mono.conf from /etc/httpd/conf to /etc/httpd/conf.d
- Create a new directory to hold your virtual host config files at: /etc/httpd/sites-enabled
- Copy your new virtual host config file to /etc/httpd/sites-enabled
- Append a virtual host config line to your httpd.conf
echo ”Include sites-enabled/*.*” >> /etc/httpd/conf/httpd.conf
- Disable Selinux by editing the /etc/selinux/config file and changing SELINUX=disabled
- Reboot server
- Start web server if it isn’t configured to auto-start. (use chkconfig to set auto-start)
service httpd start
That should do it. You can test your new virtual host by browsing to it. The 404 response should show the new mod-mono version.