mono install

Discussion in 'Installation/Configuration' started by bogdanbrudiu, Oct 30, 2006.

  1. bogdanbrudiu

    bogdanbrudiu New Member

    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 [email protected]
    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: Oct 30, 2006
  2. till

    till Super Moderator Staff Member ISPConfig Developer

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

    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:

     
  3. kingofnerds

    kingofnerds New Member

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

Share This Page