Hi, All
Sorry, this post might be out of scope of this particular list, but
still... don't punch me heavily :) I just think the people here might
have met this problem while deploying big public applications.
I use Apache::Session to identify logged in users. However, the users
are allowed to
Hi Randy,Shannon ...
Have asked the SA chappy to recompile the module as you suggested.
Not sure if the approach you mention can be done though I think HP
don't want us to add anything to their mod_perl distribution by adding
modules to the main location. Can't we compile the module against
Can I call something like a reload of httpd.conf?
This is what sending a SIGHUP to Apache does. However, both mod_perl-enabled
servers I run misbehave on this, so I always do a full restart.
Egor.
Hi Folks
Fascinating to see this on a non-Windows box.
Reloading modules after they have been editied, eg httpd like so:
PerlModule Apache::Reload
PerlInitHandler Apache::Reload
PerlSetVar ReloadAll Off
PerlSetVar ReloadModules CGI CGI::Application ... Sweep::*
works about 99% of the time
I've actually pinpointed the problem to one HTML tag in the output that
Template-Toolkit sends to Apache as a result of the cgi script's run.
Actually, I've just found out another thing, which is really weird. If I
just change the amount of whitespace in the template file (see the zip file
Hello [EMAIL PROTECTED],
Tuesday, August 05, 2003, 2:55:52 PM, you wrote:
cfr Hi list,
cfr One questions for the braves ;-)
cfr As I understand, the directive
cfr PerlModule Foo::Bar
cfr loads the module but doesn't import the symbols since it is equivalent to
cfr the use Foo::Bar ().
On Thu, Aug 14, 2003 at 11:07:13AM -0400, Geoffrey Young wrote:
There is actually a Location/LocationMatch sequence performed just
before the name translation phase (where Aliases and DocumentRoots are
used to map URLs to filenames). The results of this sequence are completely
thrown
Shannon,
Thanks very much for the quick response. Here's the info you wanted (I
hope):
HP-UX_Apache-based_Web_Server/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.6.1
DAV/2 configured
Can my career be saved? ;0)
Thanks again,
Antony.
-Original Message-
From: Shannon Eric Peevey
Steve,
and the good news for you is that I've reproduced your problem.
GREAT! Thank you so much for persevering through this! So do you have a
traceback or some info that the developers might be able to use to track
this down?
The variable will not stay shared error is a common problem with
Hodge, Jeff F (ECIII) wrote:
I have perl 5.8.0 with apache 1.3.28, and mod_perl 1.28 installed. I
need the Apache::Test to be installed as well, as it is a req. for many
other modules. I'm running into trouble with make test. Apparently it
can't find the httpd server. How/Where would I add
On Sat, 9 Aug 2003, gerard uolaquetalestem wrote:
I have the next problem, i am in page A that form points to page B, that is
a modperl2 handler.
This handler makes a job and decides to send a cookie to the browser, and
after to redirect to the same page A who is ready to catch the cookie.
Stas Bekman wrote:
Perrin Harkins wrote:
On Thu, 2003-08-14 at 14:29, Jean-Sebastien Guay wrote:
I'm asking you to try it and see if it works.
Ok, I tried it and it works.
I guess we need to add this to the docs: Apache::Reload will have
problems if you import subs from a module you are
On Thu, 2003-08-14 at 11:24, Jean-Sebastien Guay wrote:
I'm using Apache::Reload, and I can see that my modified module is
getting reloaded (with ReloadDebug On), but the program still uses the
old code.
How can you tell? Can you post some sample code? You might be doing
something that
Randy,
OK thanks, I'll give that a try. I think we can compile the module against
5.6.1 It's just that we can't change the 5.6.1 install as it would
break our support agreement with HP (so I am told) ... I presume we just
have to 'install' the module in a different place after compiling
On Saturday, Aug 9, 2003, at 15:26 Europe/London, Nick Tonkin wrote:
On Sat, 9 Aug 2003, gerard uolaquetalestem wrote:
I have the next problem, i am in page A that form points to page B,
that is
a modperl2 handler.
This handler makes a job and decides to send a cookie to the browser,
and
how can I restart the root httpd server from within modperl?
Use `at` to schedule it a minute in the future -- effectively forking it.
Note that normally apache starts as root and runs as an unprivileged
user. If this is the case you _can_ achieve it using a suid wrapper or
sudo, but you'll
A relatively trivial point, but I notice that the pod files
cgi_to_mod_perl.pod
mod_perl.pod
mod_perl_tuning.pod
which were supplied with mod_perl 1 are missing from mod_perl 2
(perhaps because they need re-writing?)
Is it indended to include these in the final mod_perl 2 release?
Thanks
Hodge, Jeff F (ECIII) wrote:
first off.
perl Makefile.PL -httpd /usr/local/apache2/bin/httpd
Stas...this worked great for configuring httpd for Apache:: testI
assumed it was something along those lines tks.
;)
waiting for server to start: .Syntax error on line 28
of
Aleksandr Guidrevitch said:
...
Is it possible to uniquely identify the user by some attributes ?
The only thing I consider now is IP, but what about proxies and NATs ?
User Agent string could also be stolen via javascript. That means I tend
to make stolen session ids non-reusable.
Went
Stas,
e.g. I'd check the access_log to see whether it issues only one
request or
more.
Also make sure to debug in the single process (thread?) mode
(httpd -X)
I'll check those out this afternoon.
It's possible that some of your code or the modules that you use
either misuse
$^W or trap
I understand translation handlers cannot be Directory-specific. But
Location directives apply before any translation handler is called (see
below).
yes they do, but not really. to really understand this, see
http://httpd.apache.org/docs/sections.html
specifically,
There is actually a
and want to unset the TransHandler inside the Location.
How to do that?
AFAIK: not. The TransHandler is the first to be called and cannot appear
inside a container (ref. ModPerl cookbook). The only thing I can think of,
and in fact implemented this, to make the TransHandler URI-aware and
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I have a
VirtualHost ...
PerlTransHandler Handler
Location ...
/Location
/VirtualHost
and want to unset the TransHandler inside the Location.
How to do that?
Thanks
Torsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)
On Thursday 14 August 2003 8:06 am, Joelle Nebbe wrote:
What i do is store both the remote IP and the user agent HTTP parameters in
the session when the session is created. Whenever a new request comes in
with that session I check that those havent changed.
So, you don't care about AOL users
On Thu, 14 Aug 2003, Antony Batten wrote:
Have asked the SA chappy to recompile the module as you
suggested. Not sure if the approach you mention can be
done though I think HP don't want us to add anything
to their mod_perl distribution by adding modules to the
main location. Can't we
But you really want to learn how to
write tests with Apache::Test if you do any serious mod_perl
development, so there is no excuse not to learn Apache::Test, not
talking about the fact that there are hundreds of existing tests as
examples, the tutorial
Stas,
I just checked, and when the Apache crash occurs, nothing gets written
to access_log. It would seem that the crash happens before the request
is logged.
Also,
b) why my warnings don't show up in the error_log.
I just moved my mod_perl config from httpd.conf to another file,
Hi,
I once saw an example of port forwarding using netcat and inetd, i think it involved
setting up a listening netcat as the application, using inetd to bind it to a specific
port and then forwarding the connection onwards to the ip and/or port where you want
it to go, something like this:
Title: setting httpd for Apache::test
I have perl 5.8.0 with apache 1.3.28, and mod_perl 1.28 installed. I need the Apache::Test to be installed as well, as it is a req. for many other modules. I'm running into trouble with make test. Apparently it can't find the httpd server. How/Where would
It's possible that some of your code or the modules that you use
either misuse
$^W or trap $SIG{__WARN__} which prevents from warnings to be printed.
grep
for these two things.
Remember - there's only the code I showed you. No other modules (other
than Template, strict and warnings which are
Title: which mod defines transferlogs?
first off.
perl Makefile.PL -httpd /usr/local/apache2/bin/httpd
Stas...this worked great for configuring httpd for Apache:: testI assumed it was something along those lines tks.
second.
While installing Apache::Bundle through cpan I'm
I am getting up and running a server that wants mod_perl. The instructions
talks about a startup script. I'm very new, so I don't know how I'm
supposed to get this step completed.
Do I copy the provided script to a location? Do I edit an existing script?
Do I edit some configuration file?
I can't help you with those things without being able to reproduce the problem :(
but see below regarding the reload confusion.
[...]
# Add the top-level directory for the modules into the module search
path.
use lib qw($ENV{SCRIPT_ROOT});
Apache::Reload didn't seem to want to reload my
Douglas Theobald wrote:
On 8/10/03 2:46 PM, Stas Bekman [EMAIL PROTECTED] a écrit :
Douglas Theobald wrote:
The Searching...Please wait text does not display until the sleeps are
done. Adding $|=1; up top does not help. However, this code does work:
use CGI ();
my $r = shift;
my $q = new CGI;
Steve,
How did you build Apache 2?
I downloaded the binaries... Sorry, can't help there.
Please keep me posted as to your progress.
Thanks,
J-S
- Original Message -
From: Steve Hay [EMAIL PROTECTED]
To: Jean-Sebastien Guay [EMAIL PROTECTED]
Cc: Stas Bekman [EMAIL PROTECTED];
I just noticed an oddity in my application. I setup a table in SQL witha serial, not null, primary key column.
Then I have a routine that inserts into the table (not setting the key column).
If I do the insert from the psql utitilty the sequence stays consistant (inc by 1) w/each new row added.
I must be missing something obvious, but I can't get the friendly
Apache::DBI status item to show up in /perl-status like I read about.
I can see the module loaded at:
/perl-status/?Apache::DBI
and other modules, e.g. HTML::Mason, have installed their status pages,
so I'm assuming
Hi,
how can I restart the root httpd server from within modperl? My
problem is that when I call system() with say apachectl restart the
father process is stopped killing the children including the apachectl
itself. So it can't start of again. Can I call something like a reload
of httpd.conf?
Do you have any code that might do a select to determine the value of the
sequence used?
Example:
INSERT blah blah blah;
SELECT currval(sequence_name);
or somethign like that?
If so, the SELECT may be incrementing the counter and that would explain
the jump by 2 your seeing.
There is a
Why not start the Apache from a shell script that would always start it
again if it dies?
To restart the Apache then, you'd just kill the root httpd with apachectl.
Killing the paernt shell script would terminate the whole operation.
Egor.
-Original Message-
From: Dirk Lutzebaeck
Dennis Stout writes:
On a whim, I would try writing a second script to do the actual shutdown and
restart of Apache.
Then have your mod_perl program either run it in the background (with a ) or
fork it into another process.
Did exactly that but is has the effect that when the parent
Hello,
We have several open positions at Tellme. Folks on this list are usually
fine candidates for engineering positions at Tellme as our web backend
environment is mainly mod_perl based, involving externally visible,
traditional web applications, as well as internal VoiceXML applications
and
Thomas Klausner wrote:
Hi!
On Mon, Aug 11, 2003 at 04:37:45 -0500, Slava Bizyayev wrote:
It's not quite the truth...
You can do all that staff on Apache 1.3 with appropriate skills. See LWP
for example.
If you mean to grab the output of e.g. mod_autoindex by issueing a sperate
request using
Jean-Sebastien Guay wrote:
So, did anyone have time to check this out? This is pretty major for me,
I can't implement mod_perl at my site until I find out what is causing
this crash and fix it. And I really have no idea what could be causing
it.
I'm using CGI.pm 2.98, Template-Toolkit 2.10,
Hi!
On Mon, Aug 11, 2003 at 04:37:45 -0500, Slava Bizyayev wrote:
It's not quite the truth...
You can do all that staff on Apache 1.3 with appropriate skills. See LWP
for example.
If you mean to grab the output of e.g. mod_autoindex by issueing a sperate
request using LWP, that's definitly
Yeah, actually here is the code snippets I use.
Table def:
CREATE SEQUENCE s_league_lid minvalue 1;
CREATE TABLE t_League ( /* lid integer DEFAULT nextval('s_league_lid') PRIMARY KEY,*/ lid SERIAL PRIMARY KEY NOT NULL, name VARCHAR(20) UNIQUE NOT NULL, numdiv integer,
draft integer, last_wvr
FastMail.FM (http://www.fastmail.fm), one of the world's leading e-mail
services, is hiring an expert Perl programmer to become a Web Application
Developer. In this very attractive senior position, you can work flexible
hours, telecommute, and develop your skills as part of a small but very
Apache/2.0.44 (Unix) mod_perl/1.99_09 Perl/v5.8.0
Using a copy of the read_post routine, I'm able to retrieve my POST
parameters reliably from my PerlResponseHandler. However, it seems when I do
invoke that routine, the client no longer receives the parameters. If I just
comment out my invocation
Hi, I've seen that the key is the status returned to apache.
With Apache::REDIRECT i have the next code works ok
$apache-err_headers_out-{'Set-Cookie'} = $value1;
$apache-err_headers_out-{'Location'} = $value2;
But exactly what's the difference between err_headers_out and
headers_out? I
--
mod_perl digest
July 28, 2003 - August 10, 2003
--
Recent happenings in the mod_perl world...
Features
o
I think the real problem is that we still use which(1), when everything else
fails. That sometimes picks wrong things. I'd advocate to not use which(1) for
finding apache bits, but others may disagree with me.
In any case this advise has been out for ages, either stick with rpms and use
them
Yikes, you're right! I just found a recent thread in the apache dev list
discussing this.
Thanks, I'll approach my problem another way.
- Mike.
-Original Message-
From: Ged Haywood [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 12:47 PM
To: Michael Maciag
Cc: Modperl Mailing
Martin Wickman wrote:
I tried the latest CVS (modperl-2.0_20030810101543) and my code now
works as expected, ie rflush() splits correctly into brigades. The
t/api/rflush.t works as well btw.
Excellent!
Is it any different from your code?
Your test-code is essentially the same as my code. I
Hi Stas,
here is the google groups page that defines the
problem.
Jean-Sebastien Guay wrote:
Can't get http://whitestar02.webhop.org/Files/ApacheCrash.zip
it resolves to an internal address: 192.168.0.3
Darn, looks like my web server didn't come back up right last night.
I'll have to be there to fix it, because ssh doesn't get through either.
Here's
I have the next problem, i am in page A that form points to page B, that is
a modperl2 handler.
This handler makes a job and decides to send a cookie to the browser, and
after to redirect to the same page A who is ready to catch the cookie.
Then the problem is that if i put the two headers, i
Please report to the list the bug id so we can document this issue for
those who have the same problem with older httpds. Thanks.
OK, I've posted it.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22259
Thanks for the fix!
-bill
Is it only mp2 that it fails under?
I've tried it under mp1.28/perl5.8.0/apache1.3.27 on WinXP and it
runs
fine.
I haven't tried other mod_perl versions, since the threading issue
would
render the site unusable.
so I assume that there is no point trying it on linux, if Steve can't
ColinB wrote:
A relatively trivial point, but I notice that the pod files
cgi_to_mod_perl.pod
mod_perl.pod
mod_perl_tuning.pod
these files are a history and they don't really exist any longer, other than
in the distibution (should probably be removed, Philippe?).
which were supplied with
On Thu, 2003-08-07 at 03:36, Steve Bannerman wrote:
So with respect to your explanation about the long running perl system, am
I to understand that the old version of the saveFile() subroutine uses a
reference to a different $cgi instance that the $cgi instance in the main
body of the script?
I've just added a new page to aid finding the way to the bug reporting info.
The cool thing is that it's now easy to remember how to type that url and
provides less excuses for not supplying the required info in bug reports.
It's also now has a prominent place in the menu of perl.apache.org.
Steve Hay wrote:
Sreeji K Das wrote:
I tried to compile mod_perl-1.28 with perl maint.
20512 (http://www.iki.fi/jhi/[EMAIL PROTECTED]). I had a
build failure (different errors each time trying to
build).
Have you tried http://www.iki.fi/jhi/[EMAIL PROTECTED] ? That snapshot
worked OK for me on
Can't get http://whitestar02.webhop.org/Files/ApacheCrash.zip
it resolves to an internal address: 192.168.0.3
Darn, looks like my web server didn't come back up right last night.
I'll have to be there to fix it, because ssh doesn't get through either.
Here's another link, on my ISP's server:
Bill Marrs wrote:
Try this patch:
[...]
Feel free to submit this bug report and the fix to httpd-dev. Please
let me know if you do that, so I won't duplicate it. But I'd prefer
that you do it so you can make sure that it gets fixed in the next
release, since you need it working.
I've just
Steve Bannerman wrote:
All,
I apologize if this has already been covered...I looked at the archives
since May but couldn't see anything covering this (there were related items
but their solutions didn't solve this problem).
Here an explanation of the problem:
We want to post experiment results
I am trying to write a Hello World!-like set up involving a
PerlFixupHandler but cannot get it to work. What I want to
accomplish is:
1. Configure Dispatcher.pm as a PerlFixupHandler for
http://localhost/admin.
2. Let Dispatcher.pm set ContentHandler.pm as the content
Jie Gao wrote:
Hi All,
Any idea if Set-Cookie2: is going to be implemented in CGI.pm? Lincohn?
Jie, AFAIK, this has nothing to do with mod_perl. See:
http://stein.cshl.org/WWW/software/CGI/#bugs
__
Stas BekmanJAm_pH
I'll try to make a small test case so you can try to repro. I think it's
related to DBI (only a hunch), so I'll start there.
Ok, I've got it as simple as I can (I think - 25.1k zip). It isn't related
to DBI, but to template toolkit. So to try my test case, you'll need that
installed.
Should I
Jie Gao wrote:
Hi All,
perl-5.8.0 + mp1.99_10.
---
I am having problem trying to get /perl-status work.
It bombs out in Status.pm at the following location:
--
if (eval {require Apache::Request})
101 - 169 of 169 matches
Mail list logo