Old 10th November 2009, 22:17
gr33d gr33d is offline
Junior Member
Join Date: Nov 2009
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts
Cool Mono httpd error on restart

Did a search here for "mono" and no results :/ Have ISPConfig 3 setup and running (CentOS 5.4 perfect setup) great!

Compiled mono-, xsd-2.4.2 and mod_mono-2.4.2 in my /opt directory and can't seem to make the ISPConfig2-style directives (found here) work right--if thats even the way to do it.

my directives were:
MonoAutoApplication enabled
MonoDocumentRootDir "/var/www/clients/client1/web5/web/"
MonoServerPath default "/opt/mono/bin/mod-mono-server2"
MonoApplications default "/:/var/www/clients/client1/web5/web/"
Alias /mono "/var/www/clients/client1/web5/web/"
<Directory /var/www/clients/client1/web5/web/>
SetHandler mono
MonoSetServerAlias default
AddHandler mod_mono .aspx .ascx .asax .ashx .config .cs .asmx
I think there are a few links within /var/www, but I think the actual path is /var/www/clients/client1/web5/web. Not sure about "default" either.

error after restarting httpd:
Invalid command 'MonoAutoApplication', perhaps misspelled or defined by a module not included in the server configuration

Any ideas? Thanks in advance!
Reply With Quote
Sponsored Links
Old 11th November 2009, 13:59
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,022
Thanks: 840
Thanked 5,654 Times in 4,463 Posts

Looks as if mod_mono is not loaded in your apache server.
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 11th November 2009, 15:53
gr33d gr33d is offline
Junior Member
Join Date: Nov 2009
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts

My mistake--mod_mono.conf was loaded into /etc/httpd/conf instead of /etc/httpd/conf.d

I copied mod_mono.conf into /etc/httpd/conf.d and on "service httpd restart" I receive:

Stopping httpd: [ OK ]
Starting httpd: [Wed Nov 11 08:17:27 2009] [crit] (13)Permission denied: Failed to attach to existing dashboard, and removing dashboard file '/tmp/mod_mono_dashboard_XXGLOBAL_1' failed (Operation not permitted). Further action impossible.
[ OK ]

service httpd reload reloads without error. However my page, test.aspx:

<%@ Page Language="C#" %>
   <title>Sample Calendar</title>
<asp:calendar showtitle="true" runat="server">
still doesn't load. (500 Internal Server Error)

/var/log/httpd/error_log shows:
[Wed Nov 11 08:41:53 2009] [error] (70014)End of file found: read_data failed
[Wed Nov 11 08:41:53 2009] [error] Command stream corrupted, last command was -1
System.UnauthorizedAccessException: Access to the path "/path/to/web" is denied.

/path/to/web in error_log is a symlink to /var/www/clients/client1/web5/web. the symlink permissions are root:root. the permissions of /var/www/clients/client1/web5 and its subdirectory web are all web5:client1.

Is this a permissions problem? or something else?
Reply With Quote
Old 11th November 2009, 16:59
gr33d gr33d is offline
Junior Member
Join Date: Nov 2009
Posts: 23
Thanks: 1
Thanked 0 Times in 0 Posts


I added a temporary directive to /etc/httpd/conf/sites-available/domain.tld.vhost:

<VirtualHost *:80>
DocumentRoot /var/www/clients/client1/web5/web/
ServerName aspx.domain.tld
Alias /demo /opt/mono/lib/xsp/test
MonoApplications "/demo:/opt/mono/lib/xsp/test"
MonoServerPath /opt/mono/bin/mod-mono-server2
<Directory /opt/mono/lib/xps/test>
SetHandler mono

received 403 Forbidden when accessing aspx.domain.tld/demo

chown -R apache:apache /opt/mono/lib/xsp/test
service httpd reload

same 403 error

also tried chmod -R 777 /opt/mono/lib/xsp/test

same 403 error

realized the DocumentRoot directive was wrong for this test, and changed to DocumentRoot /opt/mono/lib/xsp/test and tried the above again.

No luck so far. What is the different between sites-available and sites-enabled in /etc/httpd/conf?
Reply With Quote
Old 18th February 2010, 20:11
Mosquito Mosquito is offline
Join Date: Nov 2006
Posts: 85
Thanks: 5
Thanked 6 Times in 5 Posts

Did you ever get this to function? I'd like to have mono available on my ISPConfig sites also.
Reply With Quote


.net 2.0, centos 5, mono

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Odd errors on httpd Apache restart dlucy General 1 24th September 2009 11:29
ispconfig restart bastille firewall with httpd ras.su Installation/Configuration 3 2nd December 2008 16:01
add web site serr57 Installation/Configuration 18 13th April 2008 12:40
CENTOS 5 Ping Problem gAnDo Server Operation 11 28th March 2008 21:58
Apache / httpd restart / startup failed without errors Aldert Server Operation 11 30th January 2008 18:11

All times are GMT +2. The time now is 22:14.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.