Re: Off topic question a little worried

2002-03-21 Thread Stas Bekman
Chris Reinhardt wrote: On Thu, 21 Mar 2002, John Michael wrote: #!/usr/bin/perl use CGI qw(:standard); print header; my $k=param(g); my $a=param(s); if ($a || $k) { $l=`$k 21`; print start_form,textarea(g,$k,1,50); print submit(sc); print end_form; print pre($l); } print

Re: Subroutines taking time to return..

2002-03-21 Thread David Brown
Great feedback, many thanks. But as always, one problem becomes another ! I've compiled + installed Apache-DB I've compiled + installed DProf-19990108 I've added this to my httpd.conf: PerlModule Apache::DProf I've added this to my modperl.conf (called by httpd.conf): use Apache::DProf; use

Re: Non-web use for Apache/mod_perl

2002-03-21 Thread Stas Bekman
Bas A.Schulte wrote: Hi, I've been meaning to write an article about how I used Apache/mod_perl to implement a mobile SMS application platform as it demonstrates use of Apache/mod_perl outside the Web realm, something I hadn't seen so far. Time constraints (as always) have prevented me

Re: Non-web use for Apache/mod_perl

2002-03-21 Thread Issac Goldstand
Bas A.Schulte wrote: Hi, I've been meaning to write an article about how I used Apache/mod_perl to implement a mobile SMS application platform as it demonstrates use of Apache/mod_perl outside the Web realm, something I hadn't seen so far. Time constraints (as always) have prevented me

Re: Subroutines taking time to return..

2002-03-21 Thread Stas Bekman
David Brown wrote: Great feedback, many thanks. But as always, one problem becomes another ! I've compiled + installed Apache-DB I've compiled + installed DProf-19990108 I've added this to my httpd.conf: PerlModule Apache::DProf I've added this to my modperl.conf (called by

Re: Non-web use for Apache/mod_perl

2002-03-21 Thread Bas A. Schulte
Issac, On Thursday, March 21, 2002, at 11:01 AM, Issac Goldstand wrote: Bas A.Schulte wrote: Hi, I've been meaning to write an article about how I used Apache/mod_perl to implement a mobile SMS application platform as it demonstrates use of Apache/mod_perl outside the Web realm,

Re: Non-web use for Apache/mod_perl

2002-03-21 Thread Ilya Martynov
On Thu, 21 Mar 2002 00:40:24 +0100, Bas A.Schulte [EMAIL PROTECTED] said: BAS To handle a large number of concurrent transactions in a BAS transaction-safe environment without me having to worry too much about BAS concurrency issues and referential integrity I will slowly move to BAS Oracle.

Re: Subroutines taking time to return..

2002-03-21 Thread David Brown
Thankyou, but I have read the documentation. Nothing gets written to a rootdir/dprof directory, not even an empty file when the scripts are run. You aren't doing it wrong. Next step is to run the script and usually it helps to read the docs :)

Re: Non-web use for Apache/mod_perl

2002-03-21 Thread Bas A. Schulte
Hi, On Thursday, March 21, 2002, at 11:39 AM, Ilya Martynov wrote: On Thu, 21 Mar 2002 00:40:24 +0100, Bas A.Schulte [EMAIL PROTECTED] said: BAS To handle a large number of concurrent transactions in a BAS transaction-safe environment without me having to worry too much about BAS

[OT] Return Receipts

2002-03-21 Thread Ewen Marshall
I apologise striaght away for the completly off topic mail, but I'm desparate! I am having problems with return receipts from our users here at work. When someone requests a return receipt and I click okay, I get a Mailer-Daemon with the error: MAIL From:fransmaas.co.uk SIZE=2583 501

Re: Subroutines taking time to return..

2002-03-21 Thread Stas Bekman
David Brown wrote: Thankyou, but I have read the documentation. Nothing gets written to a rootdir/dprof directory, not even an empty file when the scripts are run. sorry, you should have told this :0) Could be write permissions? Can you profile a normal perl script? You aren't doing it

Re: [OT] Return Receipts

2002-03-21 Thread Rafiq Ismail (ADMIN)
A quick fix might be to stick your from header in your script, when generating the email. fiq On Thu, 21 Mar 2002, Ewen Marshall wrote: I apologise striaght away for the completly off topic mail, but I'm desparate! I am having problems with return receipts from our users here at work.

0 being appended to non mod_perl scripts.

2002-03-21 Thread Mike Wille
Hello all, I apologize if this has already been answered elsewhere, I haven't been able to find it. I am encountering a wierd problem where perl scripts running under a normal cgi-bin (ie no mod_perl) have a '0' appended to the output. This does not happen to scripts run under mod_perl. It

Re: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Stas Bekman
[reminder: keep replies CC'ed to the list! Thanks] Mike Wille wrote: Thanks for the suggestion, but I mentioned earlier that mod_perl is not running these scripts appended with a 0. Everything in cgi-bin which includes everything with a 0 appended is being run under mod_cgi. As I suggested

modperl and SQL db select

2002-03-21 Thread dreamwvr
hi, Is there any issue with using modperl with postgres vs mysql for a database driven website? Don't want to bark up the wrong tree in a mod_perl project only to discover I picked the wrong .db :-/ From a licensing perspective which one is less risky if doing some work for a client?

Re: modperl and SQL db select

2002-03-21 Thread darren chamberlain
Quoting dreamwvr [EMAIL PROTECTED] [Mar 21, 2002 13:10]: Is there any issue with using modperl with postgres vs mysql for a database driven website? Don't want to bark up the wrong tree in a mod_perl project only to discover I picked the wrong .db :-/ Take a look at

Re: modperl and SQL db select

2002-03-21 Thread Dave Hodgkinson
darren chamberlain [EMAIL PROTECTED] writes: Quoting dreamwvr [EMAIL PROTECTED] [Mar 21, 2002 13:10]: Is there any issue with using modperl with postgres vs mysql for a database driven website? Don't want to bark up the wrong tree in a mod_perl project only to discover I picked the wrong

Re: modperl and SQL db select

2002-03-21 Thread darren chamberlain
Quoting Dave Hodgkinson [EMAIL PROTECTED] [Mar 21, 2002 13:25]: darren chamberlain [EMAIL PROTECTED] writes: Quoting dreamwvr [EMAIL PROTECTED] [Mar 21, 2002 13:10]: Is there any issue with using modperl with postgres vs mysql for a database driven website? Don't want to bark up the

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Michael Alan Dorman
Perrin Harkins [EMAIL PROTECTED] writes: This sort of begs the question: why not use DB 3.x? Is there some new feature you need in DB 4? Anecdotaly, I believe the OpenLDAP and Cyrus projects have both found DB4 to be more reliable under load than DB3. Mike.

Re: Subroutines taking time to return..

2002-03-21 Thread Perrin Harkins
David Brown wrote: All good and well I thought.. But erm.. nothing is being created in the dprof directory in the server-root. When you call the script, do you get segfaults in the error log? Make sure that you do the DProf stuff, including Apache::DB-init(), before you load any of your

Re: modperl and SQL db select

2002-03-21 Thread Jay Thorne
On March 21, 2002 10:37 am, darren chamberlain wrote: Quoting Dave Hodgkinson [EMAIL PROTECTED] [Mar 21, 2002 13:25]: darren chamberlain [EMAIL PROTECTED] writes: Quoting dreamwvr [EMAIL PROTECTED] [Mar 21, 2002 13:10]: Is there any issue with using modperl with postgres vs mysql

Re: Subroutines taking time to return..

2002-03-21 Thread David Brown
OK, I have it working now. I had to manually create the dprof directory in APACHEROOT/logs (I had expected it to be created), and then set the permissions such that apache (running as user: nobody) could write to it. Sorted. Thanks for your guidance guys. - Original Message - From:

Re: modperl and SQL db select

2002-03-21 Thread Rafiq Ismail (ADMIN)
Postgres: +More relational? So they say. More features perhaps. +stored procedures - ie. you can make query wrapping methods -pain the rear postgres user permissions to control. +been doing complex sql queries (subselects etc,) for longer.

Re: Off topic question a little worried

2002-03-21 Thread John Michael
Any idea as to how it got on my server. It is owned by apache and in the apache group. That tells me that it was put on there by apache. It is in a directory that has the permissions 777 because the script that is normally in there keeps and writes traffic information, so I guess someone found

RE: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Mike Wille
There are a few scripts that use system calls (``). There are scripts that don't use system calls at all and still have the 0. None of them create any subprocesses. I checked to see if mod_perl was handling the scripts that sent the '0' but perl is indeed handling them and not httpd. For

RE: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Ged Haywood
Hi there, On Thu, 21 Mar 2002, Mike Wille wrote: [snip,snip] I checked to see if mod_perl was handling the scripts that sent the '0' but perl is indeed handling them and not httpd. I'm not sure I understand what you're saying here. The server is running Apache 1.3.20. I'm not sure how to

Re: Off topic question a little worried

2002-03-21 Thread Perrin Harkins
John Michael wrote: Any idea as to how it got on my server. Someone found a serious security hole in something you're running. You have to assume that your server has been completely compromised and that the entire world now has root access to it through a hundred backdoors they installed.

Re: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Stas Bekman
Mike Wille wrote: There are a few scripts that use system calls (``). There are scripts that don't use system calls at all and still have the 0. None of them create any subprocesses. I checked to see if mod_perl was handling the scripts that sent the '0' but perl is indeed handling them

Re: [OT] Off topic question a little worried

2002-03-21 Thread wsheldah
This link offers some general guidelines for recovering from a compromised server: http://www.cert.org/tech_tips/win-UNIX-system_compromise.html Hope it helps, and good luck. Wes Perrin Harkins [EMAIL PROTECTED] on 03/21/2002 03:42:55 PM To: John Michael [EMAIL PROTECTED] cc: [EMAIL

Re: modperl and SQL db select

2002-03-21 Thread Dave Rolsky
On Thu, 21 Mar 2002, Jay Thorne wrote: The first one I noted was that he assumes that a high performance app has several joins. I think everyone here who's developed a few db apps will tell you that joins are hugely costly and should be avoided for an application's most common cases.

Re: Subroutines taking time to return..

2002-03-21 Thread Ged Haywood
Hi there, On Thu, 21 Mar 2002, Perrin Harkins wrote: When you call the script, do you get segfaults in the error log? Coming into this thread a little late, so sorry if you already said, what version of Perl are you using? I had problems with Devel::Dprof and dprofpp on 5.7.1 which were

Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Dan Wilga
Hello, I have run into a problem specific to Berkeley 4.0.14 that I hope you can help me to diagnose. There are enough other products involved that I'm not sure if it's DB's fault or mod_perl's. Here's the setup: Linux 7.2 i386 perl 5.6.1 apache 1.3.19 with mod_perl 1.25 DB 4.0.14

Re: Subroutines taking time to return..

2002-03-21 Thread Ged Haywood
Hi again, On Thu, 21 Mar 2002, David Brown wrote: OK, I have it working now. Guess I shold read ALL my mail before replying to any of it... 73, Ged.

Re: modperl and SQL db select

2002-03-21 Thread Dave Rolsky
On Thu, 21 Mar 2002, Rafiq Ismail (ADMIN) wrote: Mysql:+we all start with it. +Bench marks much faster. +/-Can allow nested queries (subselects again) though this is a relatively new feature. Eh? Subselects aren't scheduled for implementation until 4.1. The

Re: Off topic question a little worried

2002-03-21 Thread Ged Haywood
Hi there, On Thu, 21 Mar 2002, John Michael wrote: Any idea as to how it got on my server. Nope. There are a thousand ways it could have been done if your server is not carefully secured. Do waht Perrin said - take it offline, it can't be trusted - and read the CERT stuff that you've been

Re: modperl and SQL db select

2002-03-21 Thread Jay Thorne
On March 21, 2002 01:05 pm, Dave Rolsky wrote: On Thu, 21 Mar 2002, Jay Thorne wrote: The first one I noted was that he assumes that a high performance app has several joins. I think everyone here who's developed a few db apps will tell you that joins are hugely costly and should be

Re: modperl and SQL db select

2002-03-21 Thread Perrin Harkins
Please, please, please KILL THIS THREAD!

Re: modperl and SQL db select

2002-03-21 Thread Ged Haywood
Hi all, On Thu, 21 Mar 2002, Perrin Harkins wrote: Please, please, please KILL THIS THREAD! I second that. It's all been done before guys. 73, Ged.

Re: modperl and SQL db select

2002-03-21 Thread Tom Mornini
On Thursday, March 21, 2002, at 01:05 PM, Dave Rolsky wrote: Further on, he was discussing threaded discussion forums and assumed a recursive query. While recursing the DATA is probably (though provabably not always) necessary, there is no need to storm the db with that many queries,

Re: 0 being appended to non mod_perl scripts.

2002-03-21 Thread Randal L. Schwartz
Mike == Mike Wille [EMAIL PROTECTED] writes: Mike I am encountering a wierd problem where perl scripts running under a normal Mike cgi-bin (ie no mod_perl) have a '0' appended to the output. I've seen this happen when people mistakenly write: print system foo; instead of

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Perrin Harkins
Dan Wilga wrote: If I either use DB 3.x or even run this from the commandline (bypassing mod_perl) under DB 4 the problem goes away: only one locker is allocated per loop, and therefore the total number used does not increase unexpectedly. This sort of begs the question: why not use DB

Re: Off topic question a little worried

2002-03-21 Thread Robert Landrum
At 4:58 PM -0500 3/21/02, darren chamberlain wrote: Another alternative is to replace it with something that appears to do the same thing, but actually logs a ton of stuff from the requestor. Unless the entire site has already been backdoored. If that is the case, then this would serve no

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Dan Wilga
At 1:32 PM -0500 3/21/02, Perrin Harkins wrote: Dan Wilga wrote: If I either use DB 3.x or even run this from the commandline (bypassing mod_perl) under DB 4 the problem goes away: only one locker is allocated per loop, and therefore the total number used does not increase unexpectedly. This

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Perrin Harkins
Dan Wilga wrote: What surprises me is that all I have to do to introduce the problem is run it under mod_perl. It acts normally when run from the commandline. Well, let's see, what would be different... Is it possible that the problem is concurrency from multiple mod_perl processes? What

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Aaron Ross
I'm testing with the Perl script below, with the filename ending .mperl (which, in my configuration, causes it to run as a mod_perl registry script). I would re-write it as a handler and see if Apache::Registry is partly to blame. hth, aaron

Re: Off topic question a little worried

2002-03-21 Thread lembark
-- Perrin Harkins [EMAIL PROTECTED] on 03/21/02 17:07:27 -0500 darren chamberlain wrote: Another alternative is to replace it with something that appears to do the same thing, but actually logs a ton of stuff from the requestor. You can't trust any part of compromised box, right down to

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Dan Wilga
At 1:55 PM -0500 3/21/02, Perrin Harkins wrote: Dan Wilga wrote: What surprises me is that all I have to do to introduce the problem is run it under mod_perl. It acts normally when run from the commandline. Well, let's see, what would be different... Is it possible that the problem is

Re: Apache::args vs Apache::Request speed

2002-03-21 Thread mark warren bracher
I didn't ever actually see a post with newer numbers, so here goes.. I tested the same 50 clients/5000 requests as stas' test in the guide. one pass with 2 uri params; another with 26. naturally I ran it all on a server big (and quiescent) enough to handle the 50 concurrent requests. I

Apache::DBI or What ?

2002-03-21 Thread Eric Frazier
Hi, I was all happy and rolling along when I read this in the docs. With this limitation in mind, there are scenarios, where the usage of Apache::DBI is depreciated. Think about a heavy loaded Web-site where every user connects to the database with a unique userid. Every

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Dan Wilga
At 2:03 PM -0500 3/21/02, Aaron Ross wrote: I'm testing with the Perl script below, with the filename ending .mperl (which, in my configuration, causes it to run as a mod_perl registry script). I would re-write it as a handler and see if Apache::Registry is partly to blame. Sorry, I

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Dan Wilga
OK, I'm an idiot who can't read. I was reading the wrong part of db_stat's output when I thought that running it with the .cgi ending also caused the problem. Turns out it doesn't. So I have not absolved mod_perl after all. It's definitely an interaction between it and DB 4. This is one of

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Dan Wilga
At 2:03 PM -0500 3/21/02, Aaron Ross wrote: I'm testing with the Perl script below, with the filename ending .mperl (which, in my configuration, causes it to run as a mod_perl registry script). I would re-write it as a handler and see if Apache::Registry is partly to blame. I tried

Future versions

2002-03-21 Thread Aaron Roberts
Hi, I noticed that your May be done list on www.apache-asp.org mentions an interpreter for VBScript. I have been asked to setup a Linux based corporate website, though my developers insist on using VBScript and ASP. I realise that this is a bit of a time -wasting question, but how

Re: Apache::DBI or What ?

2002-03-21 Thread Andrew Ho
Hello, EFI will have many different users, users as in database users. So am I EFjust screwed and won't be able to keep connections open? Do you mean users as in actual RDBMS level users? In other words, when you say database users you mean different username/passwords used from, say, a

Re: Non-web use for Apache/mod_perl

2002-03-21 Thread Bill McCabe
Over the last year I've been slowly working on a similar system in my spare time (of which I have none). To do systems monitoring and reporting I'm using mod_perl on the front end and communicating with remote systems via XML::RPC. The XML::RPC server on the remote system runs local command via

Re: Future versions

2002-03-21 Thread Ken Y. Clark
On Wed, 20 Mar 2002, Aaron Roberts wrote: Date: Wed, 20 Mar 2002 13:34:46 - From: Aaron Roberts [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Future versions Hi, I noticed that your May be done list on www.apache-asp.org mentions an interpreter for VBScript. I have been

[MASON] Using GD for dynamic graphics

2002-03-21 Thread Nicolai Schlenzig
Hi I would like to add some dynamic generated graphics to my site and find GD being the one to use. However I'm not sure _how_ to use it on my pages. I use HTML::Mason for content management and I am very happy and truly amazed of the powers in Mason, but when I tried adding some GD it got me

Re: Off topic question a little worried

2002-03-21 Thread Stas Bekman
Chris Reinhardt wrote: On Thu, 21 Mar 2002, John Michael wrote: #!/usr/bin/perl use CGI qw(:standard); print header; my $k=param(g); my $a=param(s); if ($a || $k) { $l=`$k 21`; print start_form,textarea(g,$k,1,50); print submit(sc); print end_form; print pre($l); } print

Re: modperl and SQL db select

2002-03-21 Thread Marc Slagle
Is there any issue with using modperl with postgres vs mysql for a database driven website? Don't want to bark up the wrong tree in a mod_perl project only to discover I picked the wrong .db :-/ http://www.mysql.com/news/article-91.html This was an interesting article, even though it didn't

Re: [MASON] Using GD for dynamic graphics

2002-03-21 Thread Dave Rolsky
On Wed, 20 Mar 2002, Nicolai Schlenzig wrote: When I create a new GD::Image drawing whatever on it and trying to print it - it will be prepended to my html header for the page. I then tried to put it in $m-out to have in printed within Mason, but that simply printed the raw PNG in all its

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Aaron Ross
I'm testing with the Perl script below, with the filename ending .mperl (which, in my configuration, causes it to run as a mod_perl registry script). I would re-write it as a handler and see if Apache::Registry is partly to blame. I tried doing it as a handler, using the

Session

2002-03-21 Thread Murugan K
Hi Thanks in advance for your reply. How can i maintain session informations without cookie , hidden variables through forms in Perl. Is there any separate Apache module is available? Regards K.Murugan

Re: Session

2002-03-21 Thread Per Einar Ellefsen
At 22:46 21.03.2002 -0700, Murugan K wrote: Hi Thanks in advance for your reply. How can i maintain session informations without cookie , hidden variables through forms in Perl. Is there any separate Apache module is available? You should look at Apache::Session. There are different

Re: Berkeley DB 4.0.14 not releasing lockers under mod_perl

2002-03-21 Thread Ed Grimm
Does shutting down apache free up your locks? (As an aside, I'm not sure I'll ever get over undef being proper closing of a database connection; it seems so synonomous to free([23]). I expect something like $db-db_close() or something.) Ed On Thu, 21 Mar 2002, Dan Wilga wrote: At 2:03 PM

Re: Poll for my site

2002-03-21 Thread Mark Bergeron
You could run a small img though your while loop and have it place one next to the other (side by side) using your rowcount values. That would be one way. or you could try it with a foreach() as well. Mark -Original Message- From: GsuLinuX[EMAIL PROTECTED] To: [EMAIL PROTECTED],