cvs commit: modperl-2.0/xs typemap

2002-04-09 Thread dougm

dougm   02/04/09 13:19:25

  Modified:xs   typemap
  Log:
  override T_PTROBJ INPUT typemap to croak if object is not a blessed
  reference, to prevent possible segv from e.g. Apache::Server-process
  
  Revision  ChangesPath
  1.6   +11 -0 modperl-2.0/xs/typemap
  
  Index: typemap
  ===
  RCS file: /home/cvs/modperl-2.0/xs/typemap,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- typemap   25 Sep 2001 19:44:03 -  1.5
  +++ typemap   9 Apr 2002 20:19:25 -   1.6
   -19,6 +19,17 
   
   ##
   INPUT
  +T_PTROBJ
  + if (SvROK($arg)  sv_derived_from($arg, \${ntype}\)) {
  + IV tmp = SvIV((SV*)SvRV($arg));
  + $var = INT2PTR($type,tmp);
  + }
  + else {
  + Perl_croak(aTHX_ SvROK($arg) ?
  +   \$var is not of type ${ntype}\ :
  +   \$var is not a blessed reference\);
  +}
  +
   T_APACHEOBJ
$var = modperl_xs_sv2request_rec(aTHX_ $arg, \$ntype\, cv)
   
  
  
  



Re: mod_perl-1.99_01 make test fails

2002-04-09 Thread Jie Gao

Sorry, I got the wrong version. :-(


Jie

On Tue, 9 Apr 2002, Jie Gao wrote:

 Date: Tue, 9 Apr 2002 16:25:24 +1000 (EST)
 From: Jie Gao [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: mod_perl-1.99_01 make test fails

 Hi Doug,

 Apache 2.0.35 + modperl_20020409042640
 uname -a:
 Linux xxx.xxx.xx.xx 2.4.18-01-shuckle #4 Fri Apr 5 12:42:54 EST 2002 i686 unknown

 perl -V
   Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
   Platform:
 osname=linux, osvers=2.4.17-0.13smp, archname=i386-linux
 uname='linux daffy.perf.redhat.com 2.4.17-0.13smp #1 smp fri feb 1 10:30:48 est 
2002 i686 unknown '
 config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -Dcc=gcc -Dcf_by=Red 
Hat, Inc. -Dcccdlflags=-fPIC
 -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Uusethreads -Uuseithreads 
-Uuselargefiles -Dd_dosuid
 -Dd_semctl_semun -Di_db -Di_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm 
-Dlocincpth='
 hint=recommended, useposix=true, d_sigaction=define
 usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
 useperlio=undef d_sfio=undef uselargefiles=undef usesocks=undef
 use64bitint=undef use64bitall=undef uselongdouble=undef
   Compiler:
 cc='gcc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
 optimize='-O2 -march=i386 -mcpu=i686',
 cppflags='-fno-strict-aliasing -I/usr/local/include'
 ccversion='', gccversion='2.96 2731 (Red Hat Linux 7.1 2.96-98)', 
gccosandvers=''
 intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
 alignbytes=4, usemymalloc=n, prototype=define
   Linker and Libraries:
 ld='gcc', ldflags =' -L/usr/local/lib'
 libpth=/usr/local/lib /lib /usr/lib
 libs=-lnsl -ldl -lm -lc -lcrypt -lutil
 perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
 libc=/lib/libc-2.2.4.so, so=so, useshrplib=false, libperl=libperl.a
   Dynamic Linking:
 dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
 cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


 Characteristics of this binary (from libperl):
   Compile-time options:
   Built under linux
   Compiled at Feb 20 2002 15:01:16
   @INC:
 /usr/lib/perl5/5.6.1/i386-linux
 /usr/lib/perl5/5.6.1
 /usr/lib/perl5/site_perl/5.6.1/i386-linux
 /usr/lib/perl5/site_perl/5.6.1
 /usr/lib/perl5/site_perl

 perl Makefile.PL APACHE_SRC=../apache+mod_perl/src DO_HTTPD=1 USE_APACI=1 
PREP_HTTPD=1 EVERYTHING=1 PERL_TRACE=1

 # make test
 ...

 /usr/bin/perl t/TEST 0
 modules/actions.ok
 modules/cgi.ok
 modules/constants...ok
 modules/cookie..skipped test on this platform
 modules/embperl.skipped test on this platform
 modules/eperl...skipped test on this platform
 modules/fileok
 modules/httpdconf...ok
 modules/include.ok
 modules/log.ok
 modules/module..skipped test on this platform
 modules/perlrun.ok
 modules/perlrunxs...skipped test on this platform
 modules/psections...skipped test on this platform
 modules/request.skipped test on this platform
 modules/sandwichskipped test on this platform
 modules/src.ok
 modules/ssi.ok
 modules/stage...skipped test on this platform
 modules/status..ok
 modules/symbol..skipped test on this platform
 modules/uri.ok
 modules/utilok
 internal/apiFAILED test 18
 Failed 1/87 tests, 98.85% okay
 internal/auth...ok
 internal/croak..ok
 internal/dirmagic...ok
 internal/error..ok
 internal/headersok
 internal/hooks..ok
 internal/http-get...ok
 internal/http-post..ok
 internal/proxy..ok
 internal/redirect...ok
 internal/rwrite.ok
 internal/stackedok
 internal/table..ok
 internal/taint..ok
 Failed TestStatus Wstat Total Fail  Failed  List of Failed
 
 internal/api.t871   1.15%  18
 10 tests skipped.
 httpd terminated
 Failed 1/38 test scripts, 97.37% okay. 1/393 subtests failed, 99.75% okay.
 make: *** [run_tests] Error 29

 more t/logs//error_log
 [notice] Destruction-DESTROY called for $global_object
 Prototype mismatch: sub Socket::INADDR_ANY vs () at 
/usr/lib/perl5/5.6.1/i386-linux/Socket.pm line 329.
 Prototype mismatch: sub Socket::INADDR_BROADCAST vs () at 
/usr/lib/perl5/5.6.1/i386-linux/Socket.pm line 330.
 Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at 
/usr/lib/perl5/5.6.1/i386-linux/Socket.pm line 331.
 Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at 
/usr/lib/perl5/5.6.1/i386-linux/Socket.pm line 332.
 [Tue Apr  9 17:16:36 2002] [warn] [notice] child_init for process 2740, report any 
problems to [no address given]

 [Tue Apr  9 17:16:39 2002] [warn] [client 127.0.0.1] log __ANON__ OK
 Use of uninitialized value 

Content management systems

2002-04-09 Thread Matthew Watson

Heya.

 I was wondering if there are any content management systems around for
modperl , i'm after a similar kind of thing
as postnuke for php. I'd much rather something 'out of the box' as I don't
have time to develop a system from scratch mysql.

Regards

--
Matthew Watson
Development, Netspace Online Systems
[EMAIL PROTECTED]




RE: Content management systems

2002-04-09 Thread Jon Coulter

Yeah, the system that runs slashdot (and many other major sites),
'slashcode' is in modperl:

www.slashcode.com

I think the 'everything' system that runs perlmonks.org is in mod_perl
too, might want to check it out (just see the perlmonks' site)

Jon Coulter
[EMAIL PROTECTED] 

-Original Message-
From: Matthew Watson [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, April 09, 2002 1:54 AM
To: [EMAIL PROTECTED]
Subject: Content management systems


Heya.

 I was wondering if there are any content management systems around for
modperl , i'm after a similar kind of thing as postnuke for php. I'd
much rather something 'out of the box' as I don't have time to develop a
system from scratch mysql.

Regards

--
Matthew Watson
Development, Netspace Online Systems
[EMAIL PROTECTED]




Re: Content management systems

2002-04-09 Thread Matt Sergeant

On Tuesday 09 April 2002 7:53 am, Matthew Watson wrote:
 Heya.

  I was wondering if there are any content management systems around for
 modperl , i'm after a similar kind of thing
 as postnuke for php. I'd much rather something 'out of the box' as I don't
 have time to develop a system from scratch mysql.

For community sites, use Slash - the engine behind slashdot 
(http://www.slashcode.com) - there's even a book about it.

For large scale content management - like for a news site - check out 
Bricolage (http://bricolage.thepirtgroup.com/). Bricolage is built upon some 
of the ideas of the content management system behind Salon.com (though they 
seem to be talking of replacing it with a Java/Cocoon based system).

-- 
:-get a SMart net/:-



Hello again

2002-04-09 Thread John Kolvereid

Hi everyone,
   After a gruelling 2 weeks of frustration, I am
finally able to install mod_perl in my environment. 
W/ all your help I did it w/ the following Apache
configuration:
   SSL_BASE=../openssl-0.9.6b \
   configure \
--prefix=/usr/local/apache \
--enable-module=info \
--enable-module=status \
--enable-module=ssl \
--enable-shared=ssl \
--enable-module=proxy \
--enable-shared=proxy \
--enable-module=so \
--disable-rule=EXPAT \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl
Naturally, I next have to test it thoroughly.
   To the best of my knowledge I am now running
mod_perl w/ DSO.  This seems to be contraversial. 
Some say use it, others say avoid it.  Doesn't DSO
defeat the purpose of mod_perl?  I thought DSO loaded
fresh dynamically each time, and mod_perl remained in
memory.  Or is DSO mod_perl the best of both worlds,
loading dynamically when needed and remaining in
memory thereafter.
   Please advise, and thank you all for your support.

John Kolvereid

__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



Typo

2002-04-09 Thread Issac Goldstand

Did I *really* write Apache::expat?  Stupid error - Apache::compat.. 
 Sorry :)

  Issac




Re: Content management systems

2002-04-09 Thread Drew Taylor

At 08:08 AM 4/9/02 +0100, Matt Sergeant wrote:
On Tuesday 09 April 2002 7:53 am, Matthew Watson wrote:
  Heya.
 
   I was wondering if there are any content management systems around for
  modperl , i'm after a similar kind of thing
  as postnuke for php. I'd much rather something 'out of the box' as I don't
  have time to develop a system from scratch mysql.

For community sites, use Slash - the engine behind slashdot
(http://www.slashcode.com) - there's even a book about it.

You should also check out scoop (http://scoop.kuro5hin.org/), the engine 
that runs Kuro5hin.org. It's also written for modperl, and IMHO has some 
extra community features that makes it better than slash for more 
democratic sites where there are no editors like on /. who decide what 
stories get posted. Oh, and it does have diaries. ;-)

Drew




dear administrator, Unsubscribe me please

2002-04-09 Thread Anouk Twijnstra
Dear Administrator of mod-perl discussion group,Please unsubscribe me from this group.With regards,
anouk Send and receive Hotmail on your mobile device: Click Here


Re: dear administrator, Unsubscribe me please

2002-04-09 Thread Stas Bekman

Anouk Twijnstra wrote:
 Dear Administrator of mod-perl discussion group,
 
 Please unsubscribe me from this group.

the secret is hidden in your mail headers:

list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]

__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: mod_perl restart vs. graceful

2002-04-09 Thread Issac Goldstand

 [snip]

 we could change the
 script to do a stop then restart, but we've seen where this method (done
 manually) was not 100% reliable and would sometimes require a couple of
 stops before we could really restart apache (never understood why 
 this was
 so.)


 It's most likely that the stop is actually taking longer than you 
 expect to process. Apachectl just sends the kill and doesn't wait 
 around for everything to exit. Depending on what each of the children 
 is doing, this can take awhile. So the better approach is not to 
 stop again but, if start fails, wait a few seconds and try the 
 start again.


Better yet, probe for the existance of the httpd.pid file.  That's 
basically the last thing Apache does when shutting down (unlinking it, 
that is).

 Issac




Re: Content management systems

2002-04-09 Thread Maarten Stolte

On Tue, 2002-04-09 at 16:17, Aaron Ross wrote:
 
  
  For community sites, use Slash - the engine behind slashdot
  (http://www.slashcode.com) - there's even a book about it.
  
  You should also check out scoop (http://scoop.kuro5hin.org/), the engine 
  that runs Kuro5hin.org. It's also written for modperl, and IMHO has some 
  extra community features that makes it better than slash for more 
  democratic sites where there are no editors like on /. who decide what 
  stories get posted. Oh, and it does have diaries. ;-)
 
 Does anyone know of a more portal oriented engine?  in addition to
 discussions and articles, a calendar, object level access control,
 polls, approval based content management. 
 
 A friend has to put together a community portal site for the university
 he works for, on biological terrorism, no less!  So far, we  have been
 unable to find anything in perl that provides the functionality needed.
 
 The ArsDigita code seems pretty good, but it's seems to be somewhat
 adrift and sloppy at this point.
 
 Zope provides lot of features, but seems to be a closed little world,
 ie. it's own db and it's own templating language.
 
 Anybody know of something in mod_perl with this out of the box
 functionality in addition to content management?
 
 -- aaron
  
 
Zope has plugins to other db's, and there is lots of other apps which do what you want 
in php (like phpnuke), as for modperl, i don't think the people using modperl build 
onesizefitsall stuff as much as php people tend to do..

Maarten




RE: Content management systems

2002-04-09 Thread Matthew Watson

 Zope has plugins to other db's, and there is lots of other apps
 which do what you want in php (like phpnuke), as for modperl, i
 don't think the people using modperl build onesizefitsall stuff
 as much as php people tend to do..


Thats a shame, I really wanted a one size fits all product :) hmm, looks
like I might have to actually do
some work...




Re: mod_perl restart vs. graceful

2002-04-09 Thread darren chamberlain

* Dan Wilga [EMAIL PROTECTED] [2002-04-09 10:19]:
 It's most likely that the stop is actually taking longer than you
 expect to process. Apachectl just sends the kill and doesn't wait
 around for everything to exit. Depending on what each of the children
 is doing, this can take awhile. So the better approach is not to
 stop again but, if start fails, wait a few seconds and try the
 start again.

For exactly this reason, I always modify apachectl so that the restart
option looks like:

restart)
timeout=${2:-5}
count=0
$0 stop
while [ $count -lt $timeout ]; do
echo -n . 
sleep 1
count=`expr $count + 1`
done
echo 
$0 start
;;

This will sleep for $2 (or 5 seconds) between stopping and starting.
The sleep ensures that the start doesn't get called too quickly.

Use it like:

  apachectl restart 10

to wait 10 seconds, or

  apachectl restart

to wait the default 5.

(darren)

-- 
Fanaticism consists in redoubling your efforts when you have
forgotten your aim.
-- George Santayana



Unsubscribe me please

2002-04-09 Thread Kirk Rogers



Please unsubscribe me from this group.


Re: Content management systems

2002-04-09 Thread Drew Taylor

At 10:17 AM 4/9/02 -0400, Aaron Ross wrote:

Anybody know of something in mod_perl with this out of the box
functionality in addition to content management?

Metadot bills itself as a portal product. I've even installed it briefly in 
the past, and it seemed relatively easy to setup  customize. 
http://www.metadot.com/ The developer site is at http://www.metadot.net/.

Drew

==
Drew Taylor JA[P|m_p]H
http://www.drewtaylor.com/  Just Another Perl|mod_perl Hacker
mailto:[EMAIL PROTECTED]  *** God bless America! ***
--
Speakeasy.net: A DSL provider with a clue. Sign up today.
http://www.speakeasy.net/refer/29655
==




Re: Content management systems

2002-04-09 Thread Maarten Stolte


 Anybody know of something in mod_perl with this out of the box
 functionality in addition to content management?
 
 Metadot bills itself as a portal product. I've even installed it briefly in 
 the past, and it seemed relatively easy to setup  customize. 
 http://www.metadot.com/ The developer site is at http://www.metadot.net/.
 
wow...this looks great, anybody actually use it?

Maarten




Re: mod_perl restart vs. graceful

2002-04-09 Thread Stephen Reppucci


Hi Darren,

See my suggested refinement below (I don't like to leave the server
down any longer than needed...8^):

On Tue, 9 Apr 2002, darren chamberlain wrote:

 For exactly this reason, I always modify apachectl so that the restart
 option looks like:

 restart)
 timeout=${2:-5}
 count=0
 $0 stop
 while [ $count -lt $timeout ]; do

  while [ -f $PIDFILE -a $count -lt $timeout ]; do

 echo -n . 
 sleep 1
 count=`expr $count + 1`
 done
 echo 
 $0 start
 ;;

 This will sleep for $2 (or 5 seconds) between stopping and starting.
 The sleep ensures that the start doesn't get called too quickly.

Steve

-- 
Steve Reppucci   [EMAIL PROTECTED] |
Logical Choice Software  http://logsoft.com/ |
=-=-=-=-=-=-=-=-=-=-  My God!  What have I done?  -=-=-=-=-=-=-=-=-=-=




Re: Help Requested: Segfault 11 7 MONTHS after compilation on multiple servers all compiled the same running different code and different Redhat Released all on the same day [BUG]

2002-04-09 Thread Kevin A. McGrail

Stas,

I'm much closer thanks to your document*.  I now at least I feel like I'm
moving forward for the first time in months.

OK, so I'm pretty sure short of recompiling Perl, that I have all the
correct debug things turned on though the user permission problem still
plague me a bit.  I just chgrp'd the whole dir to httpd and did a chmod
g+w -R so I think that should fix any permission problems for a core file to
be created.

Here's some notes abour your document and the problems I had as I'm pretty
sure it's a work in progress.

1st,  I had a little trouble following the Bad Segv stuff because I had to
install Parser and then Inline.  That was no big deal but then your code was
written for a much older version of Inline and no longer works, yada, yada,
yada.  The version of Bad::Segv that I developed VERY quickly to get around
this is up at http://www.peregrinehw.com/downloads/apache/mod_perl

2nd, The segv.cgi at the same location as the Bad:Segv above, segfaults on
the command line and through normal CGI but not with mod_perl.  Here's the
error I get trying to run this script with mod_perl (1.26):

[Tue Apr  9 09:53:16 2002] [error] [Tue Apr  9 09:53:16 2002] PerlHandler
subroutine `Apache::Registry::handler': Undefined subroutine
Bad::Segv::segv called at /htdocs/peregrinehw.com/html/segv.cgim line 12.
[Tue Apr  9 09:53:16 2002] END block subroutine `Inline::END': One or
moreDATA sections were not processed by Inline.
[Tue Apr  9 09:53:16 2002] END block subroutine `Inline::END':

Thoughts?  Something special with mod_perl?  I didn't add the Bad::Segv to
the startup.pl or anything at all.

Regards,

Kevin A. McGrail


*
http://perl.apache.org/preview/modperl-docs/dst_html/docs/2.0/devel/debug_c/
debug_c.html#Getting_the_core_File_Dumped



Bad-Segv-0.20.tar.gz
Description: GNU Zip compressed data


Re: mod_perl and open files limit

2002-04-09 Thread Mike V. Andreev

Hello people
Thank you for all your answers and comments!
Unfortunately I can't test your advices right now because of other urgent 
[as always :-(  ] businesses.
I'll do it as soon as i'll be able.
Thanx a lot!!!


Mike Andreev




Re: Unsubscribe me please

2002-04-09 Thread Issac Goldstand

Fran Fabrizio wrote:

 The info is in too many places: posted many times here (read: search 
 archives),
 on the front page of perl.apache.org, in the guide (search!) and
 probably many other places.



 Not to mention in the header of every single message to this list.

 -Fran

Well, the point was that noone seems to LOOK there :-)

 Issac





Re: Unsubscribe me please

2002-04-09 Thread Fulko Hew

Issac Goldstand [EMAIL PROTECTED] commented:

 Fran Fabrizio wrote:
 
  The info is in too many places: posted many times here (read: search 
  archives),
  on the front page of perl.apache.org, in the guide (search!) and
  probably many other places.
 
 
 
  Not to mention in the header of every single message to this list.
 
  -Fran
 
 Well, the point was that noone seems to LOOK there :-)
 
  Issac

Keep in mind that most (modern^H^H^H^H^H^Hbraindead) mail readers actually
prevent you from reading all of the header information.

---
Fulko Hew,   Voice:  905-681-5570
Lead Designer - Management Tools,Fax:905-681-5556
SITA (Burlington)Email:  [EMAIL PROTECTED]
777 Walkers Line,
Burlington, Ontario, Canada, L7N 2G1



Re: AuthCookie login ?

2002-04-09 Thread Michael Schout

On Fri, 5 Apr 2002, Geoffrey Young wrote:

  Since the authentication happens on every trip into the server, and I
  don't want to run my code (to set up an Apache::Session for the user's
  session data) until I'm sure I have a valid user on my hands, I can't
  see a way to do the session setup only the first time after a sucessful
  login.

 can't you do this in authen_cred()?  IIRC authen_cred is only called when no
 cookie is found, which means you have a first time visit (or an unsuccessful

Yes, do it in authen_cred() after you have checked the credentials, but before
returning the username.  authen_cred() is only called when you submit the login
form.

Regards,
Michael Schout (AuthCookie maintainer).




Re: Hello again

2002-04-09 Thread David Wheeler

On 4/9/02 8:24 AM, John Kolvereid [EMAIL PROTECTED] claimed:

 These are GREAT URLs for installing mod_perl.  I
 wish I would have known about them sooner.  Whatever.
 After reading the DSO section I'm not sure I have
 configured mod_perl as DSO.  In fact, I'm not sure
 what I DO have.

httpd -l will tell you what you have.

HTH,

David

-- 
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/  Yahoo!: dew7e
   Jabber: [EMAIL PROTECTED]





Re: Unsubscribe me please

2002-04-09 Thread Kee Hinckley

At 11:45 AM -0400 4/9/02, Fran Fabrizio wrote:
The info is in too many places: posted many times here (read: 
search archives),
on the front page of perl.apache.org, in the guide (search!) and
probably many other places.


Not to mention in the header of every single message to this list.

I believe Outlook defaults to hiding headers it doesn't know, as 
opposed to Eudora, which defaults to only hiding headers you tell it 
to hide (and providing reasonable defaults).  So they never see the 
headers.  Blame everyone's favorite UI designers for that choice.
-- 

Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/
[EMAIL PROTECTED]

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.



Re: Unsubscribe me please

2002-04-09 Thread Andy Lester

  Please unsubscribe me from this group.
 
 MAybe if we add it to the guide?!?  I don't know why all of the sudden
 people can't do this, but...

There's only so much hand-holding and coddling one group can do.

-- 
'Andy Lester[EMAIL PROTECTED]
 Programmer/author  petdance.com
 Daddy  parsley.org/quinn   Jk'=~/.+/s;print((split//,$)
[unpack'C*',n2]3%+\34.'%.'^%4+!o.'])




Re: Help Requested: Segfault 11 7 MONTHS after compilation on multiple servers all compiled the same running different code and different Redhat Released all on the same day [BUG]

2002-04-09 Thread darren chamberlain

Kevin A. McGrail wrote:
 2nd, The segv.cgi at the same location as the Bad:Segv above, segfaults on
 the command line and through normal CGI but not with mod_perl.  Here's the
 error I get trying to run this script with mod_perl (1.26):

 [Tue Apr  9 09:53:16 2002] [error] [Tue Apr  9 09:53:16 2002] PerlHandler
 subroutine `Apache::Registry::handler': Undefined subroutine
 Bad::Segv::segv called at /htdocs/peregrinehw.com/html/segv.cgim line 12.
 [Tue Apr  9 09:53:16 2002] END block subroutine `Inline::END': One or
 moreDATA sections were not processed by Inline.
 [Tue Apr  9 09:53:16 2002] END block subroutine `Inline::END':

 Thoughts?  Something special with mod_perl?  I didn't add the Bad::Segv to
 the startup.pl or anything at all.

I haven't been following this thread, but it appears to me from the
error message that the DATA section might be causing the problem in
conjunction with Apache::Registry, which explicitly states:

   Your scripts cannot contain the __END__ or __DATA__ token
   to terminate compilation.

in the CAVEATS section.

Ignore this if I'm offbase.

(darren)

-- 
The knowledge that makes us cherish innocence makes innocence
unattainable.
-- Irving Howe



Re: Help Requested: Segfault 11 7 MONTHS after compilation on multipleservers all compiled the same running different code and different RedhatReleased all on the same day [BUG]

2002-04-09 Thread Stas Bekman

darren chamberlain wrote:
 Kevin A. McGrail wrote:
 
2nd, The segv.cgi at the same location as the Bad:Segv above, segfaults on
the command line and through normal CGI but not with mod_perl.  Here's the
error I get trying to run this script with mod_perl (1.26):

[Tue Apr  9 09:53:16 2002] [error] [Tue Apr  9 09:53:16 2002] PerlHandler
subroutine `Apache::Registry::handler': Undefined subroutine
Bad::Segv::segv called at /htdocs/peregrinehw.com/html/segv.cgim line 12.
[Tue Apr  9 09:53:16 2002] END block subroutine `Inline::END': One or
moreDATA sections were not processed by Inline.
[Tue Apr  9 09:53:16 2002] END block subroutine `Inline::END':

Thoughts?  Something special with mod_perl?  I didn't add the Bad::Segv to
the startup.pl or anything at all.
 
 
 I haven't been following this thread, but it appears to me from the
 error message that the DATA section might be causing the problem in
 conjunction with Apache::Registry, which explicitly states:
 
Your scripts cannot contain the __END__ or __DATA__ token
to terminate compilation.
 
 in the CAVEATS section.
 
 Ignore this if I'm offbase.

it's a perl handler, not a registry script.

ignore mode is on :)


__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com




Re: Unsubscribe me please [KILL THIS THREAD]

2002-04-09 Thread Perrin Harkins

Please kill this thread.  Some people are not good at dealing with
mailing lists.  At least this guy was polite.

- Perrin





Re: Help Requested: Segfault 11 7 MONTHS after compilation on multipleservers all compiled the same running different code and different RedhatReleased all on the same day [BUG]

2002-04-09 Thread Mark Fowler

On Tue, 9 Apr 2002, Stas Bekman wrote:

 Looks like you cannot run the Inline code under mod_perl. I remember 
 Brian told me the secret code to make it work under mod_perl :)

Ah, this might be it.  The first time the Inline code is run the ILSM
(Inline Support Module) compiles[1] the code.  It then stashes this away
in the .Inline directory, then reads this 'compiled' code back in again
this, and every other time, it's called. If it can't do that then 
this could be a problem.

I'd be tempted to run the code as someone who has rights to write in the
directory for the first time after I'd installed it/made any changes.  
Make sure your webserver has permissions to read these files.  Don't
change the source file (any part of it, even the perl part) without
rerunning the code as that privileged user (to recompile it.)

 [ snip lots of code ]

 make sure that /tmp/Inline is writable by the webserver.
 Hopefully you will figure out how to fix completely Bad::Segv and I'll 
 have more time to do other things :) Thanks.

Um...if you do this arn't you essentially creating a directory where you 
can store executable code that will be read in by your webserver and run 
that can be written to by your webserver?  Isn't this a little insecure?

Later.

Mark.

[1] Compiles in the looses sense of the word.  Very accurate for C, less 
true for other languages.

-- 
s''  Mark Fowler London.pm   Bath.pm
 http://www.twoshortplanks.com/  [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t-Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t-Tgoto(cm,$_,$y). $w;select$k,$k,$k,.03}$y+=2}




Re: Help Requested: Segfault 11 7 *snip*

2002-04-09 Thread darren chamberlain

* Stas Bekman [EMAIL PROTECTED] [2002-04-09 12:14]:
 darren chamberlain wrote:
  Kevin A. McGrail wrote:
   2nd, The segv.cgi at the same location as the Bad:Segv above,
   segfaults on the command line and through normal CGI but not with
   mod_perl.  Here's the error I get trying to run this script with
   mod_perl (1.26):
  
   [Tue Apr  9 09:53:16 2002] [error] [Tue Apr  9 09:53:16 2002]
   PerlHandler subroutine `Apache::Registry::handler': Undefined
   subroutine
  ^

[-- snip --]

 it's a perl handler, not a registry script.

I'm just reading the error message, that's all.  :)

(darren)

-- 
I can't understand why a person will take a year or two to write a
novel when he can easily buy one for a few dollars.
-- Fred Allen



Re: mod_perl restart vs. graceful

2002-04-09 Thread Keith G. Murphy

Stephen Reppucci wrote:
 
 Hi Darren,
 
 See my suggested refinement below (I don't like to leave the server
 down any longer than needed...8^):
 
 On Tue, 9 Apr 2002, darren chamberlain wrote:
 
  For exactly this reason, I always modify apachectl so that the restart
  option looks like:
 
  restart)
  timeout=${2:-5}
  count=0
  $0 stop
  while [ $count -lt $timeout ]; do
 
   while [ -f $PIDFILE -a $count -lt $timeout ]; do
 
  echo -n . 
  sleep 1
  count=`expr $count + 1`
  done
  echo 
  $0 start
  ;;
 
  This will sleep for $2 (or 5 seconds) between stopping and starting.
  The sleep ensures that the start doesn't get called too quickly.
 
On Debian, if you use the /etc/init.d/apache[-perl] script for
restarting, it uses the start-stop-daemon program to do essentially the
same thing.  (Another reason I like Debian :-).



Re: Hello again

2002-04-09 Thread John Kolvereid

Hi again,
   Maybe I read it wrong.  The list from httpd -l
included mod_perl, but not mod_php.  Is the list,
titled 'Compiled-in modules' those modules which are
internal to Apache as the name implises.  If so, then
I am running mod_perl internally and mod_php
externally.
Please advise.  Thanks.

   John Kolvereid
--- David Wheeler [EMAIL PROTECTED] wrote:
 On 4/9/02 8:24 AM, John Kolvereid
 [EMAIL PROTECTED] claimed:
 
  These are GREAT URLs for installing mod_perl.  I
  wish I would have known about them sooner. 
 Whatever.
  After reading the DSO section I'm not sure I have
  configured mod_perl as DSO.  In fact, I'm not sure
  what I DO have.
 
 httpd -l will tell you what you have.
 
 HTH,
 
 David
 
 -- 
 David Wheeler
 AIM: dwTheory
 [EMAIL PROTECTED]
 ICQ: 15726394
 http://david.wheeler.net/ 
 Yahoo!: dew7e
   
 Jabber: [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



Re: Content management systems

2002-04-09 Thread dreamwvr

 Does anyone know of a more portal oriented engine?  in addition to
 discussions and articles, a calendar, object level access control,
 polls, approval based content management. 
 
 A friend has to put together a community portal site for the university
 he works for, on biological terrorism, no less!  So far, we  have been
 unable to find anything in perl that provides the functionality needed.
 
 well may be he could write one? IMHO that is what 'should' be done 
if something doesn't exist.



Help us make the mod_perl Developer's Cookbook better.

2002-04-09 Thread Paul Lindner

Hi there.

First of all, thanks to all of those who are now using the mod_perl
Developer's Cookbook.  We hope that it's made your development easier
and more fun.  Due to the continued popularity of the book, a 2nd
printing is being planned in the next week or so.  This is nice
because we're allowed to correct minor errors.

We'd appreciate your help in fixing any errors in the text or code.
No-one's perfect (especially us, look at our errata page!), so if
you've noticed anything amiss that's not listed at:

  http://www.modperlcookbook.org/errata.shtml

please send it to

  [EMAIL PROTECTED] 

asap.

Thanks again!

-- 
Paul Lindner[EMAIL PROTECTED]   | | | | |  |  |  |   |   |

mod_perl Developer's Cookbook   http://www.modperlcookbook.org/
 Human Rights Declaration   http://www.unhchr.ch/udhr/



Re: Content management systems

2002-04-09 Thread Claudio Garcia


Metadot is being used a lot in Schlumberger and Sema intranet websites (Sema is
a large European IT company) , among many other clients. It's also being used in
a big French ceramics company called St. Gobain.

The Open Source version is currently lagging behind our latest (closed-source)
release by about three or four months.  Our closed-source version is comercially
available and comprises, basically, the open-source framework plus a number of
useful add-ons.  We also do custom additions to the framework (in fact tailoring
the software is our main business).

Installing Metadot can sometimes get complicated, but is usually a
straightforward process. I think Metadot internals are easy to learn and
customize, as we have been improving them constantly for the last year. If you
know your way around mod_perl and object oriented Perl you should be able to
tailor Metadot to your liking in little time. You can also choose to program
your own add-ons using the APIs we provide for that.

Hope that helps,

Claudio



  Metadot bills itself as a portal product. I've even installed it briefly in
  the past, and it seemed relatively easy to setup  customize.
  http://www.metadot.com/ The developer site is at http://www.metadot.net/.
 
 wow...this looks great, anybody actually use it?

 Maarten




RE: Open3

2002-04-09 Thread Vuillemot, Ward W

I tried the following code submitted by Don, but got the following errors.

[Tue Apr  9 16:32:38 2002] nul: untie attempted while 1 inner references
still exist at C:/apache/Apache/cgi-lib/FLOE/App/Btops.pm line 101.
[Tue Apr  9 16:32:38 2002] nul: untie attempted while 1 inner references
still exist at C:/apache/Apache/cgi-lib/FLOE/App/Btops.pm line 102.
[Tue Apr 09 16:32:38 2002] [error] open3: Can't call method close on an
undefined value at C:/Perl/lib/IPC/Open3.pm line 327.

Per UNTIE docs, this occurs when a second reference exits for the tied
object.  I do not see where, though.

Further assistance appreciated!

Thanks,
Ward

P.S.  I tried to use IPC::Run, but was unsuccessful.  seems flakey on win2k.

   :  -Original Message-
   :  From: Don Hayward [mailto:[EMAIL PROTECTED]]
   :  Sent: Thursday, April 04, 2002 6:28 AM
   :  To: Vuillemot, Ward W
   :  Subject: RE: Open3
   :  
   :  
   :  Hi Ward --
   :  
   :  Since Perl5.6 someting like this has been necessary for 
   :  Open2 and Open3
   :  under modperl:
   :  
   :  
   :  
   :  my ($stdin, $stdout, $stderr);
   :  $stdin = tied *STDIN;
   :  $stdout = tied *STDOUT;
   :  $stderr = tied *STDERR;
   :  untie *STDIN;
   :  untie *STDOUT;
   :  untie *STDERR;
   :  use FileHandle;
   :  my $Reader = new FileHandle;
   :  my $Writer = new FileHandle;
   :  my $ERR = new Filehandle;
   :  use IPC::Open3;
   :  my $pid = open3(  \*Writer,\*Reader, \*ERR, somescript);
   :  unless ($pid) { print open3 failed\n,$c-end_html; exit; }
   :  Writer-autoflush();
   :  .
   :  .
   :  .
   :  print Writer $stuff\n;
   :  my $ret = Reader;
   :  .
   :  .
   :  .
   :  tie *STDIN, ref $stdin, $stdin;
   :  tie *STDOUT, ref $stdout, $stdout;
   :  tie *STDERR, ref $stderr, $stderr;
   :  
   :  
   :  On Wed, 3 Apr 2002, Vuillemot, Ward W wrote:
   :  
   :   Since we are on the topic...and before some says it is 
   :  WOT, I wanted to ask
   :   a corollary question.
   :  
   :   I wrote a simple script to use Open2 as a means of 
   :  interacting with some
   :   FORTRAN programs I have.  I wanted to create pre and 
   :  post-processing using
   :   PERL and leave the numerical stuff (and tons of legacy 
   :  code) to the FORTRAN.
   :   Anyway, the Perl script from a command prompt works -- it sends
   :   pre-processed data as STDIN and catches the processed 
   :  data from STDOUT
   :   without a hitch.  The moment I try it running Apache 
   :  1.33, Perl 5.6.1,
   :   latest version of Open2, and mod_perl the thing just 
   :  ties up all the
   :   computer's resources.
   :  
   :   If I could get it to work then I would be a LONG WAY to 
   :  really altering the
   :   way we do things at work.
   :  
   :   I have read what docs there are with Perl for this. . 
   :  .but I am wondering if
   :   there are any caveats that I should be aware from using 
   :  a web-server to
   :   initiate the commands.  Or is there an alternative 
   :  method I might explore?
   :  
   :   thanks!
   :   Ward
   :  
   :  :  -Original Message-
   :  :  From: Rasoul Hajikhani [mailto:[EMAIL PROTECTED]]
   :  :  Sent: Wednesday, April 03, 2002 1:54 PM
   :  :  To: Elizabeth Mattijsen
   :  :  Cc: [EMAIL PROTECTED]
   :  :  Subject: Re: Open3
   :  :
   :  :
   :  :  Elizabeth Mattijsen wrote:
   :  :  
   :  :   At 01:44 PM 4/3/02 -0800, Rasoul Hajikhani wrote:
   :  :   Hello folks,
   :  :   I am writing a web based interface to gpg and am using
   :  :  IPC::Open3 and
   :  :   IO::Select to manage STDIN, STDOUT and STDERR handles.
   :  :  But, I can not
   :  :   get stdin to work properly. Here is my code:
   :  :   I am using perl 5.053 and Apache/1.3.14 Ben-SSL/1.42
   :  :  (Unix) PHP/4.0.3pl1
   :  :   mod_perl/1.24_01.
   :  :   Can anyone see what am I doing wrong?
   :  :  
   :  :   Make sure your IPC::Open3 is up-to-date.  If it is the
   :  :  version that came
   :  :   with Perl 5.053, it probably has a bug in it.  I
   :  :  remember having to patch
   :  :   it waaay back (like 5 years ago) to get it to 
   :  work properly...
   :  :  
   :  :   Elizabeth Mattijsen
   :  :
   :  :  My IPC::Open3 is OK. My problem is with IO::Select. Does
   :  :  anyone know
   :  :  whether IO::Select has any bugs? I have read the man
   :  :  pages and looked
   :  :  through the Perl Cook Book for a code snipet that would
   :  :  use IO::Select
   :  :  to write to STDIN. The one that is in the book does not
   :  :  work for me. So
   :  :  any comments/suggestions?
   :  :  Thanks in advance
   :  :  -r
   :  :
   :  
   :  
   :  Don Hayward   [EMAIL PROTECTED]
   :  Mote Marine LaboratoryVoice: 941.388.4441  
   :  Cell: 

PATH-like module?

2002-04-09 Thread Lyle Brooks

Is there a module that provides a PATH-like capability
for URLs?

The behavior I was looking for would do something like
this...

I request a URL  /images/background.gif

and then the web server (via this module or some other method) would
look for the background.gif file in a series of directories similar to
what the shell does to search your PATH for an executable.

So, if URLPATH was set to /opt/local/images:/net/images, then we'd
look for background.gif in each directory in turn. If not found in any of
them, only then would a 404 returned.

o Does such a module exist? 
o Is this available via some core directive?
o Is there a better way to do the same thing?

or is it just late at night and I'm missing something obvious.

Thanks






Re: dear administrator, Unsubscribe me please

2002-04-09 Thread Chuck Goehring

Upal,

Outlook hides the stuff that is in the header of the emails.  Bill Gates
decided for you that you would never need to see this information.  I pasted
it below.   Doubleclick on the list-unsubscribe link below and send the
email off.  It is an automated system that only reads a few special words.

list-help: mailto:[EMAIL PROTECTED]
list-unsubscribe: mailto:[EMAIL PROTECTED]
list-post: mailto:[EMAIL PROTECTED]

Chuck

- Original Message -
From: Upal [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 08, 2002 3:38 PM
Subject: dear administrator, Unsubscribe me please



 Dear Administrator of mod-perl discussion group,

 Please unsubscribe me from this group.

 With regards,

 Upal Nath

 =
 Upal.

 __
 Do You Yahoo!?
 Yahoo! Tax Center - online filing with TurboTax
 http://taxes.yahoo.com/





Re: PATH-like module?

2002-04-09 Thread Ged Haywood

Hi there,

On Tue, 9 Apr 2002, Lyle Brooks wrote:

 Is there a module that provides a PATH-like capability for URLs?

ViLib does this (and truckloads of things you didn't ask for:), sorry
I don't have a URI handy but you'll probably find it at utac.net or
with a search engine.  Failing that contact me privately and I'll mail
you a copy of the tarball.

73,
Ged.





RE: Content management systems

2002-04-09 Thread Jim Helm

Found this site, which has just about every major perl based cms I've
run across listed, plus lots more.

http://www.clueful.com.au/cgi-bin/cmsdirectory/browse/Products:Free%20sy
stems

Good luck, and us know what you pick and how it goes.

Jim

 -Original Message-
 From: claudioprodigy.net.mx@tcp_intranet-daemon 
 [mailto:claudioprodigy.net.mx@tcp_intranet-daemon] On Behalf 
 Of Claudio Garcia
 Sent: Tuesday, April 09, 2002 1:47 PM
 To: Maarten Stolte
 Cc: Drew Taylor; Aaron Ross; mod_perl list
 Subject: Re: Content management systems
 
 
 
 Metadot is being used a lot in Schlumberger and Sema intranet 
 websites (Sema is a large European IT company) , among many 
 other clients. It's also being used in a big French ceramics 
 company called St. Gobain.
 
 The Open Source version is currently lagging behind our 
 latest (closed-source) release by about three or four months. 
  Our closed-source version is comercially available and 
 comprises, basically, the open-source framework plus a number 
 of useful add-ons.  We also do custom additions to the 
 framework (in fact tailoring the software is our main business).
 
 Installing Metadot can sometimes get complicated, but is 
 usually a straightforward process. I think Metadot internals 
 are easy to learn and customize, as we have been improving 
 them constantly for the last year. If you know your way 
 around mod_perl and object oriented Perl you should be able 
 to tailor Metadot to your liking in little time. You can also 
 choose to program your own add-ons using the APIs we provide for that.
 
 Hope that helps,
 
 Claudio
 
 
 
   Metadot bills itself as a portal product. I've even installed it 
   briefly in the past, and it seemed relatively easy to setup  
   customize. http://www.metadot.com/ The developer site is at 
   http://www.metadot.net/.
  
  wow...this looks great, anybody actually use it?
 
  Maarten