MP install on Ubuntu 9.10 http://localhost gets "Not Found"

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.
10/3/2009 9:45:27 AM
Gravatar
Total Posts 112

MP install on Ubuntu 9.10 http://localhost gets "Not Found"

I'm having some problem getting mojoPortal running on Ubuntu 9.10. Perhaps someone here has some experience with this or can lend some insights.

 

# /etc/init.d/apache2 restart

http://localhost

Not Found

The requested URL / was not found on this server.

Apache/2.2.12 (Ubuntu) Server at localhost Port 80

/var/log/apache2/error.log

[Sat Oct 03 02:07:19 2009] [notice] caught SIGTERM, shutting down

[Sat Oct 03 02:07:20 2009] [notice] Apache/2.2.12 (Ubuntu) mod_mono/2.4.2 configured -- resuming normal operations

[Sat Oct 03 02:07:28 2009] [error] [client 127.0.0.1] Attempt to serve directory: /var/www/

[Sat Oct 03 02:07:28 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico

[Sat Oct 03 02:07:31 2009] [error] [client 127.0.0.1] File does not exist: /var/www/favicon.ico

[Sat Oct 03 02:08:12 2009] [notice] caught SIGTERM, shutting down

[Sat Oct 03 02:08:14 2009] [notice] Apache/2.2.12 (Ubuntu) mod_mono/2.4.2 configured -- resuming normal operations

 

Try it. It fails, comment out /etc/apache2/httpd.conf

#DocumentRoot /usr/local/web/mojoportal

#ServerName localhost

#SetHandler mono

 

/etc/init.d/apache2 restart and "It works." appears from the standard index.html.

 

mod_mono and XSP2 seem to be working fine.

http://localhost gets "It Works!"

http://localhost/samples version 1

http://localhost:8082/index2.aspx version 1.1 and 2.0 and I think this is XSP2

http://localhost/samples/index2.aspx is mod_mono, I think

 

Any suggestions are very much appreciated,

Dale E. Moore

10/4/2009 6:06:17 AM
Gravatar
Total Posts 18439

Re: MP install on Ubuntu 9.10 http://localhost gets "Not Found"

Hi Dale,

To be honest I haven't tried using mod_mono in a long time. I usually do my testing with xsp2 using the latest VMWare OpenSuse image from the Mono project.

But my guess is something incorrect in your configuration for mod_mono is the most likely culprit. Other than that it could be a mono bug.

Hope it helps,

Joe

10/4/2009 8:47:29 AM
Gravatar
Total Posts 2
Follow me on twitter.com/mendelt for more nonsense.

Re: MP install on Ubuntu 9.10 http://localhost gets "Not Found"

Hi Dale,

I'm also playing with Ubuntu 9.10, mono, apache and mojoPortal right now. I'm not really a linux/mono expert but maybe I can help.

I got mojoportal working using mono autoconfig. I installed mojoPortal in /var/www/mojoportal. After activating mod_mono_auto I could access the site at http://localhost/mojoportal 

I'll try manually configuring the site later to see if I can reproduce your issues and I'll get back to you.

10/4/2009 10:13:15 AM
Gravatar
Total Posts 2
Follow me on twitter.com/mendelt for more nonsense.

Re: MP install on Ubuntu 9.10 http://localhost gets "Not Found"

I dived into apache on ubuntu a bit more. Ubuntu seems to have it's own way of configuring apache, this might be what is causing problems.

In /etc/apache2/ there are two directories sites-available and sites-enabled. You can add config files to sites-available to set up any sites you want and enable them by creating a link to them in sites-enabled. The links found in sites-enabled will be automatically included in the config the next time you restart apache. You can create and remove links with a2ensite and a2dissite.

One thing that might be causing you trouble is the default site that is there. It's also registered at localhost/ removing it with "sudo a2dissite default" might help. you can also copy the script from the default site to mojo and edit it to point to your site.

Hope this advice from a linux noob helps. Please tell me if I'm wrong too, helps me learn. :-)

10/5/2009 7:01:45 PM
Gravatar
Total Posts 112

Re: MP install on Ubuntu 9.10 http://localhost gets "Not Found"

Hi Mendelt; 

Thanks for the pointers! I found some specifics on mod_mono_auto here and did the following.

  1. # cd /etc/apache2/mods-enabled
  2. # rm mod_mono*
  3. # ln -s ../mods-available/mod_mono_auto.* ./
  4. # nano mod_mono_auto.conf

Prepend the following line to the top of the file...

  • MonoServerPath "/usr/bin/mod-mono-server2"

Finally restart apache2.

  1. #/etc/init.d/apache2 restart

I copied mojoportal to /var/www/mojoportal and linked /var/www/cms to /var/www/mojoportal then http://localhost/cms works fine!

Thanks for your help!

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