I am running a VPS with Centos 6.3, with WHM 11.34.1 (build 11). I wish to use mod_mono to host an ASP.NET 4 application.
(Background: I am rewriting a hobby PHP website in ASP.NET MVC 4, and want to host it on the same machine. I would like to avoid renting another machine because I run other things on this server than the website.)
First, I tried the most obvious step, and used easyapache to add mod_mono support. However, that was a bust because the latest version of mono that WHM supports is 2.6.7, which supports ASP.NET 2. ASP.NET 4 support was added later. Seeing that this was a dead-end, I then uninstalled mod_mono from WHM.
Next, I decided install mod_mono 2.10.2 (with mono 2.11.something) manually. It was a painful process involving the blackest of magicks, but eventually I got it to compile. It works fine, but I cannot for the life of me get it to use ASP.NET 4 instead of 2.
I've set up my config as such:
/usr/local/apache/conf/httpd.conf - no changes from WHM default.
/usr/local/apache/conf/includes/pre_main_global.conf: - WHM adds an include for this file near the top of httpd.conf
Include /usr/local/apache/conf/mod_mono.conf #this should make it use ASP.NET 4 MonoServerPath /usr/bin/mod-mono-server4
/etc/httpd/conf/userdata/std/2/sitename/beta_asp.conf - WHM includes this inside the
Alias /beta /home/sitename/public_html_beta AddMonoApplications default "/beta:/home/sitename/public_html" <Location /beta> SetHandler mono </Location>
What am I doing wrong? What is the mod_mono equivalent of changing the application pool to be v4?