On Sunday 27 April 2008, Tracy12 wrote:
I do not flush, but I can see the cookies generated in the session folder
You could try adding the flush to see if it helps.
This happens in only one navigation path only
Then it sounds like there's something particular to that path, rather than it
On Thursday 17 April 2008, Tracy12 wrote:
We do run a cron job to clean up the cache, Anyhow even it contains old
data, they are basically expired, I can't
understand how that gonna cause this issue, To my understanding we clean up
the cache primarily because it is just filling up the hard
On Wednesday 19 September 2007 4:43:25 am antoine7 wrote:
Perl
use Apache2::RequestUtil ();
my $r = Apache2::RequestUtil-request;
[...]
/Perl
But when I restart the server I get the following error message
etch:~# /etc/init.d/apache2 restart
Forcing reload of web
On Sunday 29 July 2007, Brian Reichert wrote:
The background: I often use SDBM-tied hashes to share cheap slow
data across concurrent apps. Not much luck under Mason.
I've cobbled together a Mason handler.pl that maintains such a tied
hash as a global variable.
I've written a component
On Tuesday 29 May 2007, Clinton Gormley wrote:
Ok, then I finally understand what is happening. But is there any other
option to use every script under mod_perl even calling it from php?
The only way I can think of would be to make a web request in PHP, so
the PHP program does an HTTP
On Monday 26 March 2007, Anthony Gardner wrote:
This is MP2 ... actually RHE 1.99. We have compiled a test MP2 but
still get seg faults.
Ah, that's possibly not actually MP2. RH shipped a pre-release version of MP,
and there were a lot of changes and bug fixes after that point
On Tuesday 05 December 2006 20:33, David Scott wrote:
I *finally* managed to get this to work. The problem is in
Apache::Scoreboard, in Scoreboard.xs: apparently
ap_exists_scoreboard_image() can return the value 0 even when everything
is OK,
Can I ask how you found that out? I've been
On Wednesday 18 October 2006 02:14, Henrik Steffen wrote:
Are you running with ssl enabled?
no
Then ssl isn't the problem.
One thing I've noticed (at least on linux) is that if your system is low
on entropy random number generator is low on randomness
('cat
On Tue, 2006-10-17 at 08:54 +0200, Henrik Steffen wrote:
This works fine in the first couple of days (sometimes
weeks) after a reboot but then suddenly I am no longer able to
perform a normal apachectl restart. After entering this command
actually nothing happens. The command execution just
On Thursday 28 September 2006 04:03, Erik Norgaard wrote:
(I don't recall seeing a response to this, apologies if I'm duplicating).
I am using Apache 2.2 with mod_perl2. Reading the documentation I have
found that I should get POST data using read():
$r-read($buffer,
On Thursday 28 September 2006 04:45, GZ Dark wrote:
At first I'll say sorry that have no experience for writting the modperl
handler.
When I wrote a simple handler like:
$ cat CorpFB/Feedback.pm
The CorpFB/Feedback.pm is under the directory of '/home/apache1.3/cgi'
which exist in the
On Wednesday 06 September 2006 07:36, Beheer wrote:
On Tue, 2006-09-05 at 09:25 -0300, Adriano Ferreira wrote:
The issue is: does apache2 reports the segmentation fault with
Carp::confess? If this is not the case, that's why you don't see the
stack trace information.
Yes, it does use
On Friday 18 August 2006 08:17 am, Elizabeth Mattijsen wrote:
Source filters don't work in mod_perl. Period.
That's not entirely true. I use Data::Dumper::Simple which is a source filter
and don't have any problems with it. It might not be recommended, but it's
not an absolute will not work.
On Thursday 11 May 2006 01:40 am, Lionel MARTIN wrote:
I tried to put a LogLevel debug in my httpd.conf, so that everything gets
logged, but this didn't make a difference: my warn messages don't get
logged.
What else could I try, in order to find out why?
Are your logs going through syslog,
On Thursday 04 May 2006 06:37 am, Lionel MARTIN wrote:
I'm sorry, but I may have misled you: I said script, but I'm not talking
about CGI scripts here.
In fact, even when puttting my warn $msg; in a custom MP handler, the
message doesn't go to the error log.
So, I'd like to understand when
On Friday 31 March 2006 02:10 pm, Jonathan Vanasco wrote:
On Mar 31, 2006, at 2:00 PM, Frank Wiles wrote:
Yup, you're right I just double checked and there isn't a LIMIT/
OFFSET
in the SQL standard. For someone reason... probably because it's so
freaking useful, I assumed it was.
On Thursday 16 February 2006 05:23 pm, Jonathan Vanasco wrote:
On Feb 16, 2006, at 4:20 PM, Perrin Harkins wrote:
Probably slower. TT and Mason don't need to do any regexes because
they have compiled the template to a perl sub. They don't have to parse
the template at all after the
On Saturday 04 February 2006 02:45 am, Derek Robson wrote:
DBI-connect(DBI:mysql:database=answerguy;host=elmo.elmo.theanswerguy.co.n
z, robsonde, ur4xgod,
I don't know what the problem with your code is, but you probably should
change your password now that you've told everyone. :)
On Tuesday 31 January 2006 08:35 am, JupiterHost.Net wrote:
If it looks like Perl 4 and works like Perl 4 its prolly from Perl 4
(pronounced at least needs to be checked since it may indicate the
problem)
new Whatever;
will work but its highly recommended for various reason to do
On Sunday 18 December 2005 02:30 pm, [EMAIL PROTECTED] wrote:
When last I checked, mod_perl is not that great for a shared hosting
environment.
You share interpreters and thus it's a security and stability problem. This
was supposed to be fixed by the per_child stuff in apache2 but my
On Sunday 18 December 2005 02:31 pm, Michael Greenish wrote:
Note that I set 'stuff' immediately after the session
is created. I would expect at this point that the
database be updated.
That's incorrect. The database is only updated when the session is untied
(usually on going out of
On Wednesday 14 December 2005 10:50 am, Perrin Harkins wrote:
On Wed, 2005-12-14 at 16:43 +0100, Thomas Schindl wrote:
I've now taken a closer look into the whole thing and at the moment
it seems to possible to use mod_dbd to provide the physical connection on
C-level to DBD::mysql. I've
On Thursday 15 December 2005 04:49 am, Jeremy Kister wrote:
After my sql server goes off line, Apache::DBI consistently fails, even
after the sql server comes back online:
null DBI connect('server=10.0.0.10;database=SCD','user01',...) failed:
null: DBD::Sybase::st execute failed: OpenClient
On Thursday 15 December 2005 08:41 am, Enno wrote:
Looks like you're not pinging your database to verify the db-connection.
check Apache::DBI manual on how to implement it for Sybase, and how to
make Apache::DBI ping.
There was a problem with DBD::Sybase's ping call. It was fixed in the last
On Thursday 01 December 2005 04:15 pm, Senthil Nathan wrote:
im facing a problem with mod_perl2 on apache 2 as,
in the multiuser environment, everyone login to the page and their
respective profile gets displayed. after every click, other user's data
also gets aappended to this current view
On Thursday 01 December 2005 04:48 pm, Senthil Nathan wrote:
im using globals with the keyword use.
also it worked fine without mod_perl.
thats what worries now...
mod_perl is a persistent environment. cgi-bin loads a fresh perl interpreter
each time. You have to do some things differently
On Friday 25 November 2005 05:08 am, Francesc Guasch wrote:
I'm trying to use Apache::Monitor with mod_perl2, but
There seems to be something wrong with your apache build then. It's
claiming it does not have scoreboard support.
Is this a distribution supplied install or a self compiled
The cookbook (recipe 4.9) claims that $c-aborted is only true after you've
actually sent data to the client and flushed the buffers. For testing if the
client is still connected, it recommends doing something like:
$c = Apache-request-connection;
return if ($c-aborted);
On Tuesday 22 November 2005 10:52 am, Francesc Guasch wrote:
I'm trying to use Apache::Monitor with mod_perl2, but
it fails to load it. I changed some code because it
didn't detected it was running inside mod_perl2 ,but
I'm unable to fix it more.
Does make test give you any other errors?
On Tuesday 22 November 2005 07:30 am, Francesc Guasch wrote:
I'm trying to use Apache::Monitor with mod_perl2, but
it fails to load it. I changed some code because it
didn't detected it was running inside mod_perl2 ,but
I'm unable to fix it more.
This is the error, it's the same from make
On Friday 04 November 2005 12:14 pm, Perrin Harkins wrote:
Apache::DBI checks the handle to make sure it is still connected before
handing it back to you. If it has been disconnected, a new connection
will be made.
Not always though. Something I've run into (but had problems tracking down
On Thursday 06 October 2005 09:46 am, Octavian Rasnita wrote:
It is very strange indeed, because if I use:
eval{untie %session;}; print STDERR $@ if $@;
instead of:
untie %session;
... the program works fine, with no error on the screen and *no error in
the log file*.
sub handler
{
On Thursday 22 September 2005 11:06 am, Jeff Ambrosino wrote:
I'm exporting a database table through a mod_perl2 handler. The
problem is that for large tables, the size of the httpd process
balloons to consume alot of RAM. For example, a 299mb MySQL table
(size of .MYD file), which creates
On Wednesday 21 September 2005 08:10 pm, Aliet Santiesteban Sifontes wrote:
On Wednesday 21 September 2005 07:09 pm, Aliet Santiesteban Sifontes
wrote:
Hi list, I have a problem with a .pl script, the scripts is executed in
the first request, and it's been cached by the server, I call
I'm finally learning my way around Apache::Test and I'm having a problem.
Everything seems to be set up correctly (at least as far as I can determine).
When
running the actual code on my installed server, everything is happy. My initial
tests
fail though as follows:
make test results in:
On Monday 12 September 2005 02:27 am, firingme wrote:
I want to know is there any package can give me a DB Connection Pool
in a mod_perl application ?
I've checked Apache::DBI, but it seems that it'll initialze a
new connection when a new thread born.
Do you mean thread or process? I'm not
On Thursday 01 September 2005 04:26 pm, Philip M. Gollucci wrote:
If people want to start emailing in what has what, I'll at least maintain
the list until we figure out how best to use it and where to put it.
Mandrake/Mandriva 2005LE (the last release) has perl 5.8.6, httpd 2.0.54,
mod_perl
On Tuesday 30 August 2005 08:12 am, Mahesh kumar wrote:
Please reply to the list, not directly to me. Thanks.
Apache/2.0.54 (Unix) mod_perl/1.99_16 Perl/v5.8.7 Server at
sssupport.asad.srishti Port 80
[Tue Aug 30
On Sunday 28 August 2005 04:47 pm, ravikumar wrote:
i have installed Apache-2.0.54 and mod_perl-1.99_16 ,Apache::ASM
in my system .but whenever i opened the webpage it's showing internal
server error .
in log file contains error like this: Can't locate object method
request via
On Friday 26 August 2005 06:25 pm, Alexander Charbonnet wrote:
It apparently works after I played with the code for the final flush. I'm
not sure why, though. There was only one change (below). Anybody see a
significant difference?
In any case, I'll take it, since it works now. :-)
You can look at the tuning information on http://modperlbook.org/ for
some advice as well. And don't forget that there is a profiler for DBI
queries that comes with DBI.
Somehow I managed to miss the existence of DBI::Profile. Has anyone gotten
this working with Apache::DBI (so that it
On Tuesday 12 July 2005 06:23 am, Erik Scholtz wrote:
I have two vhosts, each running with a different project. Both projects
are using a config.pm, located directly in the cgi-bin directory.
Now it happens, that the project1 uses the config.pm of project2 and
vice versa.
I have no idea,
On Thursday 07 July 2005 09:52 am, Ray Licon wrote:
my $ServerName = Apache-server-server_hostname;
The problem I'm having is with the differences between
mod_perl_2.x and the mod_perl_1.x release (which
apparently this code was based on). Does anyone know
how to get the server_hostname
On Sunday 03 July 2005 08:14 pm, Thomas Hilbig wrote:
The actual CGI script uses the standard Lincoln Stein
library under MP2, and not yet taking advantage of MP2
code (requestor). Rewriting to pure MP2 is a task for
this summer, once I can find a good MP2 book that
skips the whole MP1-MP2
The uploaded file
Apache-Scoreboard-2.08.tar.gz
has entered CPAN as
file: $CPAN/authors/id/M/MJ/MJH/Apache-Scoreboard-2.08.tar.gz
size: 18572 bytes
md5: f66b6e222cfc4b41c9b327af2478b44b
changes since 2.07:
Apache::Scoreboard::image() now does magic so that image(new APR::Pool)
The uploaded file
Apache-VMonitor-2.05.tar.gz
has entered CPAN as
file: $CPAN/authors/id/M/MJ/MJH/Apache-VMonitor-2.05.tar.gz
size: 22413 bytes
md5: 52f5644efaa6019f6eca155c91afc605
changes since 2.04
Update to match API changes in MP2 RC5 and above
Requires newer
The uploaded file
GTop-0.16.tar.gz
has entered CPAN as
file: $CPAN/authors/id/M/MJ/MJH/GTop-0.16.tar.gz
size: 28274 bytes
md5: c3b1f36c3c9e1031f783027fe1c098d0
Changes since 0.15:
Disable the build of GTop::Server, as libgtop 2.0+ has problems
building Server/. Most likely nobody
On Wednesday 29 June 2005 08:40 am, Nielsen, Steve wrote:
The mod_perl is use is built from the current fedora core 4 rpm.
When I run apxs I get /usr/include/httpd (which is correct).
I don't see the call to apxs anywhere (I looked int ModPerl:MM related code
and in Scoreboard). Where is it
On Tuesday 28 June 2005 02:59 pm, Nielsen, Steve wrote:
Apache::VMonitor and Apache::Scoreboard do not want to compile cleanly
under mod_perl 2.0.1.
Did you try the release candidates?
http://www.liminalflux.net/perl/Apache-Scoreboard-2.08-RC1.tar.gz
On Saturday 25 June 2005 05:07 am, Danny Thomas wrote:
I want
1) statically-linked mod_perl - mason 1.29_02 README might need updating
for mod_perl2 but currently says
Using Mason with a mod_perl DSO may cause your Apache server to
crash silently at startup, or fail
On Thursday 23 June 2005 12:29 pm, Gokul P. Nair wrote:
Also $req needs to be an object of type APR::Pool and
in the documentation for APR::Pool it is suggested
that it is good to use a request pool for these short
scoped requests. So would $req be created like this ?
$req =
I finally have what I believe are working versions of Apache::Scoreboard and
Apache::VMonitor that account for the post RC5 name changes (and a couple of
other minor bugs). There's also an update for GTop to allow it to compile
with the latest versions of libgtop.
If someone is willing to test
On Wednesday 15 June 2005 02:52 pm, Eric wrote:
For 1.29 where can I find this module? Is it out of date, replaced by
something else?
Strange. It's documented all over the place, but I can't find the source
anywhere. You could use Apache::Scoreboard (but make sure you get the version
for 1.x
On Thursday 02 June 2005 10:59 am, Johannes Kilian wrote:
Running my old scripts the following error occurs in Module cgi.pm:
Can't locate Apache/Response.pm in @INC
Do you have the latest version of CGI? It's been updated to account for the
changes in MP2.
On Friday 03 June 2005 01:55 pm, Vivek Khera wrote:
I am building up a virgin FreeBSD 5.4 box to test out my application
under modperl2. However, it craps out in the make test step... Now
why does it offer to actually run the test when it *knows* it can't
run them?
Because often it can.
On Wednesday 25 May 2005 01:55 pm, Stas Bekman wrote:
IfModule mod_env.c is the right one. Now committed. Thanks Malcolm!
Anything else?
Everything works fine here.
Thanks.
On Tuesday 17 May 2005 01:59 pm, you wrote:
The line:
TypesConfig /etc/httpd/conf/mime.types
Should be enclosed in IfModule mod_mime.c /IfModule, for the case
where mod_mime is disabled. I'm not seeing where the httpd.conf file is
generated though.
This was an Apache-Test issue,
On Tuesday 24 May 2005 03:15 pm, Stas Bekman wrote:
Syntax error on line 53
of
/home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0/t/conf/extra.c
onf: Invalid command 'AddOutputFilter', perhaps mis-spelled or defined by
a module not included in the server configuration
Which
On Saturday 14 May 2005 01:52 pm, you wrote:
The same thing happens with mod_env disabled:
Syntax error on line 862
of
/home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-dev/t/conf/htt
pd.conf: Invalid command 'SetEnv', perhaps mis-spelled or defined by a
module not included in
On Tuesday 24 May 2005 08:20 am, Pronichev Alexander wrote:
I need that my startup.pl file (loaded at startup by PerlRequire directive)
will be reloaded, when I restart apache (send a SIGHUP). How can I do it?
A reload should re-read the configuration (and thus your startup file). Is
this not
On Tuesday 24 May 2005 05:00 pm, Stas Bekman wrote:
Apart from the few that don't run due to my not having the required cpan
modules install on the build machine, all tests passed.
You mean those are skipped, no? Or do they fail?
They are skipped (and thus I can't say for certain if they'd
On Tuesday 24 May 2005 05:21 pm, Stas Bekman wrote:
Please try:
Index: ModPerl-Registry/t/conf/extra.conf.in
===
--- ModPerl-Registry/t/conf/extra.conf.in (revision 178247)
+++ ModPerl-Registry/t/conf/extra.conf.in
On Friday 13 May 2005 11:12 pm, Malcolm J Harwood wrote:
make test fails with the following:
.Syntax error on line 101
of
/home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-RC6/t/conf/htt
pd.conf: Invalid command 'TypesConfig', perhaps mis-spelled or defined by a
module
On Saturday 14 May 2005 12:45 pm, Tom Williams wrote:
I learned with mod_perl-2.0.0-RC6 that previous mod_perl installations were
not compatible, requiring removal of those installations before installing
(including building) mod_perl-2.0.0-RC6.
That happened with RC5.
Will there be a
I'm attempting to build a static apache/mp RC6, and running into some build
issues.
The config line ends up looking like this:
perl Makefile.PL
MP_AP_PREFIX=/home/mjh/devel/abs/local/apache-mod_perl//src/httpd-2.0.53
MP_USE_STATIC=1 MP_AP_CONFIGURE=--with-mpm=prefork --prefix=/usr
On Friday 13 May 2005 08:06 pm, Stas Bekman wrote:
It comes from Makefile.PL:
ap_install: ap_build
cd $build-{MP_AP_PREFIX} make DESTDIR=$(DESTDIR) install
EOF
Please apply the attached patch. It should fix the problem.
It does. Thanks.
And the next one...
make test fails with the following:
.Syntax error on line 101
of
/home/mjh/devel/abs/local/apache-mod_perl/src/mod_perl-2.0.0-RC6/t/conf/httpd.conf:
Invalid command 'TypesConfig', perhaps mis-spelled or defined by a module not
included in the server configuration
The
On Thursday 12 May 2005 02:29 pm, Grant wrote:
Hello, I've been suffering from intermittent segmentation faults in my
apache2 error_log for quite a while now. It seems to be worst during
peak traffic hours. Here's what they look like:
[notice] child pid 13189 exit signal Segmentation fault
On Sunday 27 March 2005 10:51 am, Stas Bekman wrote:
5) Apache-Scoreboard-1.0 (mp1)
Apache-Scoreboard-2.0 (mp2)
http://search.cpan.org/dist/Apache-Scoreboard/
6) Apache-VMonitor-1.0 (mp1) old generation, using print,
no maintenance required
Has anyone managed to compile a static (no DSO) apache with mod_perl and
libapreq? Both mod_perl and libapreq have instructions for building them
statically individually, but the instructions seem to be mutually
incompatible.
On Wednesday 16 March 2005 11:12 pm, Joe Schaefer wrote:
How about simply correcting the parse_http docs from:
The date string can be in one of the following formats:
to:
The date string can be in one of the following formats (as per RFC2616):
That way anyone interested can
On Wednesday 16 March 2005 10:19 pm, Joe Schaefer wrote:
What should the manpage say? something like the following?
The function assumes GMT, regardless of the used timezone,
according to RFC 2616 Section 3.3 requires.
No need to mention the RFC; how about this?
The current doc
According to the docs, APR::Date::http parses the format:
Sun, 06 Nov 1994 08:49:37 GMT
as per RFC 822.
However it does not seem to parse
Sun, 06 Nov 1994 08:49:37 EST
correctly. It assumes it's GMT regardless of the timezone specified. If I'm
reading RC822 correctly, this is an
I'm trying to get some per-request stats for the entire request, not just the
response phase, and Apache::Scoreboard looked like it would do the job.
However, I'm having a few problems with it.
I have the following installed as a CleanupHandler (by which time everything
should be done), it's
On Friday 18 February 2005 10:58 am, Sam Tregar wrote:
On Fri, 18 Feb 2005, Richard Chen wrote:
Most importantly, after the server process is shutdown and
dprofpp is applied to the tmon.out file, it always complains about
garbled profile. The -F option for dprofpp does not help.
On Thursday 10 February 2005 11:54 am, Matthew Berk wrote:
Am fresh off the chapters dealing with load balancing in Practical
mod_perl, but wanted to ask if folks have had any success using LVS in
lieu of the recommended Squid
Well, I can't claim success yet, as we haven't gone into
On Tuesday 28 December 2004 02:21 pm, Octavian Rasnita wrote:
I am a new member on this list and after reading the posts from this list
in the last few days, I don't even know if this is the apropriate place for
asking questions about using mod_perl.
It is. :)
in preload.pl:
use
On Tuesday 28 December 2004 04:56 pm, Octavian Rasnita wrote:
Ok, but I have seen an example in a tutorial where the database is accessed
with the username, and the password from a startup.pl file exactly like
this:
Apache::DBI-connect_on_init(DBI:mysql:database=presa;host=localhost,
ODBC,
Is there an equivalent of Apache::RequestRec::bytes_sent for the size of the
incoming request? (I have a situation where I need to log the size of the
data transfer each way to a db). I've searched through the docs (and google)
and not found anything.
The closest I've found to getting this is
On Wednesday 1 December 2004 08:00 pm, Richard N. Fogle wrote:
Basically, we have one MySQL cluster setup for reads and the other
cluster for writes - the reads cluster alternates between master and
slave. This works fine. The problem we're having is each time the CGI
is called it seems to
On Wednesday 1 December 2004 08:26 pm, Richard N. Fogle wrote:
1. We disabled Apache::DBI - the server can generate thousands of
queries per second and this feature literally made the CPU catch fire.
Odd. Normally (in my limited experience) it has the reverse effect as you
aren't creating
On Tuesday 23 November 2004 11:56 am, Stas Bekman wrote:
with mp2 you need to update the stat info yourself each time you update
$r-filename. something like this:
$r-filename($newfile);
$r-finfo(APR::Finfo::stat($newfile, APR::FINFO_NORM, $r-pool));
I've updated the docs to mention
On Friday 5 November 2004 11:50 am, Justin Luster wrote:
Apache::Registry should mangle scripts to seperate names so that they
don't conflict. However if you are using the same package name in each
case, the last definition to be loaded will be used. Ie. if both
one/MyAdmin.pl and
On Thursday 14 October 2004 10:49 pm, victor wrote:
Hi malcolm,
This might be stating the obvious, but have you run it under a profiler? (
Devel::Profiler::Apache is what I've been using). If it's a problem with
the actual perl script, that should give you a good idea what part of the
On Thursday 14 October 2004 04:23 am, Victor Tsang wrote:
We use mod_perl heavily here, and lately I notice some apache
children for some reason chew up large amount of cpu (indeed all cpu).
Using apache's server-status i can tell it is one of the new script
we have deployed that caused
85 matches
Mail list logo