;s what I do in some handler, and then I log it along with the PID.
>
> Eh? I'm confused. What is '$request' in that example? If you
> mean it's the request object, then that doesn't do what I expect.
No, it's a simple counter. It's just a variable in some module that
counts requests.
--
Bill Moseley [EMAIL PROTECTED]
In messing with Apache 1.x, is there a way, via mod-perl, of a
> request knowing how many requests have been served by the current
> child?
$request++;
That's what I do in some handler, and then I log it along with the PID.
--
Bill Moseley [EMAIL PROTECTED]
re just better maintaining a session on the server.
--
Bill Moseley [EMAIL PROTECTED]
L::Parser, and build a
list of incorrectly spelled words, open in another window and show the
words and a list for suggestions or a text field. I have not figured out
how best to update the existing form inplace, though. I fear javascript
is in my future.
--
Bill Moseley [EMAIL PROTECTED]
a. The result is that plug and play auth schemes
> only work (unmodified) for the simplest sites.
Anyone using PubCookie?
http://www.washington.edu/pubcookie/
--
Bill Moseley [EMAIL PROTECTED]
Searching the archives I don't see much discusson of Sys::Signal. Is it
still needed to restore sig handlers?
Thanks,
--
Bill Moseley [EMAIL PROTECTED]
;)
>
> Since when did mod_perl becomes Linux only?
oops, I meant to write:
"And sent messages about using Windows to a Linux list"
--
Bill Moseley [EMAIL PROTECTED]
On Sunday 22 December 2002 03:49, Ged Haywood wrote:
> Hi there,
>
> On Sat, 21 Dec 2002, eric lin wrote:
>
> > The image "file:///home/enduser/mytest.jpg" cannot be displayed, because
> > it contains errors
>
> I think I understand your question but I am not sure of it.
>
> It seems that you
At 11:17 AM 12/20/02 +0200, Issac Goldstand wrote:
>>>>
http://www.perl.com/pub/a/2002/12/18/hohoho.html
<<<
That sounds a lot like Perrin's story. Didn't he save Christmas one year?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
#x27;cgi-script',
},
},
Directory => {
'/home/moseley/test' => {
Allow => 'from all',
Files => {
'test.cgi' => {
Options => '+ExecCGI',
SetHandler => 'cgi-script',
},
},
},
},
};
__END__
--
Bill Moseley
mailto:[EMAIL PROTECTED]
At 03:01 PM 12/18/02 -0800, Bill Moseley wrote:
>I want to test for -D in a section.
Doh!, my test was causing the problem, not the fetching of the define!
use Apache();
my $msg = Apache->define('TEST') ? "Testing" : "Not testing";
push @{ $Loca
I want to test for -D in a section.
I see in the docs that in mp2 you can use Apache::exists_config_define() to
test if a define is set.
How do I test if a define is set in 1.x?
Thanks,
--
Bill Moseley
mailto:[EMAIL PROTECTED]
st.
Cron can remove old symlinks.
If the spammers put in the work to figure out the word by check-summing the
images I can use imagemagic to modify the images -- that could be a nice
mod_perl handler.
See any glaring holes?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
this anyway). BTW --
what would you recommend for caching the md5 strings. Cache::Cache or
DBM? I suppose a Cache::Cache file cache would be the easiest.
Any other ideas on the "easy to implement" side?
--
Bill Moseley [EMAIL PROTECTED]
g your logout page.
--
Bill Moseley [EMAIL PROTECTED]
I have copied /usr/local/lib/perl5 before make install.)
--
Bill Moseley
mailto:moseley@;hank.org
b forms -- some
small amount of content, templates, and text-based config settings. I
currently log a history of changes, but it doesn't have all the features of
cvs.
Is anyone using cvs to manage updates made with web-based forms?
--
Bill Moseley
mailto:moseley@;hank.org
.
>>
>
>Think about what they are using it for. Yahoo is the most extreme
>example of a performance-driven situation.
I also wonder if it's cheaper/easier to hire and train PHP programmers that
Perl programmers.
--
Bill Moseley
mailto:moseley@;hank.org
reporting. Currently, billing is by invoice, but
we would like an on-line payment option.
Anyone know of something similar?
Thanks,
Bill Moseley
mailto:[EMAIL PROTECTED]
t's a matter of volume. Or size of string written to the log. But
I don't flock, and I keep the log file open between requests and only
reopen if stat() shows that the file was renamed. So far been lucky.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
eters
it would seem best to build href in the model that knows about all those
parameters.
Anyone have a good way of dealing with this?
Thanks,
P.S. and thanks for the discussion so far. It's been very interesting.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
examples of MVC Perl code (mostly controller code)
that does a good job of M and C separation, and good ways to propagate
errors back to the C?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
ting off the good customers, but I do want to get
an idea how it acts under load. ab to the rescue, I suppose.
Thanks much,
--
Bill Moseley
mailto:[EMAIL PROTECTED]
ook is one of the best books on my bookshelf. I
have a couple of Apache-specific books and I learned a lot more about
Apache from the Eagle than those. The cook book has been a great addition.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
ntifier names,
either. Many of the designs offered didn't use the underscore as well.
And the design that won didn't use one. It's a design -- it doesn't have
to be accurate to the name.
Besides, if it changes does it mean that the winning design received no
votes? ;)
--
Bill Moseley
mailto:[EMAIL PROTECTED]
m working with.
I'd rather cache the images locally, just in case you are working with a
slow site or if they do something silly like check referer on requests.
Bill Moseley
mailto:[EMAIL PROTECTED]
Sorry for the Way Off Topic, and sorry if I missed this on the list already:
http://www.google.com/programming-contest/
They say C++ or Java. What, no Perl?
--
Bill Moseley
mailto:[EMAIL PROTECTED]
7;s a group of programmers to do?
The new web site should help, to some degree, but I'm not sure it will
change any manager's mind on the technology they pick to run their
applications.
Of course, most people here have access to big pipes. So, there's always
bulk mail ads. I got mai
the headers
don't show up.
--
Bill Moseley
mailto:[EMAIL PROTECTED]
est-Num: 1
Client-Warning: LWP HTTP/1.1 support is experimental
--
Bill Moseley
mailto:[EMAIL PROTECTED]
/thingy.kcilink.com/modperlguide/debug/Handling_Server_Timeout_Cases_an.html
--
Bill Moseley
mailto:[EMAIL PROTECTED]
At 05:17 PM 12/30/01 -0600, Ryan Thompson wrote:
> use Template;
>
> my %vars;
>
> $var{foo} = "bar"; # About 30 scalars like this
> .
> .
>
> my $tt = new Template({INTERPOLATE => 1});
Cache your template object bet
ves like this example, if you like.
http://search.apache.org/docs-dev/ (this URL is temporary!)
Bill Moseley
mailto:[EMAIL PROTECTED]
if
there's a chance that your users might not have cookies enabled.
Bill Moseley
mailto:[EMAIL PROTECTED]
l. But, if the site is intended to bring in new
users, it might be good to be a bit more flashy.
Maybe as a community (of programmers not designers) we could hire a
professional designer to help develop our "brand". Cool web site. Some
print ads in the trades. What's a small am
Gets per sec = 1279
Mixes per sec = 524
Package C7 - Cache::SharedMemoryCache
Sets per sec = 42
Gets per sec = 29
Mixes per sec = 32
Bill Moseley
mailto:[EMAIL PROTECTED]
At 10:33 AM 12/06/01 -0800, Paul Lindner wrote:
>On Thu, Dec 06, 2001 at 10:04:26AM -0800, Bill Moseley wrote:
>> At 08:19 AM 12/06/01 -0800, Paul Lindner wrote:
>>
>> Ok, hit me over the head. Why wouldn't you want to use a caching proxy?
>
>Apache::CacheContent
At 08:19 AM 12/06/01 -0800, Paul Lindner wrote:
Ok, hit me over the head. Why wouldn't you want to use a caching proxy?
BTW -- I think where the docs are cached should be configurable. I don't
like the idea of the document root writable by the web process.
Bill Moseley
mai
e people
on this list?
Just kidding.
Bill Moseley
mailto:[EMAIL PROTECTED]
IMECPU COMMAND
17223 operator 1 02 747M 745M cpu14 27.1H 47.57% wusage
Well at least after another 8 hours of CPU it's not leaking ;)
Bill Moseley
mailto:[EMAIL PROTECTED]
ES STATE TIMECPU COMMAND
17223 operator 1 442 747M 745M cpu14 19.2H 45.24% wusage
Bill Moseley
mailto:[EMAIL PROTECTED]
me: 0.089 seconds
Or everything:
> ./swish-e -w 'not dksksks' -m 1
# SWISH format: 2.1-dev-24
# Search words: not dksksks
# Number of hits: 23840
# Search time: 0.069 seconds
# Run time: 0.074 seconds
This is pushing the limit for little old swish, but here's indexing a few
more
my CPAN.pm setups are now failing to work, too)
Bill Moseley
mailto:[EMAIL PROTECTED]
gt;
>But that *is* cool. I think it's very well designed. To me, usability is
>the main design goal. Keep up the good work!
Does it need to render well in old browsers? (e.g. netscape 4.08)
There's a lot of old browsers out there, but maybe anyone looking at
mod_perl would be a bit
e, just posted a better solution. Maybe I'll have better
luck repairing my car today.
Bill Moseley
mailto:[EMAIL PROTECTED]
e module), then
> it means that the scripts won't be able to run as standalone CGIs...
>
>Am I right?
Right, maybe that's a good thing ;) (I acutally mix mod_perl code in
applicatins that will run under both.)
Bill Moseley
mailto:[EMAIL PROTECTED]
;No such username"
* "Your password was incorrect"
Has anyone else come across the same requirement/issue, and how have you
solved it?
<<<<
Apache::AuthCookieURL does that. IIRC, it sets a cookie with the failure
reason that's returned from a
At 11:43 AM 11/23/2001 +, Jean-Michel Hiver wrote:
>PROBLEM HERE
>A head request should * NOT * return the body of the document
You should check $r->header_only in your handler.
http://thingy.kcilink.com/modperlguide/correct_headers/3_1_HEAD.html
Bill Moseley
mailto:[EMAIL PROTECTED]
t's too big for small claims court, and it's
too little to get much help from lawyers in a law suit, I'd guess. Ask
them if they want to pay partially in hardware and you might get a good
idea of their direction ;).
Good luck,
Bill Moseley
mailto:[EMAIL PROTECTED]
cookie right away). If
it comes back with a cookie then they are enabled.
Bill Moseley
mailto:[EMAIL PROTECTED]
r dealing with sessions.
Do be careful about session hijacking.
Bill Moseley
mailto:[EMAIL PROTECTED]
<
Did you make install libxml2?
> which xml2-config
/usr/local/bin/xml2-config
>>>>
Bill Moseley
mailto:[EMAIL PROTECTED]
get the key for every file. I do need a way to read every key in the
store. Order is not important.
Bill Moseley
mailto:[EMAIL PROTECTED]
issues would you use when selecting a data store method, and why?
Thanks very much,
Bill Moseley
mailto:[EMAIL PROTECTED]
at
solutions have you found to make this easy and portable from project to
project?
Bill Moseley
mailto:[EMAIL PROTECTED]
s more helpful for technical writing instead of
indexing code.
Finally, in swish, if you put something like "perl -V" in quotes to use a
phrase search it will find what you are looking for most likely, even if
the dash is not indexed.
Bill Moseley
mailto:[EMAIL PROTECTED]
phrase: "get_dir_config" and it
would search for the phrase "get dir config" which would probably find what
you want.
Maybe : and _ are ok in words, but you have to think carefully about
others. It's more flexible to split the words and use phrases in many cases.
Bill Moseley
mailto:[EMAIL PROTECTED]
kie where its setting the header, and so on.
Bill Moseley
mailto:[EMAIL PROTECTED]
s?
If they are not sending requests in parallel I wonder if it would be easier
on my resources to really slow down responses as long as I don't tie up too
many of my processes. If they ignore FORBIDDEN maybe they will see the
timeouts.
Time to look at the Throttle modules, I suppose.
Bill Moseley
mailto:[EMAIL PROTECTED]
there
any current modules that do this?
Another thing I find odd: this server has three virtual hosts. In the
second and third VH's logs I find requests for files found on the first,
default, VH. I've logged the Host: header and indeed it was there. Odd.
Bill Moseley
mailto:[EMAIL PROTECTED]
use sections farther down in httpd.conf, but I seem to need it at
the very top. If a PerlTaintCheck On comes before the then I
get that error.
Why is that?
Bill Moseley
mailto:[EMAIL PROTECTED]
ng 1.3.12
server), so I'm assuming all my icons and mime.types files from 1.3.12 will
be just fine.
Bill Moseley
mailto:[EMAIL PROTECTED]
ould run the old httpd, if needed.
Is that a reasonable thing to do, and if so, is there anything else you
would suggest?
Thanks,
Bill Moseley
mailto:[EMAIL PROTECTED]
sts 8-10
Failed 3/10 tests, 70.00% okay
In error_log:
[Fri Aug 3 16:27:16 2001] [error]
Can't locate object method "inh_tree" via package "Devel::Symdump"
at /data/_g/lii/apache/1.26/mod_perl-1.26/blib/lib/Apache/Status.pm line
222, chunk 1.
Do I need an u
nd themselves like me, paying
their own way. I'm very disappointed that I had to cancel after adding
everything up.
Bill Moseley
mailto:[EMAIL PROTECTED]
t I'm also not drinking less beer, windsurfing
more, working less, or having more, eh, sleep, either.)
Bill Moseley
mailto:[EMAIL PROTECTED]
I assume everyone saw this... ;)
http://www.oreilly.com/parrot/
Bill Moseley
mailto:[EMAIL PROTECTED]
Registry lets reasonably well written CGI scripts
to run under both mod_cgi and Apache::Registry, which is what that man page
is describing. It's not a CGI script if there's not a content-type: header
sent. And the docs are not implying that you can turn on PerlSendHeader
and then go through all your CGI scripts and remove the print
"Content-type: text/html\n\n" lines.
Bill Moseley
mailto:[EMAIL PROTECTED]
oup and go for the group rate?
Is there a BOF schedule yet?
Bill Moseley
mailto:[EMAIL PROTECTED]
;s time to expire the data?
Bill Moseley
mailto:[EMAIL PROTECTED]
n
anything working unless you know all your clients -- if even then.
If your problem is that some clients don't use cookies, then perhaps
Apache::AuthCookieURL might help.
Bill Moseley
mailto:[EMAIL PROTECTED]
;t understand you setup. If you have a database entry that says they are logged out why don't you see this when they send their request and return a "Sorry, logged out" page?
I wouldn't count on doing anything on the client side.
Bill Moseley
mailto:[EMAIL PROTECTED]
basically the same thing that happens when you have a timeout.
So, you can catch SIGTERM and then have three seconds to clean up. You
won't see a SIGPIPE unless you try to print in that three second gap.
Does it do the same thing under NT?
Bill Moseley
mailto:[EMAIL PROTECTED]
ptures referer of page where the user wants to go,
logs
>in user, sends user back to the page seamlessly).
It's probably best not to base your design on a browser feature that may or
may not work. If you use sessions, then track referrers in the session
records.
Bill Moseley
mailto:[EMAIL PROTECTED]
his?
local $SIG{PIPE} = sub { $aborted++ };
Then mod_cgi I'm still unclear on.
The cgi application does receive the SIGPIPE... well it did 1/2 hour ago
before I rebooted my machine. Now I can't seem to catch it.
But, printing again after the SIGPIPE will kill the CGI script.
Bill Moseley
mailto:[EMAIL PROTECTED]
n script.
Nothing is noted in the apache logs about broken pipes.
I'm scratching my head at this point. Any ideas what to look for?
Bill Moseley
mailto:[EMAIL PROTECTED]
ii/perl_lib/lib/site_perl/5.005/File/Cache.pm line 862
File::Cache::_GET_PARENT_DIRECTORY('/') called at
/data/_g/lii/perl_lib/lib/site_perl/5.005/File/Cache.pm line 962
But I haven't seen it happen since then.
Bill Moseley
mailto:[EMAIL PROTECTED]
unt of space used in /tmp/File::Cache -- it
seemed better than using an Apache child to do that clean up work. But on
Solaris /tmp is carved out of swap. Do you think it's risky to use /tmp
this way (since full /tmp could use up all swap)?
Thanks very much,
Bill Moseley
mailto:[EMAIL PROTECTED]
d to protect
an entire site, except a few sub directories (images, for example).
Bill Moseley
mailto:[EMAIL PROTECTED]
few weeks, yet only require a few seconds of downtime to switch live (and
back again if needed)?
Then I wonder which CPAN module I'll forget to install...
Bill Moseley
mailto:[EMAIL PROTECTED]
At 09:59 AM 01/10/01 +0100, [EMAIL PROTECTED] wrote:
>NEVERTHELESS, I get 404 when I enter
> http://myserver//hello/world
>and it is looking in the htdocs directory according to the error_log.
Can you please post the entire error_log message.
Bill Moseley
mailto:[EMAIL PROTECTED]
g.
Would it be better to avoid the locks and instead use a temp file when
creating and then do an (atomic?) rename?
Thanks very much,
Bill Moseley
mailto:[EMAIL PROTECTED]
child.
I was going to ask you why or what makes it "faster" and if that applies to
SWISH-E 2.x, but that's a bit too off topic. Maybe in separate email.
BTW: http://homepage.mac.com/pauljlucas/software/swish/man/ seems broken.
Bill Moseley
mailto:[EMAIL PROTECTED]
27;t show that much of a difference between forking and non-forking
searches under mod_perl).
Oh, and thanks for the reminder -- I forgot to upload a bug fix to CPAN.
Bill Moseley
mailto:[EMAIL PROTECTED]
then stat all those files every five minutes
from a cron job and if anything changes, touch the top level files and then
run ttree again.
I'd like this because I'm generating cobarnded pages with mod_perl, and
many of the pages are really static content.
Bill Moseley
mailto:[EMAIL PROTECTED]
l done!\n";
}
lii@mardy:~ > cat server.pl
#!/usr/local/bin/perl -w
use strict;
$|=1;
warn "In $0 pid=$$\n";
while (1) {
my @headers = ();
while ( <> ) {
chomp;
if ( $_ ) {
warn "$0: Read '$_'\n";
ng process that won't hold the socket open but I
my poor reading of it didn't turn anything up.
Anyone familiar enough with Apache (and/or mod_cgi) to explain the
difference? Does mod_cgi explicitly close the socket file descriptor(s)
before forking?
Thanks,
Bill Moseley
mailto:[EMAIL PROTECTED]
lindly followed perlipc's recommendations.
BTW -- this isn't related to the infrequently reported problem of an Apache
child that won't die even with kill -9, is it?
Eagerly awaiting,
Bill Moseley
mailto:[EMAIL PROTECTED]
=> 1; # ON
use constant DEBUG_REQUEST => 0;
use constant DEBUG_QUERY => 1; # ON
use constant DEBUG_QUERY_PARSED => 0;
warn $query if DEBUG_QUERY || DEBUG_QUERY_PARSED;
Bill Moseley
mailto:[EMAIL PROTECTED]
. I shouldn't
debug before sunrise.
Sure is nice to have you back, Stas! ;)
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
uot;Test 2 Parent reading: $_" while ;
alarm 0 if $timeout;
};
if ( $@ ) {
warn $@;
kill( 'HUP', $child );
}
}
sub loop {
$|=1;
my $x;
warn "in child loop $$\n";
sleep 1, ++$x, print "$x\n" while 1;
}
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
do that.
Hi Ken,
Why not Apache::Util::ht_time()?
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
kie that will allow them to enter the site
>under their userid, but I can't allow them to enter if they are currently
>logged in from elsewhere.
Why? What if they want two windows open at the same time? Is that
allowed? That design limitation sounds
friend in these cases.
Cheers,
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
un in trying to explain (over three
emails now) the problem to their customer support.
Bill Moseley
mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
CGI programmers to write all
their CGI applications like mod_perl handlers -- could run as CGI on other
servers, but when they want speed they are ready to use mod_perl.
Anyway, does a mod_perl emulator for CGI exist?
Bill Moseley
mailto:[EMAIL PROTECTED]
-
At 07:38 PM 11/15/00 -0600, Les Mikesell wrote:
>
>- Original Message -
>From: "Bill Moseley" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, November 15, 2000 12:30 PM
>Subject: Microperl
>
>> I don't build mod_r
ld in your login.pl script?
Something like the untested:
my $uri = $r->prev->uri;
my $query = $r->prev->args;
$uri = "$uri?$query" if $query;
print qq[];
Bill Moseley
mailto:[EMAIL PROTECTED]
Could a
microperl/miniperl be embedded in Apache and end up with a reasonably
light-weight perl enabled Apache? I understand you would not have
Dynaloader support, but it might be nice for simple rewriting.
Curiously yours,
Bill Moseley
mailto:[EMAIL PROTECTED]
nts will
do).
I should know this too, but what effect does the presence of a query string
in the URL have on this?
Bill Moseley
mailto:[EMAIL PROTECTED]
1 - 100 of 200 matches
Mail list logo