Apache::ASP internal redirects

2000-07-09 Thread Remi Fasol

hello.

i'm testing the new $Server-Transfer for internal
redirects but have run into a minor problem.

when i try to use File::Basename::basename $0 to
determine the name of the current Apache::ASP file, $0
contains the name of the previous file if the current
file had been called by $Server-Transfer.

is there a way to determine the correct filename?

thanks again,
remi

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/



Apache::ASP and tied variables

2000-07-08 Thread Remi Fasol

hello.

i am using Tie::IxHash within my Apache::ASP page and
have noticed that the size of my processes are
balooning in size (as told by 'top').

do i need to explicitly untie and undef my tie
variables? or are they automatically freed when my
page exits?

thank you,
remi

__
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/



Re: ASP Cookieless Sessions (WAS Re: Apache::ASP)

1999-12-08 Thread Remi Fasol

 On Tue, 7 Dec 1999, Joshua Chamas wrote:
I am going to give ASP developers a session
 option, it should be
possible to make secure.

Stas Bekman wrote:
 But if you intercept the redirection, why not to
 strip/modify the
 HTTP_REFER header at the server side?


how about a call to something like

a href="%= $Server-StripSession('evil.perl.com')
%"evil perl session pirates/a

that calls something which strips the referer and
redirects.

remi
__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com



libapreq-0.31 install problems on RH6.0

1999-11-27 Thread Remi Fasol

hello.

i'm having more of the dreaded mod_perl RPM problems -
this time while trying to install libapreq.

i copied the '*.h' files to /usr/include/apache as
detailed in the guide, but wasn't good enough for my
setup. i'm using the Redhat secure server based on
apache 1.3.6 and mod_perl-1.21.

anyway here's the output (which is pretty much
meaningless to me). oh, and i had to modify the
Makefile.PL because for some reason it wasn't
including /usr/include/apache (i hope that wasn't what
caused all this - but before i did that, it just said
that it couldn't find things like 'httpd.h').

TIA!


cp Request.pm blib/lib/Apache/Request.pm
/usr/bin/perl -I/usr/lib/perl5/5.00503/i386-linux
-I/usr/lib/perl5/5.00503
/usr/lib/perl5/5.00503/ExtUtils/xsubpp  -typemap
/usr/lib/perl5/5.00503/ExtUtils/typemap Request.xs
xstmp.c  mv xstmp.c Request.c
cc -c -I../c -I/usr/include/apache
-I./auto/Apache/include
-I./auto/Apache/include/modules/perl -I -Dbool=char
-DHAS_BOOL -O2-DVERSION=\"0.31\"
-DXS_VERSION=\"0.31\" -fpic
-I/usr/lib/perl5/5.00503/i386-linux/CORE  Request.c
In file included from
/usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:1276,
 from
/usr/include/apache/mod_perl.h:41,
 from Request.xs:2:
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:217:
parse error before `bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:217:
warning: no semicolon at end of struct or union
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:218:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:227:
parse error before `}'
/usr/lib/perl5/5.00503/i386-linux/CORE/cop.h:268:
field `cx_subst' has incomplete type
In file included from
/usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:1280,
 from
/usr/include/apache/mod_perl.h:41,
 from Request.xs:2:
/usr/lib/perl5/5.00503/i386-linux/CORE/scope.h:135:
parse error before `bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/scope.h:135:
warning: no semicolon at end of struct or union
In file included from
/usr/lib/perl5/5.00503/i386-linux/CORE/perl.h:2109,
 from
/usr/include/apache/mod_perl.h:41,
 from Request.xs:2:
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:27:
parse error before `Perl_Gv_AMupdate'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:27:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:33:
parse error before `Perl_avhv_exists_ent'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:33:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:98:
parse error before `Perl_do_aexec'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:98:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:101:
parse error before `Perl_do_close'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:101:
parse error before `bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:101:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:102:
parse error before `Perl_do_eof'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:102:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:103:
parse error before `Perl_do_exec'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:103:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:115:
parse error before `Perl_do_open'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:116:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:118:
parse error before `Perl_do_print'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:118:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:121:
parse error before `Perl_do_seek'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:121:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:149:
parse error before `bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:182:
parse error before `Perl_hv_exists'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:182:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:183:
parse error before `Perl_hv_exists_ent'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:183:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:204:
parse error before `Perl_io_close'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:204:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:522:
parse error before `Perl_sv_2bool'
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:522:
warning: data definition has no type or storage class
/usr/lib/perl5/5.00503/i386-linux/CORE/proto.h:554:
parse error before `Perl_sv_derived_from'

Re: libapreq-0.31 install problems on RH6.0

1999-11-27 Thread Remi Fasol

--- Jim Winstead [EMAIL PROTECTED] wrote:

 You can get the patch for (its for mod_perl itself)
 at:
 

http://www.apache.org/websrc/cvsweb.cgi/modperl/lib/Apache/src.pm.diff?r1=1.13r2=1.14


well that's it...thanks! however, it still wouldn't
add /usr/include/apache to the includes list when
installing from the CPAN module, so i just changed
Apache::src some more.

for ($src, "$src/modules/perl", $main, "$src/regex",
"$src/os/$os", '/usr/include/apache') {
push @inc, "-I$_" if -d $_;
}

am i asking for trouble by adding this? -- there's
probably a better way. i'm just hoping it will smooth
out future installs.

thanks for your help.
remi

__
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com



Re: Redhat httpsd with mod_perl

1999-11-09 Thread Remi Fasol

just a followup: i recompiled perl from the redhat
source rpms and it seems to have fixed my memory
leaks.

thanks to everyone for their help
remi.

 Remi Fasol wrote:
  
  hi there.
  
  i'm having problems with my redhat secure server
 and
  mod_perl combo
  (mod_perl as a DSO). i'm new to mod_perl (and
 system
  administration) but
  obviously am looking forward to getting everything
  figured out.
  
  i believe there is some kind of memory leak (not
 sure
  exactly), but when
  i start the server a typical process has the
 following
  characteristics:
  
  PID USER PRI  NI  SIZE  RSS SHARE STAT  LIB
 %CPU
  %MEM   TIME COMMAND
  6143 nobody 2   0 10720  10M 10072 S   0 
 0.0
  4.1   0:00 httpsd
  
  but after running it for about a day (while
 hitting it
  with 20 page
  requests per minute (pages use Apache::ASP and
 mysql)
  top shows:
  
  PID USER PRI  NI  SIZE  RSS SHARE STAT  LIB
 %CPU
  %MEM   TIME COMMAND
  4722 nobody 0   0 18232  14M  3148 S   0 
 0.0
  5.5   0:25 httpsd
  
  also, at this point the 'Requests per second' and
  'Transfer rate' (as
  told by ApacheBench) have dropped off
 significantly.
  
  can someone point me in the right direction for
  optimizing this setup?
  
  thanks!
  remi


=

__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com



Re: Hanging process: detection and determination (was Re: Runaway processes)

1999-10-22 Thread Remi Fasol

hi Joshua,

is this your recommended setup when using Apache::ASP
or is this for mod_perl in general?

if it's for Apache::ASP, do you have a sample CPU
limit script and/or watchdog?

thanks!
remi


--- Joshua Chamas [EMAIL PROTECTED] wrote:
 Stas,
 
 I use Apache::Resource to set a CPU limit, that only
 a 
 runaway process would hit so the random killer
 process
 doesn't accumulate and take down my system.  I have
 MaxRequestsPerChild set to a few hundred and have
 found
 empirically that they don't tend to take more than
 10
 seconds of CPU time for normal use, so I give a CPU 
 limit of 20-30 seconds for all my httpds.
 
 I also run a monitor program that watchdogs the
 server every 20-30 seconds and restarts it if 
 response time is ever too low, just in case other 
 odd things go wrong. It just does a graceful 
 restart, I haven't needed to fix a problem with a 
 full stop / start yet.
 


=

__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com



Redhat httpsd with mod_perl

1999-10-19 Thread Remi Fasol

hi there.

i'm having problems with my redhat secure server and
mod_perl combo
(mod_perl as a DSO). i'm new to mod_perl (and system
administration) but
obviously am looking forward to getting everything
figured out.

i believe there is some kind of memory leak (not sure
exactly), but when
i start the server a typical process has the following
characteristics:

PID USER PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU
%MEM   TIME COMMAND
6143 nobody 2   0 10720  10M 10072 S   0  0.0 
4.1   0:00 httpsd


but after running it for about a day (while hitting it
with 20 page
requests per minute (pages use Apache::ASP and mysql)
top shows:

PID USER PRI  NI  SIZE  RSS SHARE STAT  LIB %CPU
%MEM   TIME COMMAND
4722 nobody 0   0 18232  14M  3148 S   0  0.0 
5.5   0:25 httpsd

also, at this point the 'Requests per second' and
'Transfer rate' (as
told by ApacheBench) have dropped off significantly.

can someone point me in the right direction for
optimizing this setup?

thanks!
remi


=

__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com



Re: please comment on new art for perl.apache.org

1999-10-11 Thread Remi Fasol

-- Matt Arnold [EMAIL PROTECTED] wrote:

 http://www.novia.net/~marnold/mod_perl/sample_3/ 

i really like the camel against the sun with the
apache feather.

 sure to include any good ideas you have about
 alternate designs.)

maybe you can make it more 'desert-y'. more like
sandstone. maybe add a little red.

remi.

=

__
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com