Tracy12 wrote:
[snip]
> More information about this error may be available
> in the server error log.
>
> Apache/2.2.0 (Fedora) Server at localhost Port 80
>
>
>
> What I am I missing?
The line above says to check the error logs on the server. "tail -f" is
ave on memory
and can't use the Apache::Request stuff.
I'd try posting a query to perlmonks.
--
Michael Peters
Developer
Plus Three, LP
tVar CASHost "testCasServer"
> PerlSetVar CASPort "8443"
Yep. If possible keep the configuration data inside the configuration
s.
--
Michael Peters
Developer
Plus Three, LP
multiple instances/ports.
--
Michael Peters
Developer
Plus Three, LP
ed at build time.
--
Michael Peters
Developer
Plus Three, LP
ally change all '/' into '::' and then drop the
final '.pm'.
--
Michael Peters
Developer
Plus Three, LP
uration you can then install stuff:
cpan> install Mail::Sendmail
That should get it installed for you.
--
Michael Peters
Developer
Plus Three, LP
sometimes I need some help in tracking
down warnings, so I do something like this:
use Carp;
$SIG{__WARN__} = \&Carp::cluck;
--
Michael Peters
Developer
Plus Three, LP
this.
First thing I'd check is to make sure that the cookies are being sent by the
browser. I normally use Firefox and the LiveHTTPHeaders plugin to check that
it's sending what I think it should be sending.
--
Michael Peters
Developer
Plus Three, LP
ng first and consuming the cookie
headers so that later phases don't see them. What else is configured to handle
those .jsp pages?
--
Michael Peters
Developer
Plus Three, LP
want to raise too many alarms, but this means that every MP1 server
> has a denial-of-service attack against it now.
Not quite. It only affects people running PerlRun. Not insignificant, but
definitely not everyone.
--
Michael Peters
Developer
Plus Three, LP
> taint mode in mod_perl2 to give it sufficient real world testing.
Or it could be taint mode + mod_perl2 + your perl version. But that's something
better asked on p5p.
--
Michael Peters
Developer
Plus Three, LP
Hello,
I doubt this is specifically a modperl problem but if not, perhaps someone can
point me to a better group to post this message with?
First, I am using:
modperl 2.0.x
perl 5.8.5
Linux
I have a page on a site where users can upload as many pictures as they like.
I am using the cgi class
Sean Davis wrote:
> On Thursday 12 April 2007 19:15, Bill Whillers wrote:
>> Any suggestions?
>
> Have you looked at using gnuplot or R?
There's also something RRDTool. Or you can go a different route and use
Javascript for the presentation:
http://www.solutoire.com/plotr
michael watson (IAH-C) wrote:
> If I view source in IE, the very top of the web page starts:
>
> Ensembl release 43: Gallus gallus Features on Chromosome 23
> 6042217-6042217
You can't see HTTP headers when doing a 'view source'. No browser will include
them. In or
e
http://jquery.com/
http://developer.yahoo.com/yui/
http://mootools.net/
http://dojotoolkit.org/
--
Michael Peters
Developer
Plus Three, LP
t compilers hide from me). #2 is just all around bad since
you have to learn the complexity of the thing anyway, just with some bad wrapper
interface instead of the real one.
--
Michael Peters
Developer
Plus Three, LP
d files. (And this is only to boost download time since if every site using
the YUI libraries uses the same URL, a browser should just be able to use a
cached version). But even then you can specify specific versions.
--
Michael Peters
Developer
Plus Three, LP
possible currently since everyone has a different
>> framework and different concept of 'right' place.
>
> Doing this at the mod_perl level is probably one level too low. ASP.Net
> is not the equivalent of mod_perl. It is more like any one of the
> frameworks such as
e are were no threaded mpms in Apache 1, so none in mod_perl 1 either.
--
Michael Peters
Developer
Plus Three, LP
. From
my experience though, Prototype, jQuery and Mootools feel more Perlish (see, I
brought it back to Perl!) and Dojo and YUI feel more Javaish.
I do like http://ajaxian.com/. It mentions various tools, projects and
frameworks all the time.
--
Michael Peters
Developer
Plus Three, LP
Saltbreez wrote:
> Did you build perl, or are you using a distribution supplied binary?
You don't have to compile your own perl, but you do need to make sure that you
use the same compiler for perl, mod_perl and apache.
--
Michael Peters
Developer
Plus Three, LP
Lionel MARTIN wrote:
> This would save me the need to prepare at every request, while I could
> benefit from old prepared statements.
Just use prepare_cached()
--
Michael Peters
Developer
Plus Three, LP
in topic for the conference, it will not be the
only one, and as such we will also be accepting talks on just about any
theme.
Types of talks include 20 or 40 minutes talks, 60-90 minute tutorials,
or 3 hour Hack-a-thons, BOFs or Workshops.
There are still some slots free!
Hope to see you in Vien
you
start caching your own statement handlers you'd have to re-implement all of
that.
--
Michael Peters
Developer
Plus Three, LP
e (but with a new connection), using an
> already prepared statement would fail...
Exactly right. I think this would be the much more common type of bug to occur
when you try caching statement handles on their own. They don't exist
independent of their db connections which might change or go away.
--
Michael Peters
Developer
Plus Three, LP
isplayed by web browsers.
--
Michael Peters
Developer
Plus Three, LP
-0481
-Original Message-
From: Robert Landrum [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 08, 2007 2:18 PM
To: Michael Peters
Cc: Vaughn, Terry; modperl@perl.apache.org
Subject: Re: TIF image file
Michael Peters wrote:
> Vaughn, Terry wrote:
>
>> I have some TIF files that I t
for
mod_perl version before the test for Apache::Test.
--
Michael Peters
Developer
Plus Three, LP
--- Makefile.PL 2004-12-06 10:31:08.0 -0500
+++ Makefile.PL.new 2007-05-10 11:19:46.0 -0400
@@ -6,6 +6,18 @@
use File::Path qw(mkpath);
use lib qw(Apache-Test/lib);
+BEGIN {
+
Michael Peters wrote:
> The attached patch should fix this problem in Makefile.PL by doing the test
> for
> mod_perl version before the test for Apache::Test.
Weird. This seems to have been a problem that was noticed in 2005 and Stas
recommended almost the exact same patch.
ht
Marius Feraru wrote:
> Michael Peters wrote:
>> Weird. This seems to have been a problem that was noticed in 2005 and Stas
>> recommended almost the exact same patch.
>> http://mail-archives.apache.org/mod_mbox/perl-modperl/200505.mbox/[EMAIL
>> PROTECTED]
>
>
Lionel MARTIN wrote:
>> - Don't load large amounts of data into scalars.
> Fine. Now I know why. But sometimes, you don't have the choice.
I'd like to know what situations you encounter where you are forced to load
large amounts of data into scalars. I can't thin
ng happens all the time. Think of SAX XML parsers or mod_perl
filters. It's not terribly difficult to parse something in chunks like that.
I wasn't saying that it wouldn't be easier to have everything in memory. Heck
I'd love it if I never had to read a file in line by line anymore
rchives:
The issue we're discussing is not "data persistance". Data persistance is when
the data sticks around between requests. When lexicals go out of scope the data
disappears. It's the actual system memory being reserved by Perl for future use
of that variable that sticks aro
user" directive that I set.
> My problem is, that apache executes my handler, but it does not take
> care of my return-values. Instead it always serves the request and
> grants access.
The HTTP codes are HTTP return codes, not handler return codes. Use FORBIDDEN
instead.
--
Michael Peters
Developer
Plus Three, LP
g under mod_perl by trying to use 'Apache2' instead of looking
at $ENV, but that's a different story...
--
Michael Peters
Developer
Plus Three, LP
lexically
scope the array to that sub:
{
my @items = qw| 1 2 3 |;
sub b {
foreach my $b (@items) { }
}
}
--
Michael Peters
Developer
Plus Three, LP
Jonathan Vanasco wrote:
> in our setup, we do this:
>
> port 80:nginx
> ports: 7000-9000modperl ( handlers assigned to individual ports )
Out of curiosity, why use a different port for each hander instead of just a
different url?
--
Michael Peters
Develope
Hello.
Rather than being most concerned about the learning curve, I would be more
concerned with using a flexible and powerful template engine. Because once you
start down the road of building templates, if your template engine isn't
capable enough, you have to go back and redo them and maybe
Jonathan Vanasco wrote:
> I use URI::Escape
>
> http://search.cpan.org/~gaas/URI-1.35/URI/Escape.pm
>
> its small, and comes in the std perl distro
Good for URI escaping, but that's not the same thing as HTML escaping, which is
what CGI's escape/unescape do r
for you, but I get errors
like that to my error log all the time. So it's not something that's always a
problem. In fact, I think it's always worked right for me. Don't know if this is
encouraging or not :)
--
Michael Peters
Developer
Plus Three, LP
lly have much more overhead than a database.
--
Michael Peters
Developer
Plus Three, LP
can reference things
that were declared in the same scope as it self.
http://en.wikipedia.org/wiki/Closure_%28computer_science%29
and in Perl
http://www.perl.com/pub/a/2002/05/29/closure.html
Depending on the other languages you know, you might never have encountered a
closure before since they don't exist in languages like C, C++ or Java.
--
Michael Peters
Developer
Plus Three, LP
ith just the
defaults.
But this does look like a bug on RH's part, so I'd report it to:
[EMAIL PROTECTED]
--
Michael Peters
Developer
Plus Three, LP
e proxy) then you can use a smaller lightweight proxy like squid.
--
Michael Peters
Developer
Plus Three, LP
; completely different install trees, which is sorta painful when you need
> 5 different apaches running with practically the same install, just a
> different httpd.conf to load the right DSO.
That should work. I haven't done it with PHP, but I have done it for
apache/mod_perl.
--
Michael Peters
Developer
Plus Three, LP
; if necessary) which one is used by mod_perl ?
mod_perl doesn't pick a perl binary to use. It is a Perl interpreter. And it's
the same version that you compiled it against. The only way to change it's
version is to recompile mod_perl using another perl binary.
--
Michael Peters
Developer
Plus Three, LP
?HTML::Template) but if you're
coming from PHP then Mason might be more up your alley
(http://search.cpan.org/perldoc?HTML::Mason)
--
Michael Peters
Developer
Plus Three, LP
And it's not mod_perl, it's Apache.
> PerlSetEnv NLS_LANG AMERICAN_AMERICA.WE8ISO8859P1 PerlPassEnv NLS_LANG
If you're setting NLS_LANG correctly in your environment, you can simply make
that
PerlPassEnv NLS_LANG
Or if you want to make it available to anything else that might need it
PassEnv NLS_LANG
--
Michael Peters
Developer
Plus Three, LP
lease find a more appropriate list.
--
Michael Peters
Developer
Plus Three, LP
/perl.apache.org/docs/2.0/api/Apache2/RequestRec.html#C_user_
--
Michael Peters
Developer
Plus Three, LP
side of apache and just have a simple
Perl script that does nothing but sleep after it's created the large data
structure you want. Then use something like top (or whatever the best tool on
your OS is) to see how much memory it takes us.
--
Michael Peters
Developer
Plus Three, LP
o try this but since I am not a C programmer, can you say
what the changed line in log.c should look like?
And is there a similar fix for 2.0.61? I would prefer to stay with the
2.0.x branch for the time being.
- Michael
change log lists quite a few
security fixes for the new versions.
As long as all that could be broken is logging, I think I would like to
upgrade or could the change effect other parts as well (security)?
- Michael
.xxx/perl-status
Maybe it's as simple as B::TerseSize simplying not using/requiring
Devel::Symdump?
--
Michael Peters
Developer
Plus Three, LP
eet that requirement, it seems like is a good place to
> reference the handler.
That seems like a good spot. And if you plan on using it for ever request, it's
a good reason to read the url map into memory before you begin.
--
Michael Peters
Developer
Plus Three, LP
#x27;s happening HTTP wise, use some network analyzing tool
like ethereal. But my guess is just that your web server isn't sending the info
yet cause it's buffer isn't full.
--
Michael Peters
Developer
Plus Three, LP
Was wondering..
Do any of you have any experience with mod_perl on Plesk managed servers?
On 9/21/07, Michael Preslar <[EMAIL PROTECTED]> wrote:
> Was wondering..
>
> Do any of you have any experience with mod_perl on Plesk managed servers?
>
On the box I have here.. mod_perl 1.99 (Yeah, that should be 2.x)
CentOS 4.5..And plesk is as up to date as it can b
Krang v2.20 is now available (the source release is up now and binary
builds should be up soon). Notable changes in this release:
* Lots and lots of bug fixes
* Implemented desk security as specified in docs/permissions.pod
* Added --below_category_id option and implemented
--limited_to_category
rinting out a null byte (or anything really) just
to tell the browser that you're still working...
print "\0";
>
> }
>
> in::ct();
> print("version 2.x suceeded!!!");
--
Michael Peters
Developer
Plus Three, LP
d mount (NFS?)
* Use scp or rsync to periodically sync the indexes (works well if combined with
a cronjob that periodically creates the index)
* Use the experimental swished which is a swish-e server (or multiple servers)
to handle really large sets of documents.
Btw, how many documents are we talking about?
--
Michael Peters
Developer
Plus Three, LP
7;s a single Perl interpreter (am I right about
this on Windows?). Preloading modules on prefork under an OS that doesn't do COW
memory does not have any of that shared.
--
Michael Peters
Developer
Plus Three, LP
ode, can I check at run-time under which environment I'm running,
> and condition which code is executed accordingly ?
Jim already gave you a good answer here.
--
Michael Peters
Developer
Plus Three, LP
I would
like to avoid that if possible.
Any other ideas what I could do?
Thanks
Michael
t's
it!" but damn...
Thanks anyway
Michael
On 11.10.2007 12:07 Michael Lackhoff wrote:
> But when I try to start Apache with this setting it just dies during
> startup without any error message.
> Perhaps this doesn't work on Windows?
> My config: Apache 2.0.59, Perl 5.8.8 compiled with VC6 everything
> running under
Skipping the test suite execution, while returning success status
Any ideas why it's not running any tests when it should be?
--
Michael Peters
Developer
Plus Three, LP
e
structures (are they just cache? then memcached. Are they important? Then some
sort of shared memory, BDB, SQLite or MySQL might be more appropriate.
--
Michael Peters
Developer
Plus Three, LP
problem with thread-safety is that you probably won't notice it on low traffic
(like development) and it's really hard to pinpoint when it does go wrong.
More and more systems and languages are going for a shared-nothing approach.
Especially now that OSes like Linux make having multiple processes much lighter
than they used to be.
--
Michael Peters
Developer
Plus Three, LP
When I attempt to start apache I get the error Invalid command
PerlModule. Obviously I don't have httpd.conf configured correctly, but
in reading the instructions I don't understand what directory I am
supposed to use for the Alias /perl/ directory.
Make test and make install ran without
Sorry, forgot to mention. The environment is CentOS 5 Apache 1.30,
mod_perl 1.3 I am using older versions due to recommendations for
installing request tracker.
From: Michael Moon [mailto:[EMAIL PROTECTED]
Sent: Saturday, October 20, 2007 9:58 AM
To
of that JS into a single file,
> minified, and with a long expiry date. And then include the few lines of
> custom JS in a separate request, or even inline in the page itself.
You obviously haven't built a JSON API yet :) Each request will be JS and will
be different.
--
Michael Peters
Developer
Plus Three, LP
I have installed mod_perl 1.3 and Apache 1.39 on a CentOS 5 system in
order get Request Tracker running. When I attempt to start apache I get
the following error:
Syntax error on line 969 of /usr/local/apache/conf/httpd.conf: Can't
locate Apache/DBI.pm in @INC
(@INC contains:
/usr/lib/pe
Michael Moon wrote:
> I have installed mod_perl 1.3 and Apache 1.39 on a CentOS 5 system in
> order get Request Tracker running. When I attempt to start apache I get
> the following error:
>
> Syntax error on line 969 of /usr/local/apache/conf/httpd.conf: Can't
> locat
,
banana : 'yellow'
}
And the URL will look like
http://www.example.com?fruit=%7Bgrape%3A'purple'%2Capple%3A'red'%2Cbanana%3A'yellow'%7D
And then you can use JSON, or JSON::XS, JSON::Syck or whatever JSON module you
want from CPAN to deserialize it into a Perl structure on your server side.
--
Michael Peters
Developer
Plus Three, LP
try and stash a DB
handle somewhere you'll end up having to re-implement what Apache::DBI does for
you automatically.
--
Michael Peters
Developer
Plus Three, LP
#x27;s quite likely that you are loading that instead of your test
package.
> use lib '/docroot/cgi-perl/test';
This adds the path to @INC at the end for searching. So your Test.pm will be
found after the core Perl one.
--
Michael Peters
Developer
Plus Three, LP
>Options ExecCGI
>
--
Michael Peters
Developer
Plus Three, LP
Dileep Eduri wrote:
> No change. still getting headers in browser.
> this one is pretty annoying.
Make that change to your config, take out the send_http_headers and the
CGI->print().
--
Michael Peters
Developer
Plus Three, LP
just
let mod_auth_tkt handle it on the non-mod_perl apache. It's extremely light
weight and really fast.
--
Michael Peters
Developer
Plus Three, LP
Carl Johnstone wrote:
> Michael Peters wrote:
>> mod_auth_tkt. You can set the authorization ticket with mod_perl and
>> then just
>> let mod_auth_tkt handle it on the non-mod_perl apache. It's extremely
>> light
>> weight and really fast.
>>
> Got
modules into the Apache
process's memory before it forks. Anything loaded before the fork will be shared
(as long as it doesn't change) with Copy-On-Write.
--
Michael Peters
Developer
Plus Three, LP
n in your application you can just access the data as
@My::Constructs::data and it will be shared by all your child processes
(assuming you don't modify it during a request).
--
Michael Peters
Developer
Plus Three, LP
. If I use A which uses B which uses C, then they should all be in
%INC. There's no trickery involved or anything special about mod_perl. If Perl
knows about the module and has loaded it, it's in memory.
--
Michael Peters
Developer
Plus Three, LP
dow of validity can be controlled
> there is no need to store / session stuff on the server
>
> Any feedback would be greatly appreciated
Sounds an awful lot like mod_auth_tkt to me, or am I missing something?
--
Michael Peters
Developer
Plus Three, LP
s that user's account. The second compromises
every users account.
--
Michael Peters
Developer
Plus Three, LP
re doesn't seem to be a way back from the forked children to
the parent because the children get their own copy of @result as
soon as they write to it (correct?)
If my analysis is correct I would like to know:
1. How to properly wait for the children and
2. How to get the results back to the main process
Is there some common storage in apache/mod_perl where the children
can write and the parent can read the results when the children are
finished? Can I use pnotes for this?
Thanks,
-Michael
first.
3. My original code returns objects Storable has problems to digest. I
will have to partly rewrite my code to only return data that is
easyly serializable and (re)build the objects later.
Thanks for this fine module!
- Michael
On 15.11.2007 13:06 Andy Armstrong wrote:
> On 15 Nov 2007, at 08:35, Michael Lackhoff wrote:
>> Thanks, it really works (more tests to come but it looks good so far)!
>> I had only some easy to fix problems:
>> 1. in line 434 of Iterator.pm I had to replace 'exit
Michael Lackhoff wrote:
> use utf8;
> sub streamtest {
> my $self = shift;
> $self->header_type('none'); # for streaming
> # Write the content type to the client...
> my $r = $self->param('r');
> $r->content_ty
On 16.11.2007 17:39 E R wrote:
> On Nov 16, 2007 10:34 AM, Michael Lackhoff <[EMAIL PROTECTED]> wrote:
>> On 16.11.2007 17:08 Michael Peters wrote:
>
>> > binmode(STDOUT, ':utf8');
>>
>> that did the trick, many thanks!
>>
>> -
ode of a CGI::Application but it shouldn't
make a difference because I don't use the CGI::Application magic
(sending headers and output of the result) in this runmode.
Any ideas what may be going wrong here and why the output is converted
back to latin1?
-Michael
On 16.11.2007 17:08 Michael Peters wrote:
> Is this a mod_perl problem? You didn't mention if it occurred in
plain CGI or not.
It would be difficult to port the application to plain CGI but you are
right, I could have built an independent test script. But because I
could swear I did
he string (it uses the
memory that is in the perl hash); at line 17, the hash entry is deleted
(memory free'd), and at line 19, the value is used.
Changing the ap_table_setn() to ap_table_set() fixes this particular
problem.
Hope this is useful,
Michael
y adding
PerlSwitches -T
to your httpd.conf
--
Michael Peters
Developer
Plus Three, LP
ing CGI::Application::Dispatch
(warning, the latter is my module). Or you can do the same thing with Catalyst
or REST::Application.
--
Michael Peters
Developer
Plus Three, LP
past by dumping %INC to a file at startup and
then at the end of a request (using a cleanup handler) and then comparing the 2.
And I get the benefit of the full path to the file. Is there something else that
dtrace provides that my approach doesn't?
--
Michael Peters
Developer
Plus Three, LP
runs. I don't really see any way to prevent this from happening from
what the docs say. If anyone has any ideas on how to prevent %ENV from
getting wiped before my cleanup handler fires, or has any suggestions
about how to do a "long running process" under mod_perl 2 while
preserving %ENV from the request, I'd love to hear them ;).
Thanks
Michael Schout
reset the environment before the cleanup function
is called. I realize I shouldn't rely on %ENV under MP2 for thread
safety reasons, but this app is never going to run on anything other
than a prefork MPM and I can live with that :).
Regards,
Michael Schout
201 - 300 of 668 matches
Mail list logo