--- Jay Strauss <me at heyjay.com> wrote:
> Peter Speltz wrote:
> > Here's my summary after spending a couple good days last week on it.
> >
> > 1) Download the Current Developement snapshot from
> > http://maypole.perl.org/?Download. It works for Apache1/2 Modperl1/2 and
> CGI
> >
> > 2) Unpaack it : tar xvfz WhatIJustDownloaded
> >
> > 3) change into the directory and run: perl Makefile.PL.
> >
> > 4) Note any prereqs missing and install as many as you can before you
> proceed.
> > run perl Makefile.PL as needed to see what prereqs your missing. SQLite is
> not
> > needed unless your using that DB.
> >
> > 5) run: "make && make install"
> >
> > 6) If all went well then follow the instructions found by this command:
> > "man Apache::MVC". The doc with that module seems to be the most up to
> date
> > and accurate.
> >
> > 7) Some specific details and gotchas:
> >
> > Copy the contents of the template directory to a "beerdb" folder in your
> Web
> > Document Root (/usr/local/apache/htdocs/beerdb/).
> >
> > "cp -r templates ????/htdocs/beerdb"
> >
> > Check that you have a beerdb/custom and factory and beer and a .css file.
> > Make sure that your custom/header points to that .css file or your html
> won't
> > look good.
> >
> > Make sure your BeerDB.pm is consistent with the beerdb database. USe the
> sql in
> > Apache::MVC. There are several different versions of the beerdb sql on the
> > web.
> >
> > If you don't have a "custom" folder in the "templates" directory under the
> > Maypole source tree you downloaded get one from a different Version like
> the
> > one on CPAN. But use all the factory templates that came with your source.
>
> >
> > Good luck.
> >
> >
> > --- Jay Strauss <me at heyjay.com> wrote:
> >
> >
> >>Jay Strauss wrote:
> >>
> >>>Hi,
> >>>
> >>>I've been reading up on TT and Maypole this weekend. I'm unable to find
> >>>a guide to how to setup Mod_Perl/TT/Maypole (the mod_perl/TT stuff is
> >>>pretty weak (at least the stuff I've found)).
> >>>
> >>>I guess I'm looking for something that tells me how to setup my
> >>>http.conf, a common/preferred/general directory structure for all your
> >>>code, sample files, to get a maypole app up and running, so that one may
> >>>play with it and get an idea of the moving parts. Like a best practices
> >>>guide, with samples.
> >>>
> >>>I have Apache, Mod_Perl, TT built and running. I just don't know if
> >>>I've done it in a standard, maintainable, application buildable way.
> >>>
> >>>Thanks
> >>>Jay
> >>>
> >>>_______________________________________________
> >>>maypole mailing list
> >>>maypole at lists.netthink.co.uk
> >>>http://lists.netthink.co.uk/listinfo/maypole
> >>>
> >>
> >>Let me add this if for an Apache 1 (1.31), TT2, and Maypole 1.27
> >>installation
> >>
> >>Jay
> >>
> >>_______________________________________________
> >>maypole mailing list
> >>maypole at lists.netthink.co.uk
> >>http://lists.netthink.co.uk/listinfo/maypole
> >>
> >
> >
> >
> > =====
> > pjs
> >
> Peter,
>
> Thanks for the reply. But what about all the httpd.conf, mod_perl, and
> TT stuff I have to do prior to installing Maypole?
>
> I mean, isn't there stuff I've got to put into my httpd.conf for
> Maypole? Am I supposed to use just that generic stuff that I've found
> in the TT install directions for what to put into my httpd.conf
>
> Thanks
> Jay
>
I'm assuming you have modperl already installed and running . When you start
apache, the error log will have a line in it that says "Apache1.xx / modperl
1.3/ .. . " or something if modperl is working.
Then put you BeerDB.pm file somewhere . Mine is in
/usr/local/apache2/beerdb/BeerDB.pm.
Now you have to do just two things to get it working assuming all the code is
correct and works and i'm not forgetting anything.
1) Add the location of your BeerDB.pm module to your path. I do this in a
startup.pl file with this line:
use lib '/usr/local/apache2/beerdb/';
If you don't use a startup.pl file you can read the modperl quick start manual
and make one or read how to add something to the path in httpd.conf. Not sure
exactly how to do that.
2) Tell apache that BeerDB.pm should handle requests for the beerdb location:
<Location /beerdb>
SetHandler perl-script
PerlHandler BeerDB.pm
</Location>
I believe that syntax is correct for mp1. I use modperl 2. Whatever example is
in the Apache::MVC module for this should work.
That's it. Now go to http://yourhost/beerdb/ and you should get something.
Let me know if you have any problems.
P.S. If this is new developement and it doesn't have to be compatible with
modperl 1 code than i suggest useing modperl 2 and apache 2. Many people have
used it in production code for over a year and it is very stable and close to
release.
>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>
=====
pjs
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT