Re: Best compression for mod_perl application?

2003-07-02 Thread Mithun Bhattacharya

--- Bill Marrs [EMAIL PROTECTED] wrote:

 My own personal experience with mod_deflate (in Apache/2.0.46) is
 that it 
 tends to spike my server's load.  My server (gametz.com) is dual

http://lists.over.net/pipermail/mod_gzip/2003-June/007130.html

seems to say that mod_gzip has its own implementation for compression
whereas mod_deflate uses zlib. I am assuming the shared library is
somehow at fault here ?



Mithun

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


Re: UTF-8 support

2003-06-16 Thread Mithun Bhattacharya
I did a search for UTF-8 and locale at
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/

In the past 2-3 months the only problem seems to be that regex doesnt
seem to work properly on UTF-8 input
[http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse2html/perl5-porters/2003-05/msg00183.html?68#mfs]
and that RedHat 9.0 ships with a buggy maintenance snapshot of perl
5.8.x
[http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2003-05/msg00352.html]

I think it means we better wait a while before making large scale
applications to manipulate UTF-8 data but I could possibly be wrong.

Also ofcourse dont develop applications using RedHat 9.0's perl :).


Mithun

--- Stas Bekman [EMAIL PROTECTED] wrote:

 To second Perrin, 5.8.0's UTF8 support is not broken. From what I was
 
 following on the p5p, 5.8.0 had some minor issues, but 5.8.1 which
 will be 
 released really soon now (my guess: July at OSCon) have them (all?)
 sorted 
 out. You may want to browse p5p archives and rt.perl.org to see what
 UTF8 
 problems were if any and whether they were resolved. If you find
 something 
 that would be of interest to other readers, please post a summary
 here.


__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


Current stable platform for mod_perl application ?

2003-06-16 Thread Mithun Bhattacharya
I have a opportunity to upgrade and standardize a couple of mod_perl
enabled servers to the most stable configuration as of now. Apache 1.3
and mod_perl was easy to choose since it is a production environment.
What I am very much confused is to what should I chose for the
distribution. For various reasons it is certainly going to be RedHat
but I have a choice between the very well tested 7.3 but highly likely
to become unsupported by RedHat soon. Or I could go for RedHat 9.0 and
rollback perl to 5.6.1 - I dont like the idea of running a production
server on a maintenance snapshots of perl especially a .0 release. If
anyone has recently had the opportunity to make simillar decisions do
share what made him/her decide on whatever platform was chosen.

Also does the Native Posix Thread Library support in RedHat 9.0 have
any added benifit for mod_perl/my applications ?


Mithun

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


Re: Current stable platform for mod_perl application ?

2003-06-16 Thread Mithun Bhattacharya

--- Ged Haywood [EMAIL PROTECTED] wrote:
 Hi there,
 
 On Mon, 16 Jun 2003, Mithun Bhattacharya wrote:
 
  I have a choice between the very well tested 7.3 but highly likely
  to become unsupported by RedHat soon. Or I could go for RedHat 9.0

Ohh no no one is using RedHat support it is just the fact that most of
the administrators are used to RedHat and I am not going to be
maintaining the servers in the long run therefore I wanted them to have
something they know their way around.

I want something which they can manage on their own, they can upgrade
without breaking everything down - and ending up ruining my happiness
:). I do a minimal install for the servers anyway other than kernel and
perl they wont have much else to worry about. Ofcoure RedHat 7.3 has
the notorious gcc 2.96 - no body has been able to figure out whether it
is actually broken or not I guess :).

 Do you actually need or use RH support?  I'm not saying that there's
 anything wrong with it, but by the time you've a few years of Linux
 experience under your belt it's unlikely you'll need much more than
 the odd security patch - and you'll be able to deal with that sort of
 thing easily, even if it means installing a new kernel.

The problem with ease of maintenance is that I need to give something
which will have patches coming out for it for atleast a year - with the
way new versions are poping up with all the distros I guess it is a
dream for the time being.



Mithun

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com


UTF-8 support [was : (Re: [mp2] make test fails with 1.99_10-dev sources on redhat)]

2003-06-13 Thread Mithun Bhattacharya

--- Stas Bekman [EMAIL PROTECTED] wrote:

  My understanding is that setting locale to UTF8 makes it try to
 open
  everything as a UTF8 document, but not everything is one.  It
 causes
  problems for Java and Konsole too apparently.  It could simply be
 that
  Perl's handlling of UTF8 is broken, but I didn't want UTF8 in the
 first
  place so putting LANG back to what it was before seems like a
 reasonable
  fix to me.


If I understand correctly most XML parsers support UTF-8 primarily. If
perl's UTF-8 support is broken in 5.8.0 doesnt that mean it will break
any mod_perl application which is handling XML's or UTF-8 data ? What
about Axkit etc ? Anyone facing problem handling UTF-8 data using 5.8.0
based mod_perl setup ?


Mithun

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com


Re: Redirects: relative vs absolute

2003-02-24 Thread Mithun Bhattacharya

--- Grant McLean [EMAIL PROTECTED] wrote:

 Is there an easy way to get the absolute URI of the current request 
 to use with Apache::URI-parse to translate a relative URI to 
 absolute? 

From perldoc URI

-
$uri = URI#8722;new_abs( $str, $base_uri )
 This constructs a new absolute URI object.  The $str argument can
 denote a relative or absolute URI.  If relative, then it will be
 absolutized using $base_uri as base. The $base_uri must be an
abso#8208;
 lute URI.
-



Regards
Mithun

__
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/


Re: libgtop gone?

2003-01-29 Thread Mithun Bhattacharya
Tried compilling libgtop on a server without X and got the following.
The error message seems to be self explanatory.

--
configure: error:
*** GNOME was not found on this system. ***

*** If you want to use LibGTop without GNOME, you need
*** to give configure the --without-gnome parameter.

[root@apex libgtop-1.1.5]#
--

This is libgtop downloaded from 

ftp://ftp.gnome.org/pub/gnome/sources/libgtop/1.1/libgtop-1.1.5.tar.gz




Mithun

--- Perrin Harkins [EMAIL PROTECTED] wrote:

 
 This guy was on HPUX, and he just wanted source to this one library. 
 It 
 used to be available separately.  I guess it's not a simple thing to
 do 
 at this point if you don't want gnome and aren't on Red Hat.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



Re: libgtop gone?

2003-01-29 Thread Mithun Bhattacharya

--- Perrin Harkins [EMAIL PROTECTED] wrote:
   

http://ftp.gnome.org/pub/GNOME/desktop/2.0/2.0.3/sources/libgtop-2.0.0.tar.gz

I dont know how it might affect the users but the above URL seems to be
for Gnome 2.0 (RedHat 8.0) users.

ftp://ftp.gnome.org/pub/gnome/sources/libgtop/1.1/libgtop-1.1.5.tar.gz

seems to be the latest version in the 1.x series

This could possibly affect people compiling on workstations with
graphical interfaces. I would guess it is best to say dont downgrade
libgtop if it is installed.

 
 Thanks to both of you for pointing out that it's on the Gnome FTP
 site. 
   I'll send Doug a documentation patch to point to this location.



Mithun

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com



Re: use http-equiv to refresh the page

2002-11-06 Thread Mithun Bhattacharya

--- Perrin Harkins [EMAIL PROTECTED] wrote:

 I might be overzealous about this, but I dislike seeing HTTP-EQUIV
 meta 
 tags used when actual HTTP headers are available to do the same
 thing. 
  It's fine if there's a reason for it, but usually people do it
 because 
 they don't realize they can just send a real header instead..


So what is the recommended way of doing wait pages ?? Sending a 302
wont definitely show the user anything other than all that text
changing in the status bar.



Mithun

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/



Yahoo is moving to PHP ??

2002-10-30 Thread Mithun Bhattacharya
http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm

If nothing else this should be atleast generate some thoughts ?? It
does show the mod_perl logo so I assume the comments are applying to
mod_perl and not perl/cgi.


Mithun

--
Cons
– There’s More Than One Way To Do It
– poor sandboxing, easy to screw up server
– wasn’t designed as web scripting language

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/



Re: Yahoo is moving to PHP ??

2002-10-30 Thread Mithun Bhattacharya

--- Perrin Harkins [EMAIL PROTECTED] wrote:
 Mithun Bhattacharya wrote:
 
 http://public.yahoo.com/~radwin/talks/yahoo-phpcon2002.htm

 They also say they plan to continue using lots of perl in all the
 places 
 they use it now: off-line processing, filling in the includes and dbm
 
 files that the server-side script assembles.  Perl is not being
 removed.


No it is not being removed but this could have been a very big thing
for mod_perl. Can someone find out more details as to why PHP was
preferred over mod_perl it cant be just on a whim. I might be biased
but considering the fact that PHP and mod_perl were neck to neck the
cons should have made up for any slipup in performance.

Also how does one go about justifying the fact that Ioncube cache is
doing a better cacheing than any mod_perl based solution ??

I am assuming when Yahoo did their research they optimized everything
to the maximum possible they werent out to do a marketting propaganda
now were they 



Mithun

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/



Re: nice mod_perl statistics to share

2002-07-09 Thread Mithun Bhattacharya


--- Stas Bekman [EMAIL PROTECTED] wrote:

  I don't understand why you think so.  If the '/' url is handled by
 a
  mod_perl enable server, then mod_perl will show up in the headers,
  proxy server or not.  Sure, there'll be some servers where you


But do we consider a proxy implementation as two mod_perl installations
or one ? I am sure other technologies would love to beat their chest
as two installations. If you throw in mod_backhand the figures go
haywire even more.

The company I work for utilizes multiple webservers sitting behind a
load balancer which in turn are talking to multiple application servers
who in turn are talking to couple of interface servers talking to third
party systems. If you hit our domain it would reflect just one
webserver 


Mithun

__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



Re: '' in regex

2002-05-18 Thread Mithun Bhattacharya


--- Rizwan Majeed [EMAIL PROTECTED] wrote:
 I was trying this out : $SomeVar =~ // ;   
 $SomeVar =~ /''/ ;$SomeVar
 =~ /\/ ;none of these works.


Works for me in perl 5.6.1

[mithun@zorro mithun]$ perl -wT -e 'my $test = you \
me; print voila\n if $test =~ /\/;'
voila



Mithun

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com



[OT] Perl compillation

2002-02-22 Thread Mithun Bhattacharya

Could someone tell me the right place to ask questions regarding 
problems faced during compillation of perl 5.6.1 on i686 using gcc 3.0 
on a RedHat 7.2 installation.

For the curious folks these are the steps I followed
--
tar xzf stable.tar.gz
cd perl-5.6.1/
rm -f config.sh Policy.sh
sh Configure -de
make
--

everything works fine till now - it even says go ahead and run make 
test. but thats where the fun stuff happens. Make test fails 52 of the 
205 tests and a sample of the error message is as follows.

--
lib/syslfs...Can't load '../lib/auto/Fcntl/Fcntl.o' for module 
Fcntl: ../lib/auto/Fcntl/Fcntl.o: ELF file's phentsize not the expected 
size at ../lib/XSLoader.pm line 75.
  at ../lib/Fcntl.pm line 220
Compilation failed in require at lib/syslfs.t line 14.
BEGIN failed--compilation aborted at lib/syslfs.t line 15.
FAILED at test 0
lib/syslog...Can't load '../lib/auto/Socket/Socket.o' for module 
Socket: ../lib/auto/Socket/Socket.o: ELF file's phentsize not the 
expected size at ../lib/XSLoader.pm line 75.
--

A google search tells me something very fundamental has gone wrong in 
the installation as in the system is trying to load a file as a shared 
library when it isnt - although that doesnt really help me isolate or 
debug the problem.

Ofcourse a search of the perl-beginner list archive didnt help.



Regards
Mithun




Re: Mistaken identity problem with cookie

2002-02-15 Thread Mithun Bhattacharya

Dzuy Nguyen wrote:



 I have been getting many reports from our users that they have been 
 mistakenly identified as someone else.
 I have tried to login as that user and just can't re-create the problem 
 and I can't be at their computer to
 diagnose it.  One thing I'm pretty sure about is that they must have 
 gotton someone else's cookie.  Another



Probably your ISP is using one of those buggy cisco cache server. I am 
unfortunate enuff to have faced this problem with one of the largest ISP 
in India which believes that if I dont send a expiry header it is static 
!! The only way around it is setting a $r-no_cache(1) for every HTML 
page. Even then it will take 2-3 days to see whether it worked or not.

http://www.geocrawler.com/mail/thread.php3?subject=%5BLIH%5D+VSNL%27s+transparent+proxylist=11286

http://www.geocrawler.com/mail/msg.php3?msg_id=7678747list=11286



Mithun




Re: mod_perl, mod_gzip, incredible suckage

2002-02-14 Thread Mithun Bhattacharya

Robin Berjon wrote:


 
 I got it to work once, but I confirm this was painful. I don't use it anymore 
 though so I can't remember the magic that it took to get it to run. As an 
 alternative (probably incomplete) solution, you might want to look inside one 
 of the templating/publishing modules out there that support gzip output 
 natively. I know AxKit does, and iirc TT does too (but I'm not sure).
 
 


http://www.egurucool.com

Works fine with mod_gzip as a DSO Dont even recall having to do anything 
fancy just followed the documentation.



Mithun




Re: handling eval in ePerl

2002-01-21 Thread Mithun Bhattacharya

Perrin Harkins wrote:

 local $SIG{'__DIE__'}  = sub { $error .= $_[0]; };
 
 That's going to kill your exception handling code.  You need to change
 that if you want to be able to use eval() in your code.  Matt has an
 explanation of this in the exceptions part of the mod_perl Guide.


Hmm,

I think just commenting it worked !!. I have tried the following which 
have worked the way it should.

---
# Exception handling
eval {die blah blah blah;};
print got : $@;
---
die blah blah blah;
---
# Write to error log
use Apache::Log;
Apache-request-log-error(got : $@);
---
# Syntax error
eval {die blah blah blah;
print got : $@;
---


print STDERR blah blah blah is going to the browser but I am not 
really worried about it too much unless it is something I should worry 
about - anyone care to comment on that ?

Ofcourse I still dont understand why die was being trapped out there.

Thanks to Perrin and Matt for their suggestions anyway.



Mithun




Re: How to handle die

2002-01-20 Thread Mithun Bhattacharya

___cliff rayman___ wrote:


 [EMAIL PROTECTED]
 
 To subscribe to this Majordomo-controlled mailing list, just send an E-mail



Umm it didnt really answer my original query but I guess since no one 
has answered it - either I didnt present it correctly or no one has a 
answer to it.

I probably wont jump into the I want a newbie mailing list fray for 
this though ;).



Mithun




handling eval in ePerl

2002-01-20 Thread Mithun Bhattacharya

Perrin Harkins wrote:


Umm I didnt mean to offend anyone in my previous posting - I did say I 
probably hadnt presented my situation properly.

 First, ePerl has nothing to do with Embperl or Mason.  It is a totally



Ofcourse you noticed I wrote ePerl/EmbPerl/Mason ?? I clubbed them 
together since I assume among other things you can embed perl code in 
HTML using either of them.



 The Apache::ePerl code is very simple, and I suggest you read it at some
 point.  It attempts to eval() your code, and does the behavior you saw
 if it fails (which is what happens when your script does a die()).  I
 don't think you can change that without changing the code, but that's
 pretty easy to do.


My problem is that die works fine as such but it conks out if done 
inside a eval.

--
%
die blah blah blah;
%
--

redirects me to the default error page.

--
%
eval {die blah blah blah;};
%
--

on the other hand says the following.

--
Apache::ePerl
Version 2.0214

ERROR:
Error on evaluating script from P-code

Contents of STDERR channel:

blah blah blah at //test.html line 2.
--

I am not sure why that might be considered acceptable response but it 
really makes my code a lot more messier trying to circumvent that.

If I could have fixed Apache::ePerl I wouldnt be asking the question 
here - I usually dont go around asking questions to show people how much 
I know about anything. I am not asking to be spoonfed or something but 
if there is something which can be done without changing the 
Apache::ePerl code I would opt for that. It feels like being told to 
change gcc's code if my C code is not working :) - yah both of them are 
written in C .



Mithun




How to handle die

2002-01-18 Thread Mithun Bhattacharya

Hello,

I am running ePerl on my Apache server and a little problem has been 
bugging me a lot. When I do a die blah blah blah inside a eval I get 
the following in my browser. It doesnt matter which browser I use or 
which version of apache I use or which version of Apache::ePerl I use.


Apache::ePerl
Version 2.0214

ERROR:
Error on evaluating script from P-code

Contents of STDERR channel:

blah blah blah at //tmp/test.html line 2.


logs/error_log says


[Sat Jan 19 11:23:01 2002] [error] access to //tmp/test.html failed 
for xx.xx.xx.xx, reason: Apache::ePerl: Error on evaluating script from 
P-code


I would like to know a couple of things in this context :
1. Is die supposed to be handled by ePerl/EmbPerl/Mason ... or did ePerl 
end up over ridding something. In that case I would rather have it 
restored to the default.
2. How do I implement a solution throughout the site without having to 
do goofy stuff in every HTML page or module.
3. Why would anyone do that in the first place ?

Before anyone suggests it - no I cant move to EmbPerl or Mason or 
anything else.

ePerl can be found as Apache::ePerl on cpan or 
http://www.engelschall.com/sw/eperl/ . I wouldnt know if Engelschall is 
on this list but if he is - feedback would be highly appreciated :). 
Also I wonder whether it has been abandoned or renamed since nothing has 
changed since 02-08-1998 (8th Feb ??). The latest version isnt on CPAN 
either.



Mithun




Re: Multiple Sites

2001-12-03 Thread Mithun Bhattacharya

But but it does not work. But if I put in URL/directory and a forward slash/
eg. http://URL/directory/ then it shows the default.htm page. But I know my
customers, and they will not put in the directory forward slash. How do I
get around this issue?


http://httpd.apache.org/docs-2.0/mod/mod_dir.html

quote
This module provides for trailing slash redirects and serving 
directory index files.
/quote

quote
A trailing slash redirect is issued when the server receives a request 
for a URL http://servername/foo/dirname where dirname is a directory. 
Directories require a trailing slash, so mod_dir issues a redirect to 
http://servername/foo/dirname/.
/quote




Re: Multiple Sites

2001-12-03 Thread Mithun Bhattacharya

Medi Montaseri wrote:

 If you only have one IP and want to have many web sites (ie URLs) for
 your customers, then why don't you use VirtualHost. Then your customers
 can either have
 
 www.customer1.xyz.com
 www.customer2.xyz.com
 
 or 
 
 www.customer1.com
 www.customer2.com
 



The originator of this thread didnt exactly say he had control over his 
DNS.




Re: Deleting a cookie

2001-11-27 Thread Mithun Bhattacharya

Mohit Agarwal wrote:
 


 Never tried the negative value for expiration time, but setting it to
 a very small value, say 1s, works.  I'm not sure, but setting the
 cookie value to null should also have the same effect.


I believe setting the expiry date less than the current time should
work.



Mithun



Internal redirect and return value.

2001-10-01 Thread Mithun Bhattacharya

I have a TransHandler which does quite a few things - which under
certain circumstance calls a function defined in another package. Now
that function is supposed to do a internal redirect. What I am currently
observing is that the internal redirect takes place perfectly but the
the Handler then goes ahead and executes whatever code was there below
the point where I branch off to do the internal_redirect. Ofcourse I
fixed that problem by doing a return OK just after calling the function
but I am not sure I understood the whole thing properly. By my
interpretation if I have to do a internal redirect at any stage I would
have to make sure my TransHandler does a return OK - so I either do the
redirect in the handler routine itself or I make sure I propagate the
return code all the way back to the handler. I would like to know
whether I got it right or whether I got waylaid somewhere.



Mithun



LaBrea

2001-09-26 Thread Mithun Bhattacharya

Something to keep Code Red probes busy ??

http://www.hackbusters.net/LaBrea/



Nimda

2001-09-19 Thread Mithun Bhattacharya

If no one did the calculation before it amounts to a data transfer of
approximately 250 MB a month considering the continuous 100Kbps of probe
I am getting since yesterday evening. Doesn't matter to people with T1
links I guess but people hosted on shared servers and anyone else with
dedicated IP might not like that :(.



Mithun



Re: ANNOUNCE: Starting work on Apache::RedirectUnless

2001-09-19 Thread Mithun Bhattacharya

Stephen Adkins wrote:

 Is there an easier way to safeguard against Apache prompting for
 a password over HTTP?

You could keep the secure areas outside the HTTP document root ?? Just a
different DocumentRoot for HTTPS in your VirtualHost or separate
httpd.conf.



Mithun



Re: New Micro$oft vulnerability?

2001-09-19 Thread Mithun Bhattacharya

Just a thought but why are we even bothering about doing a complete
response cycle for the probes ??? I mean nobody is actually going to
care what my server says is it ?? I was thinking more about closing
connection as soon as I figure out the URI. That way my server stays
more productive and my outgoing bandwidth is also saved to a extent.
Firstly I am not even sure how to terminate the response cycle at any
given stage if at all possible. Secondly if I am sure I dont have a
cmd.exe or root.exe to serve from my website should I still bother to
complete the cycle ??



Mithun



Re: Can't build (was Re: Apache.pm fails to load...)

2001-09-17 Thread Mithun Bhattacharya

  find / -name libssl.so.0
  /usr/local/ssl/lib/libssl.so.0

That seems like a nonstandard library path. Is it there in
/etc/ld.so.conf and even if it is did you run ldconfig after adding it
there ??




Mithun



Re: Multiple AddHandler statements

2001-06-22 Thread Mithun Bhattacharya

Right now I wont say that the idea of SSI is bad its just that the usual
SSI implementations that I come accross are usually when I see them
going wrong. The most common example is of that of including content for
banners. I dont know whether it is a configuration goofup or something
else but I have noticed quite a few times the application aborting and
then the abort message turning up instead of the banner. If that person
was doing a system call I am assuming he would have read it some where
in a book or by perldoc - in any case it is well documented to trap
errors. In my opinion I would have a rather well informed user putting
HTML and other applications on my server than assume ignorance on their
part.

I have even seen users including HTML content by doing a cat
filename - bad practice but then I could always claim my users dont
know any better cant I.

Another thing isnt SSI supposed to be slow for almost everything other
than very rudimentary fucntions and that 

Finally SSI can be almost as good a replacement for rudimentary CGI and
some templating work but I feel in the long run it is better to put a
proper script or a template mechanism in place rather than sticking to
SSI. Atleast I would rather make the effort to give a alternative
solution to SSI.



Mithun



Re: Multiple AddHandler statements

2001-06-21 Thread Mithun Bhattacharya

No offense meant but it is my personal opinion that SSI can mess up a
system worse than Perl ever could. Also the person who had initiated
this thread was using SSI to execute a third party application. I am not
sure why a system command would be worse than doing a SSI.


Mithun



Re: Apache+mod_perl+JServ

2001-06-20 Thread Mithun Bhattacharya

Hello list members,


I was looking at various options to monitor applications running on my
server and was wondering what is the usual practice in such situations.
I am looking at data collection in the lines of sysstat. It collects
data of various resources in real time and saves it in a binary format
which can be later processed to extract relevant information and then
analyzed in appropriate manner. In the current situation I would like to
monitor the resource utilization by various modules over a period of
time and any other factors affecting my web server. I am only concerned
about applications running under modperl's jurisdiction.



Mithun



Re: Multiple AddHandler statements

2001-06-19 Thread Mithun Bhattacharya

Is there something in SSI which cant be done in a better way using Perl
??



Re: Regarding modperl installation (fwd)

2001-05-05 Thread Mithun Bhattacharya

Hmm maybe someone can tell me what I am doing wrong ???



Mithun

--
Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
osname=linux, osvers=2.2.5-22smp, archname=i386-linux
uname='linux porky.devel.redhat.com 2.2.5-22smp #1 smp wed jun 2
09:11:51 edt 1999 i686 unknown '
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
cc='cc', optimize='-O2 -m486 -fno-strength-reduce',
gccversion=egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
cppflags='-Dbool=char -DHAS_BOOL -I/usr/local/include'
ccflags ='-Dbool=char -DHAS_BOOL -I/usr/local/include'
stdchar='char', d_stdstdio=undef, usevfork=false
intsize=4, longsize=4, ptrsize=4, doublesize=8
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lposix -lcrypt
libc=, 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): 
  Built under linux
  Compiled at Feb  2 2000 15:35:58
  @INC:
/usr/lib/perl5/5.00503/i386-linux
/usr/lib/perl5/5.00503
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005
.



PERLLOCAL(1)   User Contributed Perl Documentation   PERLLOCAL(1)


       
  the _M_D_5 manpage


   +o   installed into: /usr/lib/perl5/site_perl/5.005

   +o   LINKTYPE: dynamic

   +o   VERSION: 1.7

   +o   EXE_FILES:

3/Feb/2000 perl 5.005, patch 03 1
---
The following were downloaded first

Bundle::CPAN
File::Spec
Digest::MD5
Compress::Zlib
Archive::Tar
Bundle::libnet

and then I got.
---
Trying with /usr/bin/lynx -source to get
   
ftp://ftp.digital.com/pub/plan/perl/CPAN/authors/id/G/GB/GBARR/Bundle-libnet-1.00.tar.gz

Trying with /usr/bin/lynx -source to get
   
ftp://ftp.digital.com/pub/plan/perl/CPAN/authors/id/G/GB/GBARR/CHECKSUMS
Checksum for
/root/.cpan/sources/authors/id/G/GB/GBARR/Bundle-libnet-1.00.tar.gz ok
Bundle-libnet-1.00/
Bundle-libnet-1.00/Makefile.PL
Bundle-libnet-1.00/libnet.pm
Bundle-libnet-1.00/README
Bundle-libnet-1.00/MANIFEST
Running make for G/GS/GSAR/perl-5.6.1.tar.gz

Trying with /usr/bin/lynx -source to get
   
ftp://ftp.digital.com/pub/plan/perl/CPAN/authors/id/G/GS/GSAR/perl-5.6.1.tar.gz



Re: Regarding modperl installation (fwd)

2001-05-04 Thread Mithun Bhattacharya

I may be wrong on this but doesnt perl 5.05  come with CPAN v 1.48 ???
In anycase I am pretty sure I had to actually abort the upgrade if I
wanted to keep my perl 5.05 everytime I tried to go to CPAN v 1.59. I
will try to lay my hand on a clean box and try it out to see what
happens and get back soon.

Hmm to think of it I faintly recall something about libnet requiring
IO::Sockets provided by perl 5.6.1 or something I am not sure maybe
someone on the list can throw more light on that.



Mithun



Re: Sendmail or not?

2001-04-08 Thread Mithun Bhattacharya

Am I correct in assuming that you are writing to a file based on user
inputs in real time ?? Doesn't that imply you have to go around and
implement some sort of file locking or queuing procedure in the handler
itself ?? Personally I would rather take the overhead of firing off the
MDA and let the mail subsytem worry about queuing timeouts and whatever
else might come up.




Mithun



Re: Sendmail or not?

2001-04-08 Thread Mithun Bhattacharya

You might want to actually try it out and see what kind of delays are
involved in firing off the MDA. Under peak loads where the bottle neck
would too many MDA's running at one time (most of the MDA code I assume
would be shared though) and under low loads when the bottle neck would
be of executing the MDA.

By the way sendmail is not the only MDA available - you would get many
MDA's with quite small footprint in case that becomes a bottleneck. What
you could also try out is use SMTP to deliver to your own mailserver and
then it can do the queueing. Ofcourse here your benchmark gets
complicated by the fact that you need to stress test under peak loads
for your webserver and mailserver both.



Mithun

PS: This has been discussed in the past and you might want to look at
the archives too.