> Good question.
> (I forgot all about that part, didn't I?)
> It is in the "demo_report.pl" file.

Yes, I got it working. Beautiful.

Should the datasource login information go into the configuration?
In most cases I know, this should work pretty well.

In mod_perl, the connection (pool) is pre-spawned. So it should fit
well in that scenario too. People rarely change connect string in the
scripts


  Steve Lihn
  FIS Database Support, Merck & Co., Inc.
  Tel: (908) 423 - 4441



> -----Original Message-----
> From: Stephen Adkins [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 27, 2002 12:19 PM
> To: Lihn, Steve
> Cc: [EMAIL PROTECTED]
> Subject: RE: P5EEx::Blue installed
> 
> 
> Hi,
> 
> Good question.
> (I forgot all about that part, didn't I?)
> It is in the "demo_report.pl" file.
> 
> Change
> 
>   Repository => {
>     db => {
>       repositoryClass => 'P5EEx::Blue::Repository::DBI',
>       dbidriver => "mysql",
>       dbname => "p5ee_demo",
>       dbuser => "dbuser",
>       dbpass => "dbuser7",
>     },
>   },
> 
> to whatever it should be.
> 
> Stephen
> 
> At 11:55 AM 3/27/2002 -0500, Lihn, Steve wrote:
> >Stephen,
> >This is very interesting. I can go pretty far according to 
> your instruction.
> >(Of course, I modified it a little bit to suit my Apache config)
> >I got the main screen showed up. But failed on the CGI portion.
> >
> >Widget Display Error: table
> >Can't call method "prepare" on an undefined value at
> >C:/Perl/site/lib/DBIx/Compat.pm line 64. 
> >
> >Where do I set the DBI login information? 
> >
> >  Steve Lihn
> >  FIS Database Support, Merck & Co., Inc.
> >  Tel: (908) 423 - 4441
> >
> >
> >
> >> -----Original Message-----
> >> From: Stephen Adkins [mailto:[EMAIL PROTECTED]]
> >> Sent: Wednesday, March 27, 2002 11:19 AM
> >> To: Lihn, Steve
> >> Cc: [EMAIL PROTECTED]
> >> Subject: Re: P5EEx::Blue installed
> >> 
> >> 
> >> At 06:06 PM 3/26/2002 -0500, Lihn, Steve wrote:
> >> >Stephen,
> >> >I installed the P5EE Blue and point my cgi-bin directory to
> >> >/usr/local/cgi-bin/P5EEx-Blue/ successfully.
> >> >But I could not figure out how to run the demo report program as 
> >> >you have on the internet. It would be nice at least  get
> >> >something working.
> >> >
> >> >Please help.
> >> >
> >> >  Steve Lihn
> >> >  FIS Database Support, Merck & Co., Inc.
> >> >  Tel: (908) 423 - 4441
> >> 
> >> Hi,
> >> 
> >> I have been writing up the beginnings of an installation guide.
> >> 
> >> 
> >> http://www.officevision.com/pub/p5ee/software/htdocs/P5EEx/Blu
> >> e/installguide
> >> .html
> >> 
> >> So I appreciate you relating your experiences and working through
> >> things to get it working.
> >> (I spent some time over the last 4 days installing software on my
> >> Windows XP laptop in order to get P5EE running there.)
> >> 
> >> I installed ActiveState's Perl 5.6.1 and Apache 1.3.24 (binary 
> >> distribution for Win32).  The default cgi-bin directory ends up
> >> being...
> >> 
> >>    C:\Program Files\Apache Group\Apache\cgi-bin
> >> 
> >> For now, try copying your /usr/local/cgi-bin/P5EEx-Blue 
> directory to
> >> /Program Files/Apache Group/Apache/cgi-bin/P5EEx-Blue.
> >> Also, copy your /usr/local/htdocs/P5EEx-Blue directory to
> >> /Program Files/Apache Group/Apache/htdocs/P5EEx-Blue.
> >> This will make the P5EE CGI programs and images visible to Apache.
> >> (We need to figure out a more automated and standardized way
> >> to do all of this.)
> >> 
> >> Then you need to edit the "demo_report.conf" file in this 
> directory.
> >> The default (from CVS) is
> >> 
> >> 
> >> ##############################################################
> >> ###############
> >>   # $Id: demo_report.conf,v 1.3 2002/03/22 23:10:13 spadkins Exp $
> >> 
> >> ##############################################################
> >> ###############
> >> 
> >>   perlinc       = /usr/ov/acoc/dev/src/P5EEx-Blue,
> >> /usr/ov/acoc/dev/lib/perl5/5.6.0
> >>   debugmode     = record
> >>   showsession   = 1
> >>   gzip          = 1
> >>   configFile    = demo_report.pl
> >>   #sessionClass  = P5EEx::Blue::Session::Cookie
> >>   defaultWname  = app
> >>   scriptUrlDir  = /cgi-bin/pub/p5ee
> >>   scriptDir     = /usr/ov/acoc/dev/p5ee/P5EEx/Blue/cgi-bin
> >>   htmlUrlDir    = /pub/p5ee/software/htdocs
> >>   htmlDir       = /usr/ov/acoc/dev/p5ee/P5EEx/Blue/htdocs
> >>   ttTemplateDir = /usr/ov/acoc/dev/p5ee/P5EEx/Blue/template/ttdemo
> >> 
> >> Since you used a $PREFIX of "/usr/local", you should modify 
> >> this to something
> >> like the following.
> >> 
> >> 
> >> ##############################################################
> >> ###############
> >>   # $Id: demo_report.conf,v 1.3 2002/03/22 23:10:13 spadkins Exp $
> >> 
> >> ##############################################################
> >> ###############
> >> 
> >>   perlinc       = /usr/local/lib/perl5, /usr/local/lib/perl5/5.6.1
> >>   debugmode     = record
> >>   showsession   = 1
> >>   gzip          = 1
> >>   configFile    = demo_report.pl
> >>   #sessionClass  = P5EEx::Blue::Session::Cookie
> >>   defaultWname  = app
> >>   scriptUrlDir  = /cgi-bin/P5EEx-Blue
> >>   scriptDir     = /Program Files/Apache 
> >> Group/Apache/cgi-bin/P5EEx-Blue
> >>   htmlUrlDir    = /P5EEx-Blue
> >>   htmlDir       = /Program Files/Apache 
> Group/Apache/htdocs/P5EEx-Blue
> >>   ttTemplateDir = /Program Files/Apache
> >> Group/Apache/htdocs/P5EEx-Blue/template/ttdemo
> >> 
> >> The important points are to set 
> >>   * "perlinc" to point to any non-default places where Perl 
> >> modules are stored
> >>   * scriptDir to be the directory where the P5EE CGI scripts are
> >>   * scriptUrlDir to be the URL path to those scripts
> >>   * htmlDir to be the directory where the P5EE 
> >> images/style-sheets/docs are
> >>   * htmlUrlDir to be the URL path to those images/style-sheets/docs
> >> 
> >> You should then be able to get the demo to run with the 
> following URL.
> >> 
> >>   http://localhost/cgi-bin/P5EEx-Blue/p5x/demo/report
> >> 
> >> Let me know how this goes.
> >> If it fails, let me know what error you are seeing in the 
> >> Apache error log.
> >> i.e.
> >> 
> >>   /Program Files/Apache Group/Apache/logs/error.log
> >> 
> >> Stephen
> >> 
> >> 
> >> 
> >
> >-------------------------------------------------------------
> --------------
> ---
> >Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (Whitehouse Station, New 
> Jersey, USA) that
> may be confidential, proprietary copyrighted and/or legally 
> privileged, and
> is intended solely for the use of the individual or entity 
> named on this
> message.  If you are not the intended recipient, and have 
> received this
> message in error, please immediately return this by e-mail 
> and then delete it.
> >
> >=============================================================
> ==============
> ===
> >
> >
> 
> 

------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains information of 
Merck & Co., Inc. (Whitehouse Station, New Jersey, USA) that may be confidential, 
proprietary copyrighted and/or legally privileged, and is intended solely for the use 
of the individual or entity named on this message.  If you are not the intended 
recipient, and have received this message in error, please immediately return this by 
e-mail and then delete it.

==============================================================================

Reply via email to