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
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
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
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
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
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,
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.
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 :)
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
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
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
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.
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
[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
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?
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
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
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
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.
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
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
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:
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.
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
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
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
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.
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
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
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.
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
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
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.
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
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
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
Please, please, please KILL THIS THREAD!
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.
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,
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
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
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
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
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
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
-- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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],
65 matches
Mail list logo