#1  
Old 30th October 2006, 17:30
bogdanbrudiu bogdanbrudiu is offline
Junior Member
 
Join Date: Oct 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default mono install

Can someone please help me with mod_mono install? i am stuck with this problems for 2 weeks and can not find any solution (a tutorial for nobs like me will be very welcome)
The instalation is ok because 2 times I have made the sistem work ok but after apache restart it has stoped working.. and the problem is that I do not know what exacly I have done to make it work..

My config files look like this
mainframe:~# cat /etc/apache2/mods-enabled/mod_mono_auto.load
LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so


mainframe:~# cat /etc/apache2/mods-enabled/mod_mono_auto.conf
MonoAutoApplication enabled
AddType application/x-asp-net .aspx
AddType application/x-asp-net .asmx
AddType application/x-asp-net .ashx
AddType application/x-asp-net .asax
AddType application/x-asp-net .ascx
AddType application/x-asp-net .soap
AddType application/x-asp-net .rem
AddType application/x-asp-net .axd
AddType application/x-asp-net .cs
AddType application/x-asp-net .config
AddType application/x-asp-net .dll
AddType application/x-asp-net .rails
DirectoryIndex index.aspx
DirectoryIndex Default.aspx
DirectoryIndex default.aspx


In vhost file I have added entries like this for web10 and web12 :
<VirtualHost 89.35.217.12:80>
DirectoryIndex index.aspx
AddHandler mono .aspx .asmx .ashx .asax .ascx .soap .rem .axd .cs .config .dll .rails
SetHandler mono
MonoApplications '/:/var/www/web12/web'
MonoDocumentRootDir '/var/www/web12/web'

ServerName test.xceed.ro:80
ServerAdmin webmaster@xceed.ro
DocumentRoot /var/www/web12/web

after apache restart mono server starts.. but i do not know if it starts ok:


mainframe:~# /etc/init.d/apache2 stop
Stopping apache 2.0 web server....
mainframe:~# ps -aux |grep mono
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
root 5928 0.0 0.2 1752 580 pts/0 R+ 18:21 0:00 grep mono
mainframe:~# /etc/init.d/apache2 start
Starting apache 2.0 web server....
mainframe:~# ps -aux |grep mono Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
www-data 5960 8.0 2.0 16300 5256 ? Rs 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --nonstop --master
www-data 5961 7.4 2.0 16300 5264 ? Rs 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --nonstop --master
www-data 5962 0.0 2.0 16300 5264 ? S 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --nonstop --master
www-data 5966 0.0 2.0 16300 5256 ? S 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --nonstop --master
www-data 5969 7.4 2.0 16300 5260 ? Rs 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --applications /:/var/www/web12/web --nonstop --root /var/www/web12/web --master
www-data 5970 6.8 2.0 16300 5204 ? Rs 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --applications /:/var/www/web12/web --nonstop --root /var/www/web12/web --master
www-data 5973 6.6 2.0 16300 5216 ? Rs 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --applications /:/var/www/web10/web --nonstop --root /var/www/web10/web --master
www-data 5974 6.4 2.0 16300 5200 ? Rs 18:22 0:00 /usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --applications /:/var/www/web10/web --nonstop --root /var/www/web10/web --master

In logs I have this
mainframe:~# tail /var/log/apache2/error.log

[Mon Oct 30 18:22:00 2006] [notice] Apache/2.0.55 (Debian) DAV/2 SVN/1.3.2 mod_fastcgi/2.4.2 mod_mono/1.1.17 PHP/4.4.2-1.1 mod_ssl/2.0.55 OpenSSL/0.9.8c mod_perl/1.999.21 Perl/v5.8.8 configured -- resuming normal operations
Another mod-mono-server with the same arguments is already running.Another mod-mono-server with the same arguments is already running.

Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.Another mod-mono-server with the same arguments is already running.
Another mod-mono-server with the same arguments is already running.

also i do not know if I have to put something in /etc/mono-server/conf.d or other mono config file.


When I try to access the website the browser downloads the source code for the index.aspx file.
After i try to access the site the mono parameters are not the same...
mainframe:~# ps -aux |grep mono
Warning: bad syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
www-data 5961 0.0 2.6 20216 6800 ? Ss 18:22 0:00 /usr/bin/mono
r/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --
top --master
www-data 5962 0.0 2.6 20216 6800 ? S 18:22 0:00 /usr/bin/mono
r/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --
top --master
www-data 5975 0.0 2.6 20216 6800 ? S 18:22 0:00 /usr/bin/mono
r/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --
top --master
www-data 5980 0.0 2.6 20216 6800 ? S 18:22 0:00 /usr/bin/mono
r/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --
top --master
www-data 6040 0.0 2.6 20216 6800 ? S 18:22 0:00 /usr/bin/mono
r/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --
top --master
www-data 6041 0.0 2.6 20216 6800 ? S 18:22 0:00 /usr/bin/mono
r/lib/mono/1.0/mod-mono-server.exe --filename /tmp/mod_mono_server_global --
top --master
root 9983 0.0 0.2 1752 580 pts/0 R+ 23:09 0:00 grep mono
It is very strage for me because with this configuration it worked ok for 5 minutes so I believe I am on the right track but after apache restart it has stoped working.
I am new to mono and i realy need a direction to make this work can someone please help me with this?

Last edited by bogdanbrudiu; 30th October 2006 at 22:10.
Reply With Quote
Sponsored Links
  #2  
Old 31st October 2006, 09:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,976
Thanks: 825
Thanked 5,369 Times in 4,216 Posts
Default

Does it work again wehn you stop your apache webserver, the run:

Quote:
killall mono
and the start the apache server again. (This assumes that you have no other mono applications running. Otherwise kill all processes manually that you will get with this command:

Quote:
ps aux | grep '/usr/bin/mono /usr/lib/mono/1.0/mod-mono-server.exe'
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 30th November 2006, 21:08
kingofnerds kingofnerds is offline
Junior Member
 
Join Date: Nov 2006
Location: Utah
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I am also having the same problem, and no, it doesn't fix it if I do a killall mono
Reply With Quote
Reply

Bookmarks

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
problem install perl modules Cirox Installation/Configuration 10 16th May 2007 16:04
install Net::DNS chrno Installation/Configuration 4 5th September 2006 17:01
/usr/bin/make install install HTML::Parser -- NOT OK oddo Installation/Configuration 4 14th March 2006 18:32
suse 9.3 install: E: Couldn't find package ncftp aallen Installation/Configuration 4 26th January 2006 20:02
Mandriva 10.2 Perfect Setup Install Problems... ctroyp Installation/Configuration 12 30th December 2005 16:04


All times are GMT +2. The time now is 17:48.


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