Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

I know I'm running mono-apache-server4 but when I launch the site mono-apache-server2 is responding.

Why is my site not using 4.0?

See htop:

enter image description here

This is what I did:

Installed Debian Wheezy along with apache and mod-mono:

apt-get install mono-apache-server2 mono-apache-server4 libapache2-mod-mono libmono-i18n2.0-cil

Then I edited the default virtual host file: sudo nano /etc/apache2/sites-available/default

<VirtualHost *:80>
  DocumentRoot /var/www/
  ErrorLog /var/www/logs/
  CustomLog /var/www/logs/ combined

  MonoServerPath "/usr/bin/mod-mono-server4"

  MonoDebug true
  MonoSetEnv MONO_IOMAP=all
  MonoApplications "/:/var/www/"
  <Location "/">
    Allow from all
    Order allow,deny
    SetHandler mono
    SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip dont-vary
  <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript

And restarted apache2:

enter image description here


I reinstalled using:

apt-get install mono-apache-server4 libapache2-mod-mono libmono-i18n4.0-all

But Jim's answer was the culprit.

share|improve this question

1 Answer 1

up vote 1 down vote accepted
MonoServerPath "/usr/bin/mod-mono-server4"

should probably be

MonoServerPath "/usr/bin/mod-mono-server4"
share|improve this answer
Good EYE! I also reinstalled using apt-get install mono-apache-server4 libapache2-mod-mono libmono-i18n4.0-all the way I had it, I only included 2.0 libraries. But ofcourse it still didn't work until I made your modification. – capdragon Oct 19 '12 at 18:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.