Happy Birthday mod_perl Guide

1999-12-02 Thread Robin Berjon

Hi all,

according to the mailing list archives, the Guide was first announced on
03/12/1998 so it makes a year now ! Many kudos to Stas and to all that have
participated (the list is *long*), as well as many thanks.

Wonder how big it'll be in a year...


.Robin
"What I like about deadlines is the lovely whooshing sound they make as
they rush past." --Douglas Adams



RE: Embperl with DSO

1999-12-02 Thread Gerald Richter

> I went ahead and compiled my own Apache and mod_perl for Red Hat, but
> was curious if there is a solution for using Embperl with DSO and
> allowing for the modules to be loaded one time.
>
> I thought I had the above working with the default Red Hat 6.0
> Apache/mod_perl, but it was not "permanently" loading the modules. When
> I removed refernece to HTML::Embperl from my startup.pl file I got:
> Undefined subroutine &HTML::Embperl::handler called
>
> Mine is working now, just curious if there is something I could have
> done to keep from compiling my own. (one less step in new server setup
> and testing)
>

Using Perl module with XS code in a DSO mod_perl, still causes weired
results (see my other mail about DBI). The reason (in short) is that Apache
loads mod_perl, unloads it and loads it a second time, but the dynamic
libraries that are loaded for the XS code, don't get unloaded after the
first load. That causes strange results and could be only avoided if the XS
code libraries _not_ loaded at server startup time. If have created a
workaround (compile mod_perl with PERL_STARTUP_DONE_CHECK=1), this works at
least on NT, but seems not to work in all cases on Unix. Hopefully sometime
I will have some more time to debug this and create a real solution.

Gerald



-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



RE: An Embperl input function for protecting perl code (plus vimEmbperl mode)

1999-12-02 Thread Gerald Richter

> 
> If you're interested, you can download it from 
> http://www.somewhere.com/software/.  It's pretty tiny, the docs are 
> larger than the code.
> 
> P.S. Also on that page, although perhaps someone has already done 
> this, are the diffs for vim's html.vim module.  This version will 
> switch to Perl mode whenever it's in an Embperl tag.
> 

Great! I will put the url in the Embperl distribution.

Gerald

-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



RE: problem with JOINs using DBIx::Recordset under apache

1999-12-02 Thread Gerald Richter

Hi,
>
> We have a problem in using DBIx::Recordset module.
>
> Whenever we run the following script through Apache, the first
> invocation works fine. The second invocation causes Oracle
> to dump core. The script joins two tables (ie., destination
> and atomic_destination) and prints a column
> named DESTINATION_NAME from the first table. There is no problem,
> if I remove the join condition and Select and print the same
> column from the first table only.
>
> Another interesting observation is that this problem does
> not happen if we run the just the perl part of the script
> at command line, any number of times. Moreover, the
> problem does not occur if we disable caching of connections
> by apache. (i.e., by commenting out "PerlModule Apache::DBI" line
> in httpd.conf).
>
> The script is:
>

The script look ok. DBIx::Recordset is pure Perl, so it should never cuase a
core dump and if we watch the error message actually Oracle is core
dumping... I guess your mod_perl is compiled as dynamic module (with
USE_DSO) and _not_ linked staticly into Apache? I have seen weired behaviour
as soon as XS Code (like in DBI/DBD::Orcale) is involed in the past, when
this XS code is loaded at server startup time (PerlModule APache::DBI
actually does this). The best solution I see, build a staticly linked
mod_perl. If you really need a dynamic one, try to compile mod_perl with
PERL_STARTUP_DONE_CHECK=1, this helps at least NT for the same problem.

> 
> The versions of the dependant modules are:
>
> DBI: 1.11
> DBIx::Recordset: 0.18-beta

If you using Oracle I suggest, upgrading to the newest version, which could
be found at ftp://ftp.dev.ecos.de/pub/perl/dbi/dev

Gerald
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



Re: mod_perl SourceGarden is looking for a new home

1999-12-02 Thread Philip Jacob

Just to add a few details to Stas's note  Pat and I have both enjoyed
working with all of you and we intend to still help out with whatever we
can do.

Garth Sainio (author of Yams) is still here at the company for a while and
can hopefully help out a bit.  I don't think there's an immediate
emergency, but the site definitely needs to move somewhere else pretty
soon.

Pat and I are available at:

Pat Eyler: [EMAIL PROTECTED]
Philip Jacob: [EMAIL PROTECTED]

See you...!
phil.


Philip Jacob
[EMAIL PROTECTED]
http://www.screamdesign.com/
Tel: 978.579.0898 x229


On Thu, 2 Dec 1999, Stas Bekman wrote:

> Hi,
> 
> Lately, ScreamDesign has changed its policy regarding OSS and because of
> that mod_perl SourceGarden is looking for a new home. We would like to
> thank ScreamDesign for hosting our project for the last half a year,
> especially Pat and Philip who provided all the setup and required
> sysadministering. 
> 
> Can someone help us? We are almost ready for a beta release of the
> project, but if there will be no site there will be no project :(
> 
> What we are looking for is a company/individual to host the site and
> provide the project bandwidth and basic local sysadmin help. It would be
> nice to have linux runing on it, and for it to be a dedicated box, since
> there will be lots of mod_perl stuff running there. 
> 
> Thank you!
> 
> For those who hear about mod_perl SourceGarden for the first time, here is
> the link: http://modperl.sourcegarden.org
> 
> ___
> Stas Bekman  mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas  
> Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
> www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
> single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



[JOB] mod_perl programmer wanted in LA

1999-12-02 Thread John Jensen


TriVida corporation has an opening for a mod_perl programmer with
some database experience. 

We need your help to build a Personalization Service for the web. 
If we succeed we will be one of the highest volume sites on the web,
so you need to have some understanding of what it takes to handle
massive loads while maintaining low response times.

We're located in Culver City, 15 minutes from LAX. We're about 30 
people, but growing rapidly. We pay well, have a casual work environment,
and haven't IPO'd yet.

Requirements: Intimate knowledge of Perl 5/mod_perl/apache, 
BS from a good school, a couple of years commercial experience, 
some exposure to databases (Oracle or Sybase).

If you're interested send your resume to [EMAIL PROTECTED]

-- 
John B. Jensen
TriVida Corporation



Re: Hooking onto the core

1999-12-02 Thread Eustace, Glen

After trying alot of thing, the following is what I ended up with.  It
allows all of the ENV REDIRECT_* variables to be accessed by the cgi script
and all in all did exactly what I wanted.

Because I didn't get a lot of help from either of my earlier postings, I
assummed that either others had not already done this. My ProxyError.cgi
returns a icely formated page with some useful info to the client.  The cgi
is on the Proxy server and it is the same for every virtual site.


   ServerName planning.massey.ac.nz
   ServerAlias planning

   Alias /Error /usr/local/massey/www.support/wwwroot
   ErrorDocument 501 /Error/ProxyError.cgi
   ErrorDocument 502 /Error/ProxyError.cgi

   ProxyPass / http://pn-pc31.massey.ac.nz/
   ProxyPassReverse / http://pn-pc31.massey.ac.nz/


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Glen Eustace, Systems Engineer - Networking, Computing Services,
Massey University, Private Bag 11222, Palmerston North, N.Z.
Ph: +64 6 350 5161, Fax: +64 6 350 5607, Mobile +64 25 500 321
Pvt Ph: +64 6 356 2562



problem with JOINs using DBIx::Recordset under apache

1999-12-02 Thread Dhanabal Ekambaram

Hi,

We have a problem in using DBIx::Recordset module.

Whenever we run the following script through Apache, the first
invocation works fine. The second invocation causes Oracle
to dump core. The script joins two tables (ie., destination
and atomic_destination) and prints a column
named DESTINATION_NAME from the first table. There is no problem,
if I remove the join condition and Select and print the same
column from the first table only.

Another interesting observation is that this problem does
not happen if we run the just the perl part of the script
at command line, any number of times. Moreover, the
problem does not occur if we disable caching of connections
by apache. (i.e., by commenting out "PerlModule Apache::DBI" line
in httpd.conf).

The script is:


[-
use DBIx::Recordset;
$DB_source = "dbi:Oracle:MAVS";
$DB_user = "test";
$DB_password = "test";

*set = DBIx::Recordset->Setup({
'!DataSource'   => $DB_source,
'!Table'   => "DESTINATION, ATOMIC_DESTINATION",
'!TabRelation' =>
"DESTINATION.DESTINATION_ID=ATOMIC_DESTINATION.DESTINATION_ID"
'!Username'  => $DB_user,
'!Password'  => $DB_password
 });


$set->Select();
-]



Destination Name
[+$set[$row]{destination_name}+]


[- DBIx::Recordset::Undef('set'); -]




The error in the alert log of oracle is:

Thu Dec  2 16:29:50 1999
Errors in file /usr/oracle/admin/MAVS/udump/mavs_ora_19460.trc:
ORA-07445: exception encountered: core dump [kkrhsync()+16] [SIGSEGV]
[Address not mapped to object] [24] [] []



The versions of the dependant modules are:

DBI: 1.11
DBIx::Recordset: 0.18-beta
DBD::Oracle: 1.02
Apache: 1.3.6
modperl: 1.20-4

Platform: Sun Solaris

Any help in this regard would be highly appreciated.

Thanks,
dhanabal



Re: OT: CGI.pm (stupid) question ->Solution

1999-12-02 Thread Martin A. Langhoff

Thanks to the great Alex Krohn the problem is solved: I had forgotten to
write ENCTYPE='multipart/form-data' in the FORM tag. whoa.

Sorry again for posting OT



--
   - Martin Langhoff @ S C I M  Multimedia Technology -
- http://www.scim.net  | God is real until  -
- mailto:[EMAIL PROTECTED]  | declared integer   -




Re: PerlFreshRestart and %INC

1999-12-02 Thread Tim Bunce

On Thu, Dec 02, 1999 at 06:59:26PM +, Michael Smith wrote:
> I'm experiencing difficulties when using PerlFreshRestart modules that
> depend on %INC.  In my particular case I'm trying to use persistent
> connections in DBI through Apache-DBI, and Apache/DBI is not in %INC
> when PerlFreshRestart causes DBI to be loaded a second time.
> 
> In more detail, I've cut down my config file to little more than
> 
> PerlModule Apache::DBI
> 
> And I've altered DBI.pm to Dump out %INC to STDERR just before it checks
> it to see if it contains Apache/DBI.  With PerlFreshRestart not set I
> get this dumped out in my session.

> $VAR21 = 'Apache/DBI.pm';

> With PerlFreshRestart on, I get two dumps, one in my session window, and
> one in the error log; firstly:

> $VAR21 = 'Apache/DBI.pm';

> (just as above) and then in the error log.

> [...similar list but without Apache/DBI.pm...]

> Why does PerlFreshRestart behave like this?  I don't understand why the
> module is loaded twice, and more particularly why %INC is different the
> second time.  Oh, I suppose I should mention that this is with
> perl5.00404, apache/1.3.6 and mod_perl/1.19

And just to fill-in from the DBI perspective... near the top of DBI.pm
it says:

 # check if user wants a persistent database connection ( Apache + mod_perl )
 if ($INC{'Apache/DBI.pm'} && substr($ENV{GATEWAY_INTERFACE}||'',0,8) eq 'CGI-Perl') {
 $connect_via = "Apache::DBI::connect";
 DBI->trace_msg("DBI connect via $INC{'Apache/DBI.pm'}\n");
 }

So the problem seems to be that when the DBI gets re-loaded by
PerlFreshRestart, %INC doesn't contain 'Apache/DBI.pm'. Presumably
because Apache::DBI hasn't been loaded (yet?).

So, as Mike says, any ideas why PerlFreshRestart behaves like this?

Tim.



OT: CGI.pm (stupid) question

1999-12-02 Thread Martin A. Langhoff

hi all,

sorry for posting off-topic. Really. Shouldn't. Couldn't.

I'm having a stupid problem with an 'upload file' CGI I
wrote based on the CGI.pm documentation.

The code that is failing is at the end. The file is opened
succesfully for writing (I did try and write a string in it). The CGI
parameter is 'seen' by my script but the *magic* that makes it work both
as a string and as a filehandle is somehow broken.

Weird enough, I have a standard file-upload that does work on the
same directories and files and from the same browsers. The script is
from http://www.terminalp.com/scripts/ , written by [EMAIL PROTECTED]
.

TIA.

#!/usr/bin/perl


use CGI;
$| =1 ;

$query= new CGI;
print $query->header();


# Copy a binary file to somewhere safe
open (OUTFILE,">/net/projects/intercosta.net/vroot/upload/ul")
or print $!;
  $totalbytes=0;
  $filename = $query->param('uploaded_file');
while ($bytesread=read($filename,$buffer,1024)) {
   print OUTFILE $buffer;
 $totalbytes += $bytesread;
}
  close OUTFILE ;



print "$filename\n";
print $totalbytes;
==

--
   - Martin Langhoff @ S C I M  Multimedia Technology -
- http://www.scim.net  | God is real until  -
- mailto:[EMAIL PROTECTED]  | declared integer   -




Re: Can't load /..../Fcntl.so

1999-12-02 Thread Cliff Rayman

Are all modules, apache and perl built with the same compiler?

cliff rayman
genwax.com

Bruce Johnson wrote:

> Installing 1.19 doesn't seem to work, either.  I have obviously
> mucked something up, but I'm confounded as to what.  I've done a
> complete rebuild of Apache per the "flexible way" instructions in
> INSTALL.apaci, and whether I do it with 1.19 or 1.20, the same
> problem occurs.
>
> One problem I find during the "make test" of mod_perl is that it
> fails because the httpd binary doesn't exist yet.  I don't know
> if that's an error in the installation instructions or whether
> some other prerequisite hasn't been met.  I dimly recall having
> seen that problem when I did my original build in May.
> --
> Bruce A. JohnsonPictureVision, Inc.
> Sr. Software Engineer   250-A Exchange Pl.
> (703)925-4075   Herndon, VA 20170
> http://info.photonet.com
>
> "Bruce A. Johnson" wrote:
> >
> > I just rebuilt my Apache server (1.3.6) last week.  I enabled the
> > cern_meta module, the usertrack module, and the expires module,
> > and I upgraded mod_perl from 1.19 to 1.21.  I did a clean build
> > from the distribution tar-balls.
> >
> > My "tricky" applications seemed to work okay, so I put it into
> > production.  Now I find that one of my other apps is broken:
> >
> > > Software error:
> > >
> > > Can't load '/opt/perl/lib/5.00502/sun4-solaris/auto/Fcntl/Fcntl.so' for module
> > > Fcntl: ld.so.1: /opt/apache/bin/httpd: fatal: relocation error: file
> > > /opt/perl/lib/5.00502/sun4-solaris/auto/Fcntl/Fcntl.so: symbol main: referenced
> > > symbol not found at /opt/perl/lib/5.00502/sun4-solaris/DynaLoader.pm line 168. at
> > > (eval 168) line 3
> >
> > I don't know whether I've stumbled across a problem in mod_perl
> > 1.21 or whether I inadvertently mucked something up.  I'm
> > starting a rebuild with 1.19 to see if the problem can be
> > reproduced; however, if anyone has some advice for a dumb
> > so-and-so, I'll gladly accept it.
> >
> > Thanks!
> > --
> > Bruce A. JohnsonPictureVision, Inc.
> > Sr. Software Engineer   250-A Exchange Pl.
> > (703)925-4075   Herndon, VA 20170
> > http://info.photonet.com



Re: Can't load /..../Fcntl.so

1999-12-02 Thread Bruce Johnson

Installing 1.19 doesn't seem to work, either.  I have obviously
mucked something up, but I'm confounded as to what.  I've done a
complete rebuild of Apache per the "flexible way" instructions in
INSTALL.apaci, and whether I do it with 1.19 or 1.20, the same
problem occurs.

One problem I find during the "make test" of mod_perl is that it
fails because the httpd binary doesn't exist yet.  I don't know
if that's an error in the installation instructions or whether
some other prerequisite hasn't been met.  I dimly recall having
seen that problem when I did my original build in May.
-- 
Bruce A. JohnsonPictureVision, Inc.
Sr. Software Engineer   250-A Exchange Pl.
(703)925-4075   Herndon, VA 20170
http://info.photonet.com


"Bruce A. Johnson" wrote:
> 
> I just rebuilt my Apache server (1.3.6) last week.  I enabled the
> cern_meta module, the usertrack module, and the expires module,
> and I upgraded mod_perl from 1.19 to 1.21.  I did a clean build
> from the distribution tar-balls.
> 
> My "tricky" applications seemed to work okay, so I put it into
> production.  Now I find that one of my other apps is broken:
> 
> > Software error:
> >
> > Can't load '/opt/perl/lib/5.00502/sun4-solaris/auto/Fcntl/Fcntl.so' for module
> > Fcntl: ld.so.1: /opt/apache/bin/httpd: fatal: relocation error: file
> > /opt/perl/lib/5.00502/sun4-solaris/auto/Fcntl/Fcntl.so: symbol main: referenced
> > symbol not found at /opt/perl/lib/5.00502/sun4-solaris/DynaLoader.pm line 168. at
> > (eval 168) line 3
> 
> I don't know whether I've stumbled across a problem in mod_perl
> 1.21 or whether I inadvertently mucked something up.  I'm
> starting a rebuild with 1.19 to see if the problem can be
> reproduced; however, if anyone has some advice for a dumb
> so-and-so, I'll gladly accept it.
> 
> Thanks!
> --
> Bruce A. JohnsonPictureVision, Inc.
> Sr. Software Engineer   250-A Exchange Pl.
> (703)925-4075   Herndon, VA 20170
> http://info.photonet.com



Re: $r->args missing data

1999-12-02 Thread Ken Y. Clark

On Thu, 2 Dec 1999, Christian Gilmore wrote:

> We just updgraded from apache-1.3.3/mod_perl-1.16 to
> apache-1.3.9/mod_perl-1.21 on solaris-2.5.1. $r->args does not contain any
> data for us now when it did before during the URI translation phase.

[ snip ]

> The module:
> 
>  package TransTest;
>  use lib qw(/weblab/services/pushweb/lib);
>  use strict;
>  use Apache::Constants ':common';
>  use Apache::Log;
> 
>  sub handler {
>my($r) = @_;
>$r->handler("perl-script");
>$r->push_handlers(PerlHandler => \&transtest_handler);
>return OK;
>  }
> 
>  sub transtest_handler {
>my($r) = @_;
>my $log = $r->server->log;
> 
>$log->debug("TransTest Handler entry");
> 
>$log->debug("The Entire Request: " . $r->as_string);
>$log->debug("The Request Line: " . $r->the_request);
>$log->debug("The Path Information: " . $r->uri);
>$log->debug("The Args: " . $r->args);
> 
>my $response = "TransTest ";
>$response .= "response\n";
> 
>$r->no_cache(1);
># Apache's no-caching (as of 1.3.0) is broken.
># It just modifies stamp
>$r->header_out('Pragma', 'no-cache');
>$r->header_out('Cache-control', 'no-cache');
>$r->header_out('Content-Length', length($response));
>$r->send_http_header();
>$r->print($response);
> 
>$log->debug("TransTest Handler exit");
>  }

you might try referencing $r->main->args because you are passing $r to
your trastest_handler.  this has been a consistent thorn in my side for
many applications.  sometimes $r->main->args has it, sometimes $r->args,
and sometimes i can successfully use a CGI query object and get it from
$q->param.

hth,

ky



$r->args missing data

1999-12-02 Thread Christian Gilmore

We just updgraded from apache-1.3.3/mod_perl-1.16 to
apache-1.3.9/mod_perl-1.21 on solaris-2.5.1. $r->args does not contain any
data for us now when it did before during the URI translation phase.

We're running a minimal system, so many modules have been stripped from the
build (included is one home-grown module mod_pushweb which does no
modification whatsoever of request_rec). We put in some extra debug lines into
both apache's httpd_main.c and mod_perl's mod_perl.c.

It appears that both apache and mod_perl internally have r->args correct, yet
it doesn't make it up to the TransTest module. This same TransHandler code
worked just fine in the previous 1.3.3/1.21 build. Can anyone see the problem?

Included below are:

 * build commands we used
 * httpd.conf snippets relating to mod_perl
 * the TransTest module which demonstrates the problem
 * the error_log

The build commands for mod_perl:
 perl Makefile.PL USE_APACI=1 PERL_TRANS=1 PERL_STACKED_HANDLERS=1
 (answer 'y' to the first question, 'n' to the second)
 make all
 make install

The build commands for apache:

 configure
--disable-module=actions \
--disable-module=alias --disable-module=asis \
--disable-module=auth --disable-module=autoindex \
--disable-module=cgi --disable-module=dir \
--disable-module=env --disable-module=imap \
--disable-module=include --disable-module=mime \
--disable-module=negotiation --disable-module=setenvif \
--disable-module=status --disable-module=userdir \
--activate-module=src/modules/mod_pushweb/libmod_pushweb.a \
--activate-module=src/modules/perl/libperl.a \
--enable-module=apache_ssl
 make

>From httpd.conf:

 PerlRequire /weblab/services/pushweb/lib/TransTest.pm
 PerlTransHandler TransTest

The module:

 package TransTest;
 use lib qw(/weblab/services/pushweb/lib);
 use strict;
 use Apache::Constants ':common';
 use Apache::Log;

 sub handler {
   my($r) = @_;
   $r->handler("perl-script");
   $r->push_handlers(PerlHandler => \&transtest_handler);
   return OK;
 }

 sub transtest_handler {
   my($r) = @_;
   my $log = $r->server->log;

   $log->debug("TransTest Handler entry");

   $log->debug("The Entire Request: " . $r->as_string);
   $log->debug("The Request Line: " . $r->the_request);
   $log->debug("The Path Information: " . $r->uri);
   $log->debug("The Args: " . $r->args);

   my $response = "TransTest ";
   $response .= "response\n";

   $r->no_cache(1);
   # Apache's no-caching (as of 1.3.0) is broken.
   # It just modifies stamp
   $r->header_out('Pragma', 'no-cache');
   $r->header_out('Cache-control', 'no-cache');
   $r->header_out('Content-Length', length($response));
   $r->send_http_header();
   $r->print($response);

   $log->debug("TransTest Handler exit");
 }


 1;

 __END__

>From the error_log:

[Thu Dec  2 17:07:08 1999] [notice] Apache/1.3.9 Ben-SSL/1.37 (Unix)
mod_perl/1.21 configured -- resuming normal operations
[Thu Dec  2 17:07:08 1999] [info] Server built: Dec  1 1999 19:11:25
[Thu Dec  2 17:07:21 1999] [debug] apache_ssl.c(1718): CIPHER is RC4-MD5
[Thu Dec  2 17:07:21 1999] [debug] buff.c(263): read returned 310 rwstate=3
state=3 rstate=240 cren=0 aren=0 accept=1
[Thu Dec  2 17:07:21 1999] [error] [client 135.207.24.19] before ap_parse_uri
[Thu Dec  2 17:07:21 1999] [error] [client 135.207.24.19] after ap_parse_uri
args=foo=bar
[Thu Dec  2 17:07:21 1999] [debug] mod_perl.c(884): before callup to
perltranshandler, args=foo=bar
[Thu Dec  2 17:07:21 1999] [debug] mod_perl.c(887): after callup to
perltranshandler, args=foo=bar
[Thu Dec  2 17:07:21 1999] [debug]
/weblab/services/pushweb/lib/TransTest.pm(18): TransTest Handler entry
[Thu Dec  2 17:07:21 1999] [debug]
/weblab/services/pushweb/lib/TransTest.pm(20): The Entire Request: GET
/login=cgilmore/?foo=bar HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Charset: iso-8859-1,*,utf-8
Accept-Encoding: gzip
Accept-Language: en
Connection: Keep-Alive
Host: absent.research.att.com
User-Agent: Mozilla/4.61 [en] (X11; U; SunOS 5.7 sun4u)

HTTP/1.0 (null)


[Thu Dec  2 17:07:21 1999] [debug]
/weblab/services/pushweb/lib/TransTest.pm(21): The Request Line: GET
/login=cgilmore/?foo=bar HTTP/1.0
[Thu Dec  2 17:07:21 1999] [debug]
/weblab/services/pushweb/lib/TransTest.pm(22): The Path Information:
/login=cgilmore/
[Thu Dec  2 17:07:21 1999] [debug]
/weblab/services/pushweb/lib/TransTest.pm(23): The Args:
[Thu Dec  2 17:07:21 1999] [debug]
/weblab/services/pushweb/lib/TransTest.pm(35): TransTest Handler exit



Thanks,
Christian

-
Christian Gilmore
Senior Technical Staff Member
AT&T Labs IP Technology, Florham Park
[EMAIL PROTECTED]
http://www.research.att.com/info/cgilmore



Re: Content management system

1999-12-02 Thread Chuck O'Donnell

On Thu, Dec 02, 1999 at 09:08:19PM +, Matt Sergeant wrote:
> On Thu, 02 Dec 1999, Chuck O'Donnell wrote:
> > On Wed, Dec 01, 1999 at 04:05:06PM +0400, BeerBong wrote:
> > > Hello all!
> > > 
> > > Are there any freeware content management systems kinda Zope or simpler on
> > > Perl ?
> > > What do you can recommend ?
> > > Where I can search for its ?
> > 
> > Mason has one http://www.masonhq.com
> 
> Mason is (IIRC) a component based development system - not a content
> management system. Think of a system that automatically takes care of
> object management, versioning, a test and live server, an admin front end
> (be it web based or not) and you've got a content management system. Throw
> in something like mason for developing components and you've got something
> really interesting for non-hardcore developers. They're not for everyone,
> but in certain cases they can make life easier.

I guess I should have been more specific... I think the Mason guys
have created a fairly nice content management system built on top of
the Mason component framework. The following is taken from the Mason
site (http://www.masonhq.com/Mason-CM/)

---

  We are proud to announce the initial public release of the Mason
  Content Management system. Content Management makes it easy to
  navigate the content of a website and manage the workflow of
  information as it moves from staging to the live, production web
  site.
  
  Content Management features: 
  
  * Easily navigate multiple filesystems: create, copy, rename and edit
files and directories
  * Search for files based on file name or contents 
  * Trigger (copy) files between staging and production sites
  * Track changes between staging and production, save versions (via
Rcs)
  * Edit files on staging, with an integrated, HTML-friendly
spell-checker
  * File locking protects multiple users from editing the same file
  * Control access to directories on a per-user basis
  
  We'll be putting up a demo of Content Management soon here on
  MasonHQ, but in the meantime, download a copy and let me know what
  you think. You can also have a look at the user manual.

---

I haven't used the content management system, but we've been using
Mason for quite a while, and find it to be a very stable and usable
application framework.

Thanks,

Chuck



Re: Content management system

1999-12-02 Thread Barry Robison

On Thu, Dec 02, 1999 at 09:08:19PM +, Matt Sergeant wrote:
> On Thu, 02 Dec 1999, Chuck O'Donnell wrote:
> > On Wed, Dec 01, 1999 at 04:05:06PM +0400, BeerBong wrote:
> > > Hello all!
> > > 
> > > Are there any freeware content management systems kinda Zope or simpler on
> > > Perl ?
> > > What do you can recommend ?
> > > Where I can search for its ?
> > 
> > Mason has one http://www.masonhq.com
> 
> Mason is (IIRC) a component based development system - not a content
> management system. Think of a system that automatically takes care of
> object management, versioning, a test and live server, an admin front end
> (be it web based or not) and you've got a content management system. Throw
> in something like mason for developing components and you've got something
> really interesting for non-hardcore developers. They're not for everyone,
> but in certain cases they can make life easier.

Mason itself is a component based development system, however there is a CM system 
developed with it.

http://www.masonhq.com/Mason-CM/

--

Mason Content Management, Release 0.3b

We are proud to announce the initial public release of the Mason Content Management 
system. Content Management makes it easy to navigate the content of a website and 
manage the workflow of information as it moves from staging to the live, production 
web site.
Content Management features:
* Easily navigate multiple filesystems: create, copy, rename and edit files and 
directories
* Search for files based on file name or contents
* Trigger (copy) files between staging and production sites
* Track changes between staging and production, save versions (via Rcs)
* Edit files on staging, with an integrated, HTML-friendly spell-checker
* File locking protects multiple users from editing the same file
* Control access to directories on a per-user basis

We'll be putting up a demo of Content Management soon here on MasonHQ, but in the 
meantime, download a copy and let me know what you think. You can also have a look at 
the user manual.

Enjoy,
Mark Schmick
[EMAIL PROTECTED]

-- 
Barry Robison - [EMAIL PROTECTED]

The attraction of knowledge would be small if one did not have to overcome so
much shame on the way.



Re: Content management system

1999-12-02 Thread Matt Sergeant

On Thu, 02 Dec 1999, Pouneh Mortazavi wrote:
> > It's interesting to see such projects going on (especially since I was/am
> > working on one myself too). I'm currently working with a
> > product called "Mediasurface" - some people may have heard of it.
> > Unfortunately it just does some things all wrong, so I'm kinda working on
> > something like that - but doing everything right :)
> 
> is mediasurface a UK java-based content management system? my best friend
> wrote that if so

OK, err.. no comment :)

-- 


Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.



Re: Content management system

1999-12-02 Thread Gunther Birznieks

On Thu, 2 Dec 1999, Matt Sergeant wrote:

> On Wed, 01 Dec 1999, Andy Wardley wrote:
> > >Are there any freeware content management systems kinda Zope or simpler on
> > >Perl ?
> > 
> > There are two in development that I know about, Iaijutsu and Istore:
> > 
> >   http://www.ninjacode.com/iaijutsu
> >   http://www.employees.org/~hdumcke/IStore/IStore-0.02.tar.gz
> > 
> > We've been having some discussion on the templates list about how best to
> > combine the various efforts into one coherent application server suite.
> > There's quite some way to go until we have a "finished product", but the ball
> > is rolling and things are looking encouraging so far.
> 
> It's interesting to see such projects going on (especially since I was/am
> working on one myself too). I'm currently working with a
> product called "Mediasurface" - some people may have heard of it.
> Unfortunately it just does some things all wrong, so I'm kinda working on
> something like that - but doing everything right :)
> 
> Anyone think choice is a bad thing and I should work with the other
> projects?
> 

We are working on one too! ;)

Anyway, choice is a good thing. At least with regards to this. There are
so many ways to skin the cat. I think the best methods will eventually be
shown out, but for now, it's better to do and then see who has the best
bits of what rather than designing something entirely by committee.

In my case, we are not interested in content management, we are interested
in automating common web design patterns we have run into for years with
out web site... So a different/yet similar goal. 

Our goal is closer to SmartWorker except that SW seems highly geared
towards abstrcting a UI language whereas our focus is on functional design
patterns and leaving the UI abstraction alone.

Also our goal is forward compatibility with Java Servlets as much as
possible since we code in both off and on and it's useful for us to share
abstractions.

I guess it depends on what you want to do.

Later,
  Gunther



Re: Content management system

1999-12-02 Thread Pouneh Mortazavi

> It's interesting to see such projects going on (especially since I was/am
> working on one myself too). I'm currently working with a
> product called "Mediasurface" - some people may have heard of it.
> Unfortunately it just does some things all wrong, so I'm kinda working on
> something like that - but doing everything right :)

is mediasurface a UK java-based content management system? my best friend
wrote that if so

mizooon


> Anyone think choice is a bad thing and I should work with the other
> projects?
> 
> -- 
> 
> 
> Details: FastNet Software Ltd - XML, Perl, Databases.
> Tagline: High Performance Web Solutions
> Web Sites: http://come.to/fastnet http://sergeant.org
> Available for Consultancy, Contracts and Training.
> 



Re: Content management system

1999-12-02 Thread Jason Bodnar

I attended the session on WebDav and Apache at the OpenSource conference. At
the time the versioning stuff wasn't done but the concept seemed really
promising. It probably be worth a look if you want to do content management.

On 02-Dec-99 Matt Sergeant wrote:
> On Wed, 01 Dec 1999, Andy Wardley wrote:
>> >Are there any freeware content management systems kinda Zope or simpler on
>> >Perl ?
>> 
>> There are two in development that I know about, Iaijutsu and Istore:
>> 
>>   http://www.ninjacode.com/iaijutsu
>>   http://www.employees.org/~hdumcke/IStore/IStore-0.02.tar.gz
>> 
>> We've been having some discussion on the templates list about how best to
>> combine the various efforts into one coherent application server suite.
>> There's quite some way to go until we have a "finished product", but the
>> ball
>> is rolling and things are looking encouraging so far.
> 
> It's interesting to see such projects going on (especially since I was/am
> working on one myself too). I'm currently working with a
> product called "Mediasurface" - some people may have heard of it.
> Unfortunately it just does some things all wrong, so I'm kinda working on
> something like that - but doing everything right :)
> 
> Anyone think choice is a bad thing and I should work with the other
> projects?
> 
> -- 
> 
> 
> Details: FastNet Software Ltd - XML, Perl, Databases.
> Tagline: High Performance Web Solutions
> Web Sites: http://come.to/fastnet http://sergeant.org
> Available for Consultancy, Contracts and Training.

---
Jason Bodnar + [EMAIL PROTECTED] + Tivoli Systems

In Jail Rock house Rock, he was everything Rockabilly's about.
No, I mean he is Rockabilly. Mean, Surly, Nasty, Brute.
I mean in that movie he couldn't give a  about nothin'.
Just rockin' and rollin', livin' fast, dying young, leavin' a good lookin'
corpse.

--Clarence Worley, True Romance



Re: Content management system

1999-12-02 Thread Matt Sergeant

On Thu, 02 Dec 1999, Chuck O'Donnell wrote:
> On Wed, Dec 01, 1999 at 04:05:06PM +0400, BeerBong wrote:
> > Hello all!
> > 
> > Are there any freeware content management systems kinda Zope or simpler on
> > Perl ?
> > What do you can recommend ?
> > Where I can search for its ?
> 
> Mason has one http://www.masonhq.com

Mason is (IIRC) a component based development system - not a content
management system. Think of a system that automatically takes care of
object management, versioning, a test and live server, an admin front end
(be it web based or not) and you've got a content management system. Throw
in something like mason for developing components and you've got something
really interesting for non-hardcore developers. They're not for everyone,
but in certain cases they can make life easier.

-- 


Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.



Re: Content management system

1999-12-02 Thread Matt Sergeant

On Wed, 01 Dec 1999, Andy Wardley wrote:
> >Are there any freeware content management systems kinda Zope or simpler on
> >Perl ?
> 
> There are two in development that I know about, Iaijutsu and Istore:
> 
>   http://www.ninjacode.com/iaijutsu
>   http://www.employees.org/~hdumcke/IStore/IStore-0.02.tar.gz
> 
> We've been having some discussion on the templates list about how best to
> combine the various efforts into one coherent application server suite.
> There's quite some way to go until we have a "finished product", but the ball
> is rolling and things are looking encouraging so far.

It's interesting to see such projects going on (especially since I was/am
working on one myself too). I'm currently working with a
product called "Mediasurface" - some people may have heard of it.
Unfortunately it just does some things all wrong, so I'm kinda working on
something like that - but doing everything right :)

Anyone think choice is a bad thing and I should work with the other
projects?

-- 


Details: FastNet Software Ltd - XML, Perl, Databases.
Tagline: High Performance Web Solutions
Web Sites: http://come.to/fastnet http://sergeant.org
Available for Consultancy, Contracts and Training.



Embperl with DSO

1999-12-02 Thread Aaron Johnson

I went ahead and compiled my own Apache and mod_perl for Red Hat, but
was curious if there is a solution for using Embperl with DSO and
allowing for the modules to be loaded one time.

I thought I had the above working with the default Red Hat 6.0
Apache/mod_perl, but it was not "permanently" loading the modules. When
I removed refernece to HTML::Embperl from my startup.pl file I got:
Undefined subroutine &HTML::Embperl::handler called

Mine is working now, just curious if there is something I could have
done to keep from compiling my own. (one less step in new server setup
and testing)

Aaron Johnson



RE: Embperl and printing...

1999-12-02 Thread Gerald Richter

>
> I have a binary string that I would like to print, but it
> includes the EOF
> character ("\0").
>
> Embperl seems to cut off the string at the first terminator, whether I do:
> [+ $string +]
> or  [- print OUT $string -]
>
> However, if I print the string to a regular file, the whole string prints
> without any problems.
>
> Am I doing something wrong?  How do I print the whole string and
> nothing but
> the string?  :)
>

This maybe true, I never tried this, because the \0 is the normal string
terminating charater in C.

The only solution I see, to set the optEarlyHttpHeader option in your
httpd.conf, then you can use the normal Perl print, which should work with
binary data as well.

Gerald

-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



An Embperl input function for protecting perl code (plus vimEmbperl mode)

1999-12-02 Thread Kee Hinckley

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Sender: [EMAIL PROTECTED]
Precedence: bulk

Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii" ; format="flowed"

Although Embperl supports both Raw and Non-Raw processing of input, 
that doesn't handle situations where designers use both WYSIWYG and 
non-WYSIWYG editors (e.g. DreamWeaver and BBEdit).  That's how I 
typically do my work (or in vi/vim), and I'd rather not program in 
DreamWeaver-encoded Perl.

To manage this, you can wrap some tags in something that causes the 
browser ignore the contents.  The most obvious one is <% ... %>, 
which most editors will take as referring to ASP code.  This works 
great in DreamWeaver.  However you can really only wrap it around 
Embperl tags that don't do any output.  To get around that problem I 
wrote an Embperl input method that strips all <% and %> tags from the 
input prior to sending it for processing by Embperl. This allows 
Embperl commands to be embedded within ASP-style tags so that WYSIWYG 
editors won't touch them.

If you're interested, you can download it from 
http://www.somewhere.com/software/.  It's pretty tiny, the docs are 
larger than the code.

P.S. Also on that page, although perhaps someone has already done 
this, are the diffs for vim's html.vim module.  This version will 
switch to Perl mode whenever it's in an Embperl tag.

Kee HinckleySomewhere Consulting Group - Consultants without the cubes(tm)

I'm not sure which upsets me more: that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.2 for non-commercial use 

iQA/AwUBOEa+qyZsPfdw+r2CEQJ6hACg1HmqCo6vwHHTUZ7Hpq56B8MoHBQAoLXz
aRVIPmb+ggTK/p3CYQT7HbQY
=RXkg
-END PGP SIGNATURE-



Re: Content management system

1999-12-02 Thread Chuck O'Donnell

On Wed, Dec 01, 1999 at 04:05:06PM +0400, BeerBong wrote:
> Hello all!
> 
> Are there any freeware content management systems kinda Zope or simpler on
> Perl ?
> What do you can recommend ?
> Where I can search for its ?

Mason has one http://www.masonhq.com

chuck


> 
> --
> Sergey Polyakov (BeerBong)
> Chief of Web Lab (http://www.mustdie.ru/~beerbong)
> 
> 
> 



RE: mod_perl SourceGarden is looking for a new home

1999-12-02 Thread Baiju Thakkar

> 
> Talk to SourceForge which is sponsored by VA Linux Systems.
> 
> http://www.sourceforge.com/
> 
> I don't think they currently support mod_perl, but I bet they can be
> convinced if you ask nice.
> 

Also, The sourceexchange might be something to look at.

http://www.sourceexchange.com/

I see they are affiliated with o'rielly.

Baiju Thakkar

Just use Perl;



Re: mod_perl SourceGarden is looking for a new home

1999-12-02 Thread Aaron Turner


Talk to SourceForge which is sponsored by VA Linux Systems.

http://www.sourceforge.com/

I don't think they currently support mod_perl, but I bet they can be
convinced if you ask nice.

--
Aaron Turner, Core Developer   http://vodka.linuxkb.org/~aturner/
Linux Knowledge Base Organization  http://linuxkb.org/
Because world domination requires quality open documentation.
aka: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]

On Thu, 2 Dec 1999, Stas Bekman wrote:

> Hi,
> 
> Lately, ScreamDesign has changed its policy regarding OSS and because of
> that mod_perl SourceGarden is looking for a new home. We would like to
> thank ScreamDesign for hosting our project for the last half a year,
> especially Pat and Philip who provided all the setup and required
> sysadministering. 
> 
> Can someone help us? We are almost ready for a beta release of the
> project, but if there will be no site there will be no project :(
> 
> What we are looking for is a company/individual to host the site and
> provide the project bandwidth and basic local sysadmin help. It would be
> nice to have linux runing on it, and for it to be a dedicated box, since
> there will be lots of mod_perl stuff running there. 



PerlFreshRestart and %INC

1999-12-02 Thread Michael Smith

I'm experiencing difficulties when using PerlFreshRestart modules that
depend on %INC.  In my particular case I'm trying to use persistent
connections in DBI through Apache-DBI, and Apache/DBI is not in %INC
when PerlFreshRestart causes DBI to be loaded a second time.

In more detail, I've cut down my config file to little more than

PerlModule Apache::DBI

And I've altered DBI.pm to Dump out %INC to STDERR just before it checks
it to see if it contains Apache/DBI.  With PerlFreshRestart not set I
get this dumped out in my session.

$VAR1 = 'Data/Dumper.pm';
$VAR2 = '/opt/perl5.004_04/lib/site_perl/Data/Dumper.pm';
$VAR3 = 'Carp.pm';
$VAR4 = '/opt/perl5.004_04/lib/Carp.pm';
$VAR5 = 'Config.pm';
$VAR6 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/Config.pm';
$VAR7 = 'Apache/Server.pm';
$VAR8 = '/opt/perl5.004_04/lib/site_perl/Apache/Server.pm';
$VAR9 = 'Exporter.pm';
$VAR10 = '/opt/perl5.004_04/lib/Exporter.pm';
$VAR11 = 'strict.pm';
$VAR12 = '/opt/perl5.004_04/lib/strict.pm';
$VAR13 = 'overload.pm';
$VAR14 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/overload.pm';
$VAR15 = 'vars.pm';
$VAR16 = '/opt/perl5.004_04/lib/vars.pm';
$VAR17 = 'Apache/Constants.pm';
$VAR18 = '/opt/perl5.004_04/lib/site_perl/Apache/Constants.pm';
$VAR19 = 'DBI.pm';
$VAR20 = '/opt/perl5.004_04/lib/site_perl/DBI.pm';
$VAR21 = 'Apache/DBI.pm';
$VAR22 = '/opt/perl5.004_04/lib/site_perl/Apache/DBI.pm';
$VAR23 = 'AutoLoader.pm';
$VAR24 = '/opt/perl5.004_04/lib/AutoLoader.pm';
$VAR25 = 'Apache/Connection.pm';
$VAR26 = '/opt/perl5.004_04/lib/site_perl/Apache/Connection.pm';
$VAR27 = 'Apache/Constants/Exports.pm';
$VAR28 = '/opt/perl5.004_04/lib/site_perl/Apache/Constants/Exports.pm';
$VAR29 = 'Apache.pm';
$VAR30 = '/opt/perl5.004_04/lib/site_perl/Apache.pm';
$VAR31 = 'mod_perl.pm';
$VAR32 = '/opt/perl5.004_04/lib/site_perl/mod_perl.pm';
$VAR33 = 'DynaLoader.pm';
$VAR34 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/DynaLoader.pm';

With PerlFreshRestart on, I get two dumps, one in my session window, and
one in the error log; firstly:

$VAR1 = 'Data/Dumper.pm';
$VAR2 = '/opt/perl5.004_04/lib/site_perl/Data/Dumper.pm';
$VAR3 = 'Carp.pm';
$VAR4 = '/opt/perl5.004_04/lib/Carp.pm';
$VAR5 = 'Config.pm';
$VAR6 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/Config.pm';
$VAR7 = 'Apache/Server.pm';
$VAR8 = '/opt/perl5.004_04/lib/site_perl/Apache/Server.pm';
$VAR9 = 'Exporter.pm';
$VAR10 = '/opt/perl5.004_04/lib/Exporter.pm';
$VAR11 = 'strict.pm';
$VAR12 = '/opt/perl5.004_04/lib/strict.pm';
$VAR13 = 'overload.pm';
$VAR14 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/overload.pm';
$VAR15 = 'vars.pm';
$VAR16 = '/opt/perl5.004_04/lib/vars.pm';
$VAR17 = 'Apache/Constants.pm';
$VAR18 = '/opt/perl5.004_04/lib/site_perl/Apache/Constants.pm';
$VAR19 = 'DBI.pm';
$VAR20 = '/opt/perl5.004_04/lib/site_perl/DBI.pm';
$VAR21 = 'Apache/DBI.pm';
$VAR22 = '/opt/perl5.004_04/lib/site_perl/Apache/DBI.pm';
$VAR23 = 'AutoLoader.pm';
$VAR24 = '/opt/perl5.004_04/lib/AutoLoader.pm';
$VAR25 = 'Apache/Connection.pm';
$VAR26 = '/opt/perl5.004_04/lib/site_perl/Apache/Connection.pm';
$VAR27 = 'Apache/Constants/Exports.pm';
$VAR28 = '/opt/perl5.004_04/lib/site_perl/Apache/Constants/Exports.pm';
$VAR29 = 'Apache.pm';
$VAR30 = '/opt/perl5.004_04/lib/site_perl/Apache.pm';
$VAR31 = 'mod_perl.pm';
$VAR32 = '/opt/perl5.004_04/lib/site_perl/mod_perl.pm';
$VAR33 = 'DynaLoader.pm';
$VAR34 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/DynaLoader.pm';

(just as above) and then in the error log.

$VAR1 = 'Config.pm';
$VAR2 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/Config.pm';
$VAR3 = 'Carp.pm';
$VAR4 = '/opt/perl5.004_04/lib/Carp.pm';
$VAR5 = 'Data/Dumper.pm';
$VAR6 = '/opt/perl5.004_04/lib/site_perl/Data/Dumper.pm';
$VAR7 = 'Apache/Server.pm';
$VAR8 = '/opt/perl5.004_04/lib/site_perl/Apache/Server.pm';
$VAR9 = 'strict.pm';
$VAR10 = '/opt/perl5.004_04/lib/strict.pm';
$VAR11 = 'Exporter.pm';
$VAR12 = '/opt/perl5.004_04/lib/Exporter.pm';
$VAR13 = 'overload.pm';
$VAR14 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/overload.pm';
$VAR15 = 'vars.pm';
$VAR16 = '/opt/perl5.004_04/lib/vars.pm';
$VAR17 = 'Apache/Constants.pm';
$VAR18 = '/opt/perl5.004_04/lib/site_perl/Apache/Constants.pm';
$VAR19 = 'DBI.pm';
$VAR20 = '/opt/perl5.004_04/lib/site_perl/DBI.pm';
$VAR21 = 'AutoLoader.pm';
$VAR22 = '/opt/perl5.004_04/lib/AutoLoader.pm';
$VAR23 = 'mod_perl.pm';
$VAR24 = '/opt/perl5.004_04/lib/site_perl/mod_perl.pm';
$VAR25 = 'DynaLoader.pm';
$VAR26 = '/opt/perl5.004_04/lib/sun4-solaris/5.00404/DynaLoader.pm';

Why does PerlFreshRestart behave like this?  I don't understand why the
module is loaded twice, and more particularly why %INC is different the
second time.  Oh, I suppose I should mention that this is with
perl5.00404, apache/1.3.6 and mod_perl/1.19

Michael Smith



Embperl and printing...

1999-12-02 Thread Arnel Estanislao

I have a binary string that I would like to print, but it includes the EOF 
character ("\0").

Embperl seems to cut off the string at the first terminator, whether I do:
[+ $string +]
or  [- print OUT $string -]

However, if I print the string to a regular file, the whole string prints 
without any problems.

Am I doing something wrong?  How do I print the whole string and nothing but 
the string?  :)

Thanks...

Arnel

__
Get Your Private, Free Email at http://www.hotmail.com



mod_perl SourceGarden is looking for a new home

1999-12-02 Thread Stas Bekman

Hi,

Lately, ScreamDesign has changed its policy regarding OSS and because of
that mod_perl SourceGarden is looking for a new home. We would like to
thank ScreamDesign for hosting our project for the last half a year,
especially Pat and Philip who provided all the setup and required
sysadministering. 

Can someone help us? We are almost ready for a beta release of the
project, but if there will be no site there will be no project :(

What we are looking for is a company/individual to host the site and
provide the project bandwidth and basic local sysadmin help. It would be
nice to have linux runing on it, and for it to be a dedicated box, since
there will be lots of mod_perl stuff running there. 

Thank you!

For those who hear about mod_perl SourceGarden for the first time, here is
the link: http://modperl.sourcegarden.org

___
Stas Bekman  mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com




Re: user registration/login system

1999-12-02 Thread James G Smith

"Arnel Estanislao" <[EMAIL PROTECTED]> wrote:
>Hello,
>
>I sent this email out yesterday, but it didn't seem to reach the list. My 
>apologies if you get this twice.
>
>Is there a "best way" to accomplish the following user registration/login 
>system:
>
>- User attempts to visit a password-protected section of the site.
>- If user is not yet authenticated (using DBI/DBD::Pg), user is redirected 
>to a login/registration page.  (We are NOT using Basic authentication).
>- User logs in or registers.
>- User is given a session key and is taken to the URL they were originally 
>trying to visit.
>- Session expires after X amount of time.
>
>We're thinking about using "Authen::Ticket" or "Apache::AuthCookie", but 
>wanted to get some real-world validation of our approach, or find out about 
>other modules that have been used to successfully implement the above.

Please be aware that Authen::Ticket is still considered in development.
The documented API is subject to minor changes in upcoming releases, 
which means if you upgrade the module, check the Changes file.
However, it does provide for easy session expirations and can do all
the other things in the bulleted list.
-- 
James Smith <[EMAIL PROTECTED]>, 409-862-3725
Texas A&M CIS Operating Systems Group, Unix



Can't load /..../Fcntl.so

1999-12-02 Thread Bruce A. Johnson

I just rebuilt my Apache server (1.3.6) last week.  I enabled the
cern_meta module, the usertrack module, and the expires module,
and I upgraded mod_perl from 1.19 to 1.21.  I did a clean build
from the distribution tar-balls.

My "tricky" applications seemed to work okay, so I put it into
production.  Now I find that one of my other apps is broken:

> Software error:
> 
> Can't load '/opt/perl/lib/5.00502/sun4-solaris/auto/Fcntl/Fcntl.so' for module
> Fcntl: ld.so.1: /opt/apache/bin/httpd: fatal: relocation error: file
> /opt/perl/lib/5.00502/sun4-solaris/auto/Fcntl/Fcntl.so: symbol main: referenced
> symbol not found at /opt/perl/lib/5.00502/sun4-solaris/DynaLoader.pm line 168. at
> (eval 168) line 3 

I don't know whether I've stumbled across a problem in mod_perl
1.21 or whether I inadvertently mucked something up.  I'm
starting a rebuild with 1.19 to see if the problem can be
reproduced; however, if anyone has some advice for a dumb
so-and-so, I'll gladly accept it.

Thanks!
-- 
Bruce A. JohnsonPictureVision, Inc.
Sr. Software Engineer   250-A Exchange Pl.
(703)925-4075   Herndon, VA 20170
http://info.photonet.com



RE: Query/Parse/Format/Display ?

1999-12-02 Thread ricarDo oliveiRa

Hi.

You can use the get() method of LWP:Simple or the LWP:UserAgent,
HTTP:Request and HTTP:Response methods. Both ways of doing it are described
on recipe 20.1 of O'Reilly's "Perl Cookbook" (Tom Christiansen and Nathan
Torkington).

good luck
./ricarDo oliveiRa

--Original Message--
From: raptor <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]<[EMAIL PROTECTED]>
Sent: December 2, 1999 8:47:35 PM GMT
Subject: Query/Parse/Format/Display ?


hi,

I want to make the following :
1. Query a site ?
2. Get the results of the query in my script (we are still in Apache)
3. Exctract the information I need ?
4. Fomat it and send to the browser ?

Does someone made something similar. Example ?
Thanx in advance

=
iVAN
[EMAIL PROTECTED]
==

__
FREE Email for ALL! Sign up at http://www.mail.com



new Apache::Album uploaded to CPAN...

1999-12-02 Thread Jim Woodgate


I just uploaded it so it may take a little while to get to all the
mirrors, but the new version is 0.92
 
Seems everyone has a digital camera these days (and their own Album
module as well!), and my friends were bugging me to add some new
features, so I did...
 
You can see a sample album at:
 
http://yoda.jedi.net/demo/albums/1999/Demo_Page/
 
(I realize the background picture is a bit much, it's mainly to show
how it's done... :)


The new module will allow picture uploads (if it's enabled), so
Apache::Request is now a prereq (Image::Magick is also still a prereq)


Here's the top of the Changes file:

Revision history for mod_perl module Apache::Album.
 
0.92  Wed Dec  1 23:16:00 1999
- Added Sm Med Lg tags if AllowFinalResize is set, this creates smaller
  versions of the pictures, for people with small screens and/or small
  bandwidth
- Added ReverseDirs/ReversePics which if set reverses the sort order
  of directories/pictures
- Added EditMode which if set allows the end user to create new albums
  and upload pictures


And here's the top of the README

NAME
Apache::Album - Simple mod_perl Photo Album

SYNOPSIS
Add to httpd.conf

 
   
 É   PerlHandler Apache::Album
#   PerlSetVar  AlbumDir/albums_loc
#   PerlSetVar  ThumbNailUseWidth
#   PerlSetVar  ThumbNailWidth  100
#   PerlSetVar  ThumbNailAspect 2/11
#   PerlSetVar  ThumbSubDir thumbs
#   PerlSetVar  DefaultBrowserWidth 640
#   PerlSetVar  OutsideTableBorder  0
#   PerlSetVar  InsideTablesBorder  0
#   PerlSetVar  BodyArgsBGCOLOR=white
#   PerlSetVar  Footer  "Optional Footer Here"
#   PerlSetVar  EditMode0
#   PerlSetVar  AllowFinalResize0
#   PerlSetVar  FinalResizeDir  thumbs
#   PerlSetVar  ReverseDirs 0
#   PerlSetVar  ReversePics 0
 
 
ABSTRACT
This is a simple photo album. You simply copy some gif's/jpeg's to
a directory, create an optional text block (in a file called
caption.txt) to go at the top, and the module does the rest. It does
however require that PerlMagick be installed.  Default settings in the
httpd.conf file may be overridden by creating a .htaccess file in the
same directory as the image files and the caption.txt file.

enjoy...

-- 
[EMAIL PROTECTED]



Re: Query/Parse/Format/Display ?

1999-12-02 Thread Victor Zamouline

>> I want to make the following :
>> 1. Query a site ?

Send an HTTP GET.

>> 2. Get the results of the query in my script (we are still in Apache)

That's where you will get them. You will receive a content representing a
valid HTML document.

>> 3. Exctract the information I need ?

You will need need an HTML parser or simple Perl RegExp's. You will also
have to make sure the site does not modify its formatting model. Unless you
sign a partnership program with that site, their formatting model is the
only thing you can rely upon. :)))

>> 4. Fomat it and send to the browser ?

Once you get the data structure, you just format it anyway you want.

Victor.



Re: Query/Parse/Format/Display ?

1999-12-02 Thread Stas Bekman

> I want to make the following :
> 1. Query a site ?
> 2. Get the results of the query in my script (we are still in Apache)
> 3. Exctract the information I need ?
> 4. Fomat it and send to the browser ?

A simple registry script will do it, I don't see the catch? LWP is your
friend.

> 
> Does someone made something similar. Example ?
> Thanx in advance
> 
> =
> iVAN
> [EMAIL PROTECTED]
> ==
> 
> 



___
Stas Bekman  mailto:[EMAIL PROTECTED]www.singlesheaven.com/stas  
Perl,CGI,Apache,Linux,Web,Java,PC at  www.singlesheaven.com/stas/TULARC
www.apache.org  & www.perl.com  == www.modperl.com  ||  perl.apache.org
single o-> + single o-+ = singlesheavenhttp://www.singlesheaven.com



Query/Parse/Format/Display ?

1999-12-02 Thread raptor

hi,

I want to make the following :
1. Query a site ?
2. Get the results of the query in my script (we are still in Apache)
3. Exctract the information I need ?
4. Fomat it and send to the browser ?

Does someone made something similar. Example ?
Thanx in advance

=
iVAN
[EMAIL PROTECTED]
==



RE: conf file precedence

1999-12-02 Thread Eric Cholet

> I have the following in my conf file:
> 
> # Framed applications
> ProxyPass /frames http://sw3.tivoli.com:81/frames
> ProxyPassReverse /frames http://sw3.tivoli.com:81/frames
> 
> # Begin Apache::ProxyStuff stuff
> PerlModule Apache::ProxyStuff
> 
> 
> SetHandler  perl-script
> PerlHandler Apache::ProxyStuff
> PerlSetVar  HeaderFile  /includes/home_top_table.html
> PerlSetVar  FooterFile  /includes/footer.html
> PerlSetVar  BodyAttributes  "TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0
> MARGINWIDTH=0"
> PerlSetVar  ProxyPrefix http://sw3.tivoli.com:81
> 

[snip] 

> The problem I've run into is even though I've set up ProxyPass rules for
> /frames it's getting handled by Apache::ProxyStuff. I though apache would apply
> the most specific rule (in this case /frames over /) but that doesn't seem to
> be happening. I tried moving the ProxyPass stuff to the end of the file in
> hopes it would take the last rule that applied but that didn't work either.

This recent change to Apache _may_ explain it (I'm not sure, haven't tried it):

  +  *) Fix problem with proxy configuration where globally set configuration
  + options were overridden inside virtual hosts.
  + [Graham Leggett <[EMAIL PROTECTED]>]
  +

Before that change mod_proxy didn't merge per-directory configuration at request
time. Could you try a CVS snapshot of Apache and see if that fixes your problem?

--
Eric



RE: Embperl static link problem

1999-12-02 Thread Gerald Richter

>
> I've not tried this before. I'm not using mod_perl or Apache
> for this. What I'm trying to do is use the Java JNI to call a
> C program which then calls a perl script which calls the embed perl
> and passes it the html+embedperl + parameters.
>
> I'm trying to statically link it as the perlembed used by
> the C program needs the embed perl module to be statically
> linked.
>
> I have set up mod_perl + apache + embed perl in the past and
> it worked fine but that is not the best solution for the
> current system I'm building as I do not want to execute the
> embedperl code by mod_perl as the web page is being served
> by apache.
>
> I enclose the generated file.
>

It contains the line

EXTERN_C void boot_Embperl.a _((CV* cv));

which I think is not vaild C Code. Maybe upgrading to a new version of
MakeMaker or other modules involved building Perl, helps, but I don't know.
Sorry.

Gerald

P.S. If you find any solution, let me know so I can update the FAQ

-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



Re: PerlLogHandler - bytes always zero for proxy requests

1999-12-02 Thread Brian S. Craigie

Hi Doug,

Thanks and sorry if I looked impatient :-)

I'm glad that this was spotted.  I thought I was doing something wrong.  I'm
assuming you are referring to the cvs snapshot of mod_perl?  It wasn't clear
in my own mind where the problem lay, but I was pretty certain it wasn't in
either of the DBI logger modules.

I'll check out the CVS.  Many thanks.

Best Regards,

Brian

Doug MacEachern wrote:

> On Wed, 1 Dec 1999, Brian S. Craigie wrote:
>
> > I presume from the lack of response that nobody knows the answer to this
> > one?  Or have I sent this to the wrong mailing list?  Or is it a stupid
> > question?
>
> or because you just posted on monday and some people have been extra
> super buzy with other things?
> have a look at the cvs snapshot and the Changes file, the problem was
> fixed a while back:
>
> if $r->bytes_sent has not been calculated, then do so before returning
> the value.  thanks to Dirk Melchers for the spot



RE: Embperl static link problem

1999-12-02 Thread Feargal Finnegan

I've not tried this before. I'm not using mod_perl or Apache
for this. What I'm trying to do is use the Java JNI to call a 
C program which then calls a perl script which calls the embed perl
and passes it the html+embedperl + parameters.

I'm trying to statically link it as the perlembed used by
the C program needs the embed perl module to be statically
linked. 

I have set up mod_perl + apache + embed perl in the past and
it worked fine but that is not the best solution for the
current system I'm building as I do not want to execute the
embedperl code by mod_perl as the web page is being served
by apache.

I enclose the generated file.

Thanks

Feargal



> -Original Message-
> From: Gerald Richter [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 02, 1999 11:40 AM
> To: Feargal Finnegan; [EMAIL PROTECTED]
> Subject: RE: Embperl static link problem
>
> I never tried this on my own. Have build other extentions already
> successfull in this way? Have you a running mod_perl? or don't you use
> mod_perl? Could you send me the generated file perlmain.c?
> 
> Maybe anybody else have successfully done this before?
>


 perlmain.c


RE: Embperl static link problem

1999-12-02 Thread Gerald Richter

Hi
>
> I am currently trying to statically link the embperl
> module into my perl executable. The platform that I'm on
> is Solaris 2.6. From reading the instructions it
> says that I sould first configure the makefiles
> with perl Makefile.PL. This goes ok. Then to statically
> link the embedperl I should do "make perl" from the
> embed perl directory. I do this but get the following
> error message.

I never tried this on my own. Have build other extentions already
successfull in this way? Have you a running mod_perl? or don't you use
mod_perl? Could you send me the generated file perlmain.c?

Maybe anybody else have successfully done this before?

Gerald


>
> ///
> Writing perlmain.c
> cd . && gcc -c  -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE
> -I/usr/local/include -O \
>-DVERSION=\"1.2.0\" \
> -DXS_VERSION=\"1.2.0\" -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE
> perlmain.c
> perlmain.c:67: parse error before `.'
> perlmain.c: In function `xs_init':
> perlmain.c:82: request for member `a' in something not a
> structure or union
> make: *** [perlmain.o] Error 1
> *** Error code 2
> make: Fatal error: Command failed for target `perl'
> /
>
> Am I doing this the correct way or have I missed something?
>
> The line in perl main that generates the error is:
> newXS("Embperl.a::bootstrap", boot_Embperl.a, file);
>
> Thanks
>
> Feargal
>



-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-



Embperl static link problem

1999-12-02 Thread Feargal Finnegan

Hi

I am currently trying to statically link the embperl
module into my perl executable. The platform that I'm on
is Solaris 2.6. From reading the instructions it
says that I sould first configure the makefiles
with perl Makefile.PL. This goes ok. Then to statically
link the embedperl I should do "make perl" from the
embed perl directory. I do this but get the following 
error message.

///
Writing perlmain.c
cd . && gcc -c  -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE
-I/usr/local/include -O \
   -DVERSION=\"1.2.0\" \
-DXS_VERSION=\"1.2.0\" -I/usr/local/lib/perl5/5.00503/sun4-solaris/CORE
perlmain.c
perlmain.c:67: parse error before `.'
perlmain.c: In function `xs_init':
perlmain.c:82: request for member `a' in something not a structure or union
make: *** [perlmain.o] Error 1
*** Error code 2
make: Fatal error: Command failed for target `perl'
/

Am I doing this the correct way or have I missed something?

The line in perl main that generates the error is:
newXS("Embperl.a::bootstrap", boot_Embperl.a, file);

Thanks

Feargal



RE: conf file precedence

1999-12-02 Thread Gerald Richter

> I have the following in my conf file:
>
> # Framed applications
> ProxyPass /frames http://sw3.tivoli.com:81/frames
> ProxyPassReverse /frames http://sw3.tivoli.com:81/frames
>
> # Begin Apache::ProxyStuff stuff
> PerlModule Apache::ProxyStuff
>
> 
> SetHandler  perl-script
> PerlHandler Apache::ProxyStuff
> PerlSetVar  HeaderFile  /includes/home_top_table.html
> PerlSetVar  FooterFile  /includes/footer.html
> PerlSetVar  BodyAttributes  "TOPMARGIN=0 LEFTMARGIN=0 MARGINHEIGHT=0
> MARGINWIDTH=0"
> PerlSetVar  ProxyPrefix http://sw3.tivoli.com:81
> 
>
> (Apache::ProxyStuff is similar to Apache::Sandwich but it gets files from
> remote servers and allows you to mess with the content. Once we
> put it into
> production and I get approval from the higher ups I'm going to make it
> available on CPAN.)
>
> The problem I've run into is even though I've set up ProxyPass rules for
> /frames it's getting handled by Apache::ProxyStuff. I though
> apache would apply
> the most specific rule (in this case /frames over /) but that
> doesn't seem to
> be happening. I tried moving the ProxyPass stuff to the end of the file in
> hopes it would take the last rule that applied but that didn't
> work either.
>

Also I not tried it out with ProxyPass, adding


SetHandler  none


after the



has solved a similar problem for me.

Gerald


-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-