Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting mod_mono working...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cshepherd
n00b
n00b


Joined: 19 Oct 2004
Posts: 27
Location: /home/craig/

PostPosted: Wed Dec 15, 2004 2:04 am    Post subject: Getting mod_mono working... Reply with quote

Hi all,

I'm not doing too well getting mod_mono working on apache2.

I have searched all the related threads and all those problems seem to be after the step that I'm stuck at.

Going by the Got Mono Docs I am getting stuck at
Quote:
If everything goes well, you will have the following library:
/home/user/mono/mod_mono/src/.libs/libmod_mono.so
which is in Step 1.

I used all ebuilds. Apache2 is already installed and running.
I then emerged mono 1.0.4 and mod_mono 1.0.4 and xsp 1.0.4

I searched for the libmod_mono.so file and can't find it.

Can someone help me out here, as in all the other threads it seems no-one has been stuck this early on yet. Maybe it's just me :(
Back to top
View user's profile Send private message
thesnowman
Guru
Guru


Joined: 08 May 2003
Posts: 365
Location: Sydney, Australia

PostPosted: Wed Dec 15, 2004 9:08 am    Post subject: Reply with quote

The Mono Handbook docs refer to building xsp and mod_mono by hand. If you are using the ebuilds from portage then that documentation will not apply. I have a library called mod_mono.so in /usr/lib/apache2-extramodules/.

After emerging mod_mono you should just have to edit /etc/conf.d/apache2 and add " -D MONO" to the APACHE2_OPTS line like so:
Code:
APACHE2_OPTS="-D SSL -D PHP4 -D MONO"

Then restart apache.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20583

PostPosted: Wed Dec 15, 2004 4:20 pm    Post subject: Reply with quote

Moved from Other Things Gentoo.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Wed Dec 15, 2004 8:18 pm    Post subject: Reply with quote

How I got mod_mono working:

Step 1.
emerge mono mod_mono

Step 2. Add the following to APACHE2_OPTS in /etc/conf.d/apache2
-D MONO

Step 3. Add the following to commonapache2.conf or modules.d/70_mod_mono.conf
Code:

<IfDefine MONO>
  <IfModule mod_mono.c>
    ProxyPass /mono/ http://your.web.server:8079/
    ProxyPassReverse /mono/ http://your.web.server:8079/
    Alias /usr/share/doc/xsp/test/ /mono/
  </IfModule>
</IfDefine>


Step 4.
rc-update add xsp default
/etc/init.d/xsp start
/etc/init.d/apache2 restart
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
cshepherd
n00b
n00b


Joined: 19 Oct 2004
Posts: 27
Location: /home/craig/

PostPosted: Wed Dec 15, 2004 11:18 pm    Post subject: Reply with quote

Step 1, Done
Step 2, Done
Step 3, I changed my 70mod_mono.conf
Step 4, Was successful

I now get Service Temporarily Unavailable.

Are there any config changes I need to make to XSP maybe?
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Wed Dec 15, 2004 11:28 pm    Post subject: Reply with quote

cshepherd wrote:
Step 1, Done
Step 2, Done
Step 3, I changed my 70mod_mono.conf
Step 4, Was successful

I now get Service Temporarily Unavailable.

Are there any config changes I need to make to XSP maybe?


What do the apache logs (apache_error) say ?
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
cshepherd
n00b
n00b


Joined: 19 Oct 2004
Posts: 27
Location: /home/craig/

PostPosted: Wed Dec 15, 2004 11:35 pm    Post subject: Reply with quote

After refreshing repeatedly to see what comes up this one line is repeated;

Code:
[Thu Dec 16 09:33:43 2004] [error] Unknown command: 1347703880


EDIT: I'm also getting '500 Internal Server Error' now when trying to view test.aspx which is a basic Hello World page.
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Wed Dec 15, 2004 11:52 pm    Post subject: Reply with quote

cshepherd wrote:
After refreshing repeatedly to see what comes up this one line is repeated;

Code:
[Thu Dec 16 09:33:43 2004] [error] Unknown command: 1347703880


EDIT: I'm also getting '500 Internal Server Error' now when trying to view test.aspx which is a basic Hello World page.


try accessing the xsp server directly.

then

try putting the three lines in commonapache2.conf.
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
cshepherd
n00b
n00b


Joined: 19 Oct 2004
Posts: 27
Location: /home/craig/

PostPosted: Thu Dec 16, 2004 12:04 am    Post subject: Reply with quote

Sorry for my n00bness. How would I access the xsp server directly?
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Thu Dec 16, 2004 12:09 am    Post subject: Reply with quote

cshepherd wrote:
Sorry for my n00bness. How would I access the xsp server directly?


http://ip.of.server:xspport/ <-- check xsp conf.d file for port
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
cshepherd
n00b
n00b


Joined: 19 Oct 2004
Posts: 27
Location: /home/craig/

PostPosted: Thu Dec 16, 2004 12:11 am    Post subject: Reply with quote

Page returns the following;

Code:
Server error in '/' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.InvalidOperationException: Process has not been started.
in <0x0003b> System.Diagnostics.Process:get_ExitCode ()
in <0x00050> (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_ExitCode ()
in <0x002bd> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters,string[])
in <0x0044a> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDomBatch (System.CodeDom.Compiler.CompilerParameters,System.CodeDom.CodeCompileUnit[])
in <0x00050> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDom (System.CodeDom.Compiler.CompilerParameters,System.CodeDom.CodeCompileUnit)
in <0x00171> System.Web.Compilation.CachingCompiler:Compile (System.Web.Compilation.BaseCompiler)
in <0x002ea> System.Web.Compilation.BaseCompiler:GetCompiledType ()
in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x00070> System.Web.UI.ApplicationFileParser:GetCompiledApplicationType (string,System.Web.HttpContext)
in <0x00047> System.Web.HttpApplicationFactory:CompileApp (System.Web.HttpContext)
in <0x00032> System.Web.HttpApplicationFactory:InitializeFactory (System.Web.HttpContext)
in <0x0007a> System.Web.HttpApplicationFactory:GetInstance (System.Web.HttpContext)
in <0x0010a> System.Web.HttpRuntime:InternalExecuteRequest (System.Web.HttpWorkerRequest)


The address that I'm using is http://192.168.0.7:8001/test.aspx
and the contents of test.aspx are;

Code:
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <title>ASP.NET Hello World</title>
<head>

<body>
  <p><asp:Label id="label1" runat="server" text="Hello World"></asp:Label></p>
</body>

</html>
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Thu Dec 16, 2004 12:16 am    Post subject: Reply with quote

cshepherd wrote:
Page returns the following;

Code:
Server error in '/' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.InvalidOperationException: Process has not been started.
in <0x0003b> System.Diagnostics.Process:get_ExitCode ()
in <0x00050> (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_ExitCode ()
in <0x002bd> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters,string[])
in <0x0044a> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDomBatch (System.CodeDom.Compiler.CompilerParameters,System.CodeDom.CodeCompileUnit[])
in <0x00050> Mono.CSharp.CSharpCodeCompiler:CompileAssemblyFromDom (System.CodeDom.Compiler.CompilerParameters,System.CodeDom.CodeCompileUnit)
in <0x00171> System.Web.Compilation.CachingCompiler:Compile (System.Web.Compilation.BaseCompiler)
in <0x002ea> System.Web.Compilation.BaseCompiler:GetCompiledType ()
in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x00070> System.Web.UI.ApplicationFileParser:GetCompiledApplicationType (string,System.Web.HttpContext)
in <0x00047> System.Web.HttpApplicationFactory:CompileApp (System.Web.HttpContext)
in <0x00032> System.Web.HttpApplicationFactory:InitializeFactory (System.Web.HttpContext)
in <0x0007a> System.Web.HttpApplicationFactory:GetInstance (System.Web.HttpContext)
in <0x0010a> System.Web.HttpRuntime:InternalExecuteRequest (System.Web.HttpWorkerRequest)


dunno then. Ask the dotnet folks.
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
cshepherd
n00b
n00b


Joined: 19 Oct 2004
Posts: 27
Location: /home/craig/

PostPosted: Thu Dec 16, 2004 12:41 am    Post subject: Reply with quote

Any ideas dotnet folks?
Back to top
View user's profile Send private message
guzik
n00b
n00b


Joined: 17 Aug 2003
Posts: 64

PostPosted: Wed Jan 19, 2005 9:30 pm    Post subject: Reply with quote

Code:
<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">


wouldn't your problem be in the language you are using for your asp.net? i think you might have to stick with c#, considering mono is a port of c# not vb. just a thought. your error seems to mention this as well.

eitherway check it out.
Back to top
View user's profile Send private message
cshepherd
n00b
n00b


Joined: 19 Oct 2004
Posts: 27
Location: /home/craig/

PostPosted: Fri Jan 21, 2005 5:15 am    Post subject: Reply with quote

Ahh, ok. I wasn't aware of that.

Is there anyway to get VB working.

I've got a bunch of ASP.NET pages in VB that I want to move to my gentoo box.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum