RE: Apache::Session permissions problem

2003-09-14 Thread Frank Maas

 I'm afraid that is not a very good article.  It's out of date,
...
 Apache::Session::DBI (which is what the article refers to) is ancient
 and should not be used.

I stumbled upon this problem quite a few times. Trying to get the hang
of using cookies for authentication and sessions there are tons of
modules and (a bit less...) articles, but they all seem outdated or
simply not useful. So I build something myself, but am not quite sure
this was the way to go.
I had the same experience when (OT, sorry) I looked into things about
using XML in combination with (mod_)perl. Most of the articles are rather
old and I have no clue if they are outdated. Here as well I made some
choices of my own, still thinking I am at least reinventing part of the
wheel.

Is there a, or are there initiatives to keep an 'accurate' document
repository? I personally like perl.apache.org as a starting point, but
it is quite restricted to mod_perl and mod_perl alone. (This is not
meant as a rude remark!). Should and could this be broader containing
links to interesting articles on 'well known subjects'? Should we then
need som (continuous) reviewing and rating mechanism to separate the
good from the bad? Or is Google still the way to go?

--Frank

PS: Apache::Session::DBI might be ancient, when I did some research for
this mail I stumbled upon
http://perl.apache.org/docs/1.0/guide/snippets.html#An_example_of_using_Apac
he__Session__DBI_with_cookies. Perhaps it is a good beginning to try to
keep/get outdated and ancient stuff from Our Main Source of Information?



RE: Apache::Session permissions problem

2003-09-14 Thread Perrin Harkins
 Is there a, or are there initiatives to keep an 'accurate' document
 repository?

The field of knowledge is too broad for any one person to maintain,
especially since the main people who maintain the site docs are quite busy
building mod_perl 2.  This is why we count on individuals stepping up and
sending in corrections to outdated things they find in the docs.
 I personally like perl.apache.org as a starting point, but
 it is quite restricted to mod_perl and mod_perl alone. (This is not
 meant as a rude remark!). Should and could this be broader containing
 links to interesting articles on 'well known subjects'?

There are quite a few links to other sources on perl.apache.org.  My basic
rule of thumb is to start with the most specific source of documentation. 
In your case, since you are trying to use Mason, you should look on the
Mason site.  There you would have found a note that the article you read
is outdated, and a link to the current 
docs:http://masonhq.com/user/adpacifico/ApacheSessionMason.html

 PS: Apache::Session::DBI might be ancient, when I did some research for
 this mail I stumbled upon
 http://perl.apache.org/docs/1.0/guide/snippets.html#An_example_of_using_Apac 
 he__Session__DBI_with_cookies. Perhaps it is a good beginning to try to
 keep/get outdated and ancient stuff from Our Main Source of
 Information?

Yes, it would definitely be good to update or remove that snippet.  A
patch would certainly be appreciated.
- Perrin




Re: mp2 with perl-5.8.1 on Windows

2003-09-14 Thread Randy Kobes
On Fri, 12 Sep 2003, Steve Hay wrote:

 Hi,

 Has anybody else got mp2 (CVS) working with recent perl-5.8.1's on Windows?

 I've got it building, but I can't start the Apache server at all.  (It's
 fine without the mod_perl bits in the httpd.conf file.)

 See this thread on p5p for what I'm getting:

 http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-09/msg00795.html

 Cheers,
 - Steve

I also found a problem, as below:
==
Perl_safesysmalloc(unsigned int 0x0010) line 70 + 21 bytes
  : perl-5.8.1/util.c

modperl_hash_seed_init(apr_pool_t * 0x0026a7f0) line 44 + 7 bytes
  : modperl-2.0/src/modules/perl/mod_perl.c

modperl_hook_pre_config(apr_pool_t * 0x0026a7f0,
 apr_pool_t * 0x00848100, apr_pool_t * 0x0084a108) line 594 + 9 bytes
  : modperl-2.0/src/modules/perl/mod_perl.c

ap_run_pre_config(apr_pool_t * 0x00401441, apr_pool_t * 0x0026a7f0,
  apr_pool_t * 0x00848100) line 126 + 49 bytes

main(int 0x00401d82, const char * const * 0x0008) line 575 + 19 bytes

APACHE! mainCRTStartup + 227 bytes

==
which seems to be related to the safemalloc() call on line
44 of src/modules/perl/mod_perl.c. (by the way, I had to
comment out the fprintf() call at line 66 to get it to
compile, otherwise an error about my_perl being undeclared
was found).

This is with Apache/2.0.47, the current mod_perl 2 cvs, and
===
Summary of my perl5 (revision 5 version 8 subversion 1) configuration:
  Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE 
-DNO_STRICT -DHAVE_DES_FCRYPT  -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS 
-DUSE_PERLIO -DPERL_MSVCRT_READFIX',
optimize='-MD -Zi -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8
alignbytes=8, prototype=define
  Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf  
-libpath:C:\Perl\lib\CORE  -machine:x86'
libpth=\lib
libs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.lib 
advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib wsock32.lib 
mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs=  oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib 
wsock32.lib mpr.lib winmm.lib  version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
  Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf  
-libpath:C:\Perl\lib\CORE  -machine:x86'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
  Locally applied patches:
MAINT21199
  Built under MSWin32
  Compiled at Sep 14 2003 14:32:50
  @INC:
C:/Perl/lib
C:/Perl/site/lib
.
=

-- 
best regards,
randy