h2. Installation Method

The installation method I chose was using CPAN[3]. I installed version 0.999016[4].

cpan MojoMojo

h2. Uncaught Dependencies

For me, the cpan install did not catch a some dependencies:

  • Cache::Memory
  • Catalyst::Model::Search::Plucene
  • Plucene::Plugin::Analyzer::SnowballAnalyzer

h2. Failed Tests - Forced Installs

  • The SnowballAnalyzer module fails a single test which uses accented french characters. I forced the install.
  • The selenium tests also did not pass at first, but I got the majority of tests to pass when I edited the test to explicitly specifiy where firefox-2 lived. This is what I did:
my $sel = Test::WWW::Selenium::Catalyst->start(
    { 'browser' => "*firefox /usr/lib/firefox/firefox-2-bin", }
);

This allowed the first 6 tests to pass, but after the first 6 tests I get the exception:

[error] Caught exception in MojoMojo::Controller::User->login 
"authenticate called with nonexistant realm: 'default'. at 
/usr/local/share/perl/5.8.8/MojoMojo/Controller/User.pm line 37"

I forced the install of MojoMojo at this point. For reference sake, I have included the full mojo selenium test report

h2. Deploy MojoMojo Database.

MojoMojo provides a script to install the database schema along with an admin account. The script is mojomomospawn_db.pl_. The script requires knowledge of where mojomojo.conf is located. I had to hard-wire that as I was using the default install location of /usr/local/share/perl/5.8.8/MojoMojo/mojomojo.conf and the db spawn script was located at: /usr/local/bin/mojomojo_spawn_db.pl but looking for mojomojo.conf in $Bin/../.

Further, I chose to use the default database of SQLite and locate the database file mojomojo.db at: /home/hunter/db/sqlite/mojomojo.db Locating the database here was defined in the mojomojo.conf with this line: connect_info dbi:SQLite:/home/hunter/db/sqlite/mojomojo.db

Once, the mojomojo.conf is savvy to the database location and mojomojo_spawn_db.pl is savvy to the where-abouts of mojomojo.conf then the spawn script runs like a charm and we're closer to using this thing. But first let's make sure the registration component has a properly configured SMTP server and FROM: email address.

h2. Configure Registration Email

People that want to make edits under an account name need to register. This process included receiving an email message with a validation hyperlink. For the email to be sent properly from MojoMojo we need to configure it so. Returning to mojomojo.conf we make sure there are lines like the following:

email   SMTP
email   localhost
system_mail someone@somewhere.legit.org


h2. Fire it up

h3. Running via Catalyst Server

Once the database has been deployed, we can fire up MojoMojo with the script mojomojo_server.pl. By default it will run on port 3000 (since it's a Catalyst app. and that's what they do.), but the port can be specified with -p $port_number. Then browse to http://my.mojomojo.server.org:3000 to get started.

h3. Running with Apache and FastCGI

A slick way to separate the application instances from a web server is to use FastCGI. Catalyst apps make the FastCGI part pretty easy, and MojoMojo does this by providing the alternative script mojomojo_fastcgi.pl. This topic is explored more fully in the article on running mojomojo using fastcgi

h2. Addendum

h3. File Permissions

In order to use the search and even start MojoMojo the plucene/ directory must be writable by the owner of the MojoMojo process or you will get an error[1]. This is also the case if you want to do uploads. Make sure the uploads/ directory is writable.

h3. Emtpy Search

Well yeah, it not's going to return anything, but it probably could handle the exception better[2].

h3. Quieting Apache Error Log

There some template logic that decides whether or not to display a 'Forward in time' link. This logic doesn't check to if the comparison values exist so the following warning shows up in the apache error log:

Remove empty comparsion warning at:
 Argument "" isn't numeric in numeric lt ()
at /usr/local/share/perl/5.8.8/MojoMojo/root/base/page/bottomnav.tt line
35.

h2. Footnotes

fn1. Couldn't instantiate component "MojoMojo::Model::Search::Plucene", "Couldn't get lock at /usr/local/share/perl/5.8.8/Catalyst/Model/Search/Plucene/Simple.pm line 108" at /usr/local/bin/mojomojo_server.pl line 58

fn2. [error] Caught exception in MojoMojo::Controller::Page->search "Can't call method "get_items" on an undefined value at /usr/local/share/perl/5.8.8/Catalyst/Model/Search/Plucene.pm line 77."

fn3. You might want to install Catalyst::Runtime first and make sure you have Catalyst::View::TT installed as well. Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman Laku.com Belanja Online Grosir Eceran Murah dan Aman

villa bali seminyak accommodation seminyak villa rental villa ubud bali villa in seminyak bali driver
seminyak villa pemanas air pulau tidung jam tangan tas branded rental mobil semarang kursi roda jual kursi roda souvenir jogja dealer daihatsu depok dealer daihatsu tangerang tutorial wordpress :: Hot News :: Toko Bunga :: Online Store :: Seminyak bali :: Grosir Baju muslim :: Grosir Baju Batik :: Hosting Murah :: Villa Bali rental :: Group Om Onny :: Jawara Iklan :: Jago Iklan :: Jasa Iklan :: Juara Iklan :: Jawa Iklan :: Jaringan Iklan :: Jaguar Iklan :: All Iklan :: Directory :: Tas Branded :: Souvenir Pernikahan :: Busana Online :: Review :: Naila :: Naura :: Karangan Bunga Pekanbaru :: Karangan Bunga Medan :: Toko Parcel Medan :: Toko Parcel Surabaya :: Toko Parcel Jogja :: Serba-serbi :: Toko Parcel :: Berita Unik :: Toko Abon :: Tips :: Blog :: All tips :: Coba :: sinergi :: bisnis :: om onny jasa seo jasa seo murah jasa seo jasa seo murah jasa seo murah jasa seo murah jasa seo murah

My tags:
 
Popular tags:
 
Powered by Catalyst