techteen

Active Member
Jul 31, 2004
26
0
151
Hello,

Can anyone tell me if they are using this? Is it stable? Does it actualy work? Does it serve .aspx extentions nicely w/o issues?
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
Hello,

Can anyone tell me if they are using this? Is it stable? Does it actualy work? Does it serve .aspx extentions nicely w/o issues?
In my experience and talking to others, it'll serve C# code better than VB.NET code. Keep in mind this is more of a emulation/port than a copy of full ASP.NET support for Linux. So some things will work great, others... not so much.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Also, by default, mod_mono only activates .NET 1.1 support. A change to the configuration is required to implement .NET 2.0 support. We are currently investigating how to do this in a simple way.
 

stormrider

Member
Jan 12, 2007
23
0
151
I'm planning to install mod_mono today.

I don't have any experience with it, do you have any tips?

Is it as simple as checking it on easyapache? Is it automatically activated for all accounts?

Thanks!
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
There is only one option to select in EasyApache. Once compiled and started, it is available to all accounts.
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
I've been using mod_mono for months now with EA3 and everything has been working flawlessly - so long as you don't use Visual Studio 2008 to code in asp.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I've been using mod_mono for months now with EA3 and everything has been working flawlessly - so long as you don't use Visual Studio 2008 to code in asp.
Keep in mind VS 2008 generates .NET 3.5 code by default. However, you can set it to only generate .NET 2.0 code on a project-by-project basis, the equivalent of using VS 2005.
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
Keep in mind VS 2008 generates .NET 3.5 code by default. However, you can set it to only generate .NET 2.0 code on a project-by-project basis, the equivalent of using VS 2005.
Right, however, like cpanelkenneth said above, isn't 2.0 not supported in cpanel's implementation of mod_mono?
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA
As Kenneth said, not by default - but it is possible to enable .NET 2.0 support if you are familiar with how to do that manually.
Do you think it would be possible to share how this might be done? .Net 1.1 is pretty much obsoleted now in favor of .net 2.0
 

cooldude7273

Well-Known Member
Jan 11, 2004
357
0
166
Roswell, GA

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
It would seem to be an easy one line edit. It's find the one line that isn't going so well for me. What should be in httpd.conf ain't their in cPanel's version of it!
Our configuration is according to the documentation at the link I posted earlier. The main configuration is done in a file that is Included in httpd.conf Look for, and make your changes in:

Code:
/usr/local/apache/conf/mod_mono.conf
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Any hope that mono-basic will be included in the mono package?
Possibly after mod_mono 2.0 is released. That version will have full support for .NET 2.0 and better VB.NET support. From what I read, at that time mono-basic will be merged with the core product.
 

djbob2

Well-Known Member
May 14, 2005
99
0
166
Hi,

I tried to enable ASP.NET 2.0, but I'm having some trouble.

The configuration line I am supposed to add isn't working. The Mono Projects recommend to add the following configuration line:
Code:
MonoServerPath default /usr/bin/mod-mono-server2
.
However, I realized that cPanel doesn't install to that directory, so I replaced that with:
Code:
MonoServerPath default /opt/mono/bin/mod-mono-server2
.
However, when I insert in mod_mono.conf Apache tells me the configuration is too early (something about a Unix daemon not being loaded yet), so I put the directive right before vhost declarations in httpd.conf.

When I restart Apache with the above configuration mod_mono simply does not work (I get download prompts when visiting .aspx pages). Similarly, if I explicitly define the MonoServer Path as /opt/mono/bin/mod-mono-server1 (for .Net 1.1) it still won't work. Any suggestions?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Hi,

I tried to enable ASP.NET 2.0, but I'm having some trouble.

The configuration line I am supposed to add isn't working. The Mono Projects recommend to add the following configuration line:
Code:
MonoServerPath default /usr/bin/mod-mono-server2
.
However, I realized that cPanel doesn't install to that directory, so I replaced that with:
Code:
MonoServerPath default /opt/mono/bin/mod-mono-server2
.
However, when I insert in mod_mono.conf Apache tells me the configuration is too early (something about a Unix daemon not being loaded yet), so I put the directive right before vhost declarations in httpd.conf.

When I restart Apache with the above configuration mod_mono simply does not work (I get download prompts when visiting .aspx pages). Similarly, if I explicitly define the MonoServer Path as /opt/mono/bin/mod-mono-server1 (for .Net 1.1) it still won't work. Any suggestions?
First, the default label is not necessary unless you are running multiple processes.

Second, ensure the older v1 mono process is stopped. check the output of `ps ax | grep mono` Kill any that are not using the new mono2 binary you just configured.
 

djbob2

Well-Known Member
May 14, 2005
99
0
166
First, the default label is not necessary unless you are running multiple processes.
Yah, I read about that on the Mono Project website, but when I left the "default" out I got an error which a mod_mono newsgroup posting attributed to a bad configuration directive.

I'll try again, killing the 1.1 version first this time. I'll check back and see if that worked. Thanks :)

UPDATE
Yup, everything works now. I can now put the directive in mod_mono.conf and I don't need the "default" label. Everything works great :)
 
Last edited:

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
944
29
178
Before I read the documentation, are the modifications simple to enable 2.0 ? i.e just a few minutes of work, or is it more complicated ?

Do I just need to add that line to the config ?
 
Last edited:
Thread starter Similar threads Forum Replies Date
K Developer Experience 1
Chriz1977 Developer Experience 3
Similar threads
ModMono next step?
ModMono