Mono/Mojo

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
11/2/2005 10:10:33 AM
Gravatar
Total Posts 38

Re: Mono/Mojo

Hi All,

I am ready to move onto Mojoportal on Mono. I have Mono setup as required by Ubuntu. Currently I have Apache2 runing the site. I will need to install mod_mono. Problem is with ubuntu 'Add/Remove' It installs all of apache server.

 Mono on Ubuntu: https://wiki.ubuntu.com/MonoFromSource

Managed to get mod_mono from Mono source http://www.mono-project.com/Mod_mono

configure: error: **** apxs was not found, DSO compilation will not be available

 

Thanks

 

 

 

11/2/2005 1:23:12 PM
Gravatar
Total Posts 148

Re: Mono/Mojo

You probably need the -devel package for apache.  Not sure what it's called under Ubuntu.

--Dean
11/2/2005 1:31:29 PM
Gravatar
Total Posts 148

Re: Mono/Mojo

Actually, it might be apxs2 under Ubuntu.  In that case, try:

./configure --with-apxs=apxs2

If it apxs2 isn't in your path, you might need to use the full path above.  Probably something like /usr/sbin/apxs2.

--Dean
11/2/2005 1:39:38 PM
Gravatar
Total Posts 38

Re: Mono/Mojo

Thanks Dean,
Getting this error on config:
configure: error: apxs2 not found or not executable

Did a search and could not find anything with apxs2

11/2/2005 1:40:49 PM
Gravatar
Total Posts 18439

Re: Mono/Mojo

Hi David,

Definitely, the installation of mod_mono is separate completely from the installation of apache.
If I understand you correctly you already have apache2 installed and the main part of mono installed so you only need to install mod_mono and configure your site to use it?

The link in your post seems to be about compiling mono from source code not about installing from packages but you say Add/Remove which sounds like you are installing from packages using synaptic package manager? So I'm a little confused about where you're at and what you are asking. I would not think that the install of apache2 would in any way be combined with the install of mod_mono even using a package manager.

I've mostly been working with Suse which has a little different apache configuration than other distros in that the virutal host files are split out from the main config file and processed using include statements. Wish I could be more help but I'm not sure on Ubuntu. Maybe someone else can offer some good advice.

I'd be glad to email you a bash script that I use to get the parts of mono from svn that I build on Suse. Its basically libgdiplus which I'm not sure you need but I've been building it, mono, xsp, mod_mono, in that order.

so in detail, to build mono and install mod_mono after getting the files from svn I do
cd /libgdiplus
./autogen.sh -prefix=/usr
make
make install

cd ../mono/
make clean
./autogen.sh --prefix=/usr
make
make install

cd ../xsp
./autogen.sh --prefix=/usr
make
make install

cd ../mod_mono
./autogen.sh --prefix=/usr
make
make install

then you have to configure your virtual directory in apache. There are also .webapp files for configuring mod_mono. I'd be glad to send you sample files from my demo server configuration.

I learned how to compile mono from Paul Johnson's site. He also has a script you can download to automate the whole process. I made my own script using a subset of his since I'm only doing web stuff.

Hope it helps,

Joe
11/2/2005 2:24:14 PM
Gravatar
Total Posts 38

Re: Mono/Mojo

Thanks Joe,

Will try again this weekend.

I decided not to use the 'Add/Remove' due to installing out dated versions of mono and associated files.

I did install mono via the .bin I will look for a mod_mon installer.


Thanks
11/2/2005 2:49:14 PM
Gravatar
Total Posts 148

Re: Mono/Mojo

After a bit more research, it looks like you need to:

apt-get install apache2-threaded-dev

and then:

./configure --with-apxs=/usr/bin/apxs2

--Dean

P.S.  I used http://packages.ubuntu.com/ to track down the package that contained apxs2.
11/3/2005 12:23:34 PM
Gravatar
Total Posts 38

Re: Mono/Mojo

Thanks Dean,

Managed to install mod_mono ok still have an issue left to fix:

Used this in the httpd.conf

DocumentRoot /usr/local/web/mojoportal
ServerName myserver.com

SetHandler mono


SetHandler None


MonoApplications "/:/usr/local/web/mojoportal"



When trying to access the site I get:

[Thu Nov 03 18:20:32 2005] [error] VirtualHost *:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results

I changed to:

When trying to access http://localhost I get:
Forbidden

You don't have permission to access / on this server.

I'm almost there!

Thanks
11/3/2005 3:55:38 PM
Gravatar
Total Posts 148

Re: Mono/Mojo

I think you need to use the name you specified in the ServerName directive.  So in your example, you'd use:

http://myserver.com/

--Dean
11/4/2005 12:42:14 AM
Gravatar
Total Posts 38

Re: Mono/Mojo

Hi Dean,
Added and


Syntax error on line 12 of /etc/apache2/httpd.conf:
The port number "http://welford-costelloe.com" is outside the appropriate range *.e., 1..65535). [fail]

Seems to be ok with just the welford-costelloe.com. I searched for description of error apcahe2 is looking for  access to the file .htaccess.... looking into this.
I am wondering if there is an conflict with /etc/apache2/available-sites/default

Thanks
11/4/2005 2:53:05 AM
Gravatar
Total Posts 148

Re: Mono/Mojo

I suspect you changed your httpd.conf to say:

ServerName http://welford-costelloe.com

That's not what I meant. :-)  In your httpd.conf, use:

ServerName welford-costelloe.com

and then in your browser, type:

http://welford-costelloe.com

Note: "welford-costelloe.com" (or whatever other host name you use in both places) needs to resolve (via DNS or the client's "hosts" file) to the IP address of the server.

--Dean
You must sign in to post in the forums. This thread is closed to new posts.