customers were on the site.
- Perrin
databases
and synchronization, but it's just not worth it.
- Perrin
.
- Perrin
Mike Martinet wrote:
Can anyone tell me if $Response-Debug from Apache::ASP is implemented
in ActiveState Perl under IIS?
Since your questions is about Microsoft ASP, you might want to ask it on
a Microsoft ASP list. You already know that Apache::ASP supports it.
- Perrin
about this
on the main mod_perl page.
- Perrin
it. Doing a forward is
essentially a GOTO statement for JSP. When I write mod_perl apps, I
never feel the need for that sort of thing, with so many better ways to
accomplish things (OO, method calls, dispatch tables, template includes).
- Perrin
code on separate pages
from variable storage.
- Perrin
through for the problem. Take stuff out until it
stops segfaulting. If you want some help figuring out why that part
segfaults when you find it, post it here.
- Perrin
.
- Perrin
.
- Perrin
Bill Marrs wrote:
When I install the recent Redhat 7.2 updates for glibc:
glibc-2.2.4-19.3.i386.rpm
glibc-common-2.2.4-19.3.i386.rpm
glibc-devel-2.2.4-19.3.i386.rpm
It breaks my Apache GTop-based Perl modules, in a way that I don't
understand.
[...]
Anyone have a clue about what I'd
Apache::TicketAccess, but it looks fine. Anyway, you
aren't having problems with Apache::TicketAccess, you're having problems
with MD5. Any auth scheme is likely to want a working MD5.
- Perrin
benchmarks posted here a while back which might interest you. The
thread starts here:
http://marc.theaimsgroup.com/?l=apache-modperlm=10081212375w=2
- Perrin
.
- Perrin
of the perl books we referered
to.
Yes, it is new in 5.6. The most recent version of the camel book
describes it, and so do the man pages.
- Perrin
::Sync takes care of all
of that for you.
- Perrin
been
discussed on this list before.
- Perrin
Could you describe the actual nature of the error? How can you tell
that the response you're getting is from the wrong virtual host and what
is different about the virtual hosts' setup that causes the difference
in responses?
- Perrin
Geoffrey Young wrote:
I don't have a copy of the Eagle book in front of me
The API chapter is online and it talks about print() and timeouts:
http://modperl.com:9000/book/chapters/ch9.html
- Perrin
sure you aren't just having namespace problems? If this code is
in a module which has the same name for both versions, you can only have
one version loaded in each perl interpreter.
- Perrin
changing.
- Perrin
. You should try to
figure out what sort of request triggers it. Maybe you can add some
logging to your application or use the MOD_PERL_TRACE feature to figure
it out.
- Perrin
and then override certain settings with a local file on each
machine.
- Perrin
.html
- Perrin
other modules. Otherwise, the debugging
symbols don't get put into your code.
- Perrin
. Take it off-line now, before you find out it sent
millions of porn spam messages. You can study it later to try and find
the problem.
- Perrin
Please, please, please KILL THIS THREAD!
College alumn, I remember it well.)
- Perrin
, but are you running it
under Apache::Registry? Maybe the nested subroutines that creates are
causing problems.
- Perrin
(giving better performance for the people who are on at that
time), but I never thought of a good way to do it.
- Perrin
would be using Embperl or
custom conf directives.
- Perrin
unloaded the perl
stuff will too.
In your case, PerlFreshRestart might help with what you're trying to do
since it will clear %INC, but you may still have the problem with
needing to call Init.
- Perrin
, which you
will also find in the archives.
- Perrin
for the manual also.
There is plenty of documentation on building and working with mod_perl
included in the standard mod_perl package. The guide is in addition to
that documentation.
- Perrin
systems to have slow connection times.
There are databases that allow you to change the current user without
reconnecting. In fact someone posted a module to do this a while back,
but I can't remember which database it was for. Seems like it was
Sybase or Informix.
- Perrin
Ernest Lergon wrote:
just throwing a glance I found:
http://thingy.kcilink.com/modperlguide/modules/Apache_PerlVINC_Allows_Module.html
Not a good idea for production use. It will slow things down. Handy
for development with multiple projects using separate virtual hosts though.
- Perrin
it your best bet is to let the mod_perl build script do the
LoadModule/AddModule stuff for you, which it will do if you tell it to
with the USE_DSO=1 flag.
- Perrin
Sorry you're having so much trouble with the install. It goes pretty
smoothly for most people, but you are complicating things a bit by
putting PHP and SSL in the mix on your first try.
Perrin, I have no idea if DSO is still involved
Apache will not build DSO unless you tell it to.
Your
compile.
And then what happened? Did you start with a clean conf file? There
should be no LoadModule/AddModule stuff in it for a static server.
- Perrin
it too, for anything that might vary by virtual host.
- Perrin
, but the where's and whens of mod_perl still leave
me a bit unclear.
It's mostly a question of understanding the lifecycle of the Apache
server. You'll get it.
- Perrin
of global application state, use MLDBM::Sync or Cache::Cache. For
user sessions, look at Apache::Session.
- Perrin
. But if you're just
trying to prevent runaway servers, I'd suggest Apache::Resource.
- Perrin
do the slow work of dribbling the
bytes out to clients.
- Perrin
Maybe i have been searching for the wrong keywords or been looking in
the wrong places
You have. Try this:
http://search.cpan.org/search?mode=distquery=astro
- Perrin
it will probably not
work with MySQL.
Of course MySQL connects really quickly, so you can probably get
perfectly good performance without using Apache::DBI at all.
- Perrin
Mike808 wrote:
Don't know if you can run a JServ+mod_perl or JPerl hybrid, though.
You can, but it would be the biggest memory hog every created, since it
would be running a JVM in addition to the Perl interpreters.
- Perrin
to tie and untie on each request. There's some discussion of
this in the Guide. As an alternative, you could look at using
BerkeleyDB, or MLDBM::Sync (which does the tie/untie for you).
- Perrin
and will not
pick up changed data unless you untie and re-tie. I remember a good
discussion about this on the list a year or two back.
- Perrin
suggest you look at SpeedyCGI
(http://daemoninc.com/speedycgi/), which offers similar speedups for CGI
scripts but does not require you to recompile Apache. It doesn't have
the same feature set as mod_perl, but all you wanted to do was speed up
your existing CGI scripts anyway.
- Perrin
Rasoul Hajikhani wrote:
Has anyone purchased the mod_perl cook book from this list? If so, what
do you think of it? Is it a good buy?
Yes. Go get it.
- Perrin
summarized the best ones at http://perl.apache.org/features/tmpl-cmp.html.
- Perrin
to port some code before it will run.
- Perrin
for this ?
I always stop (with SIGTERM) and start my servers rather than using
restart (SIGUSR1) as I find that there are fewer surprises. I think
that Perrin will agree. There are very few systems that can't cope
with a few seconds of downtime.
It's certainly a lot safer, and it won't trash
Ged Haywood wrote:
I'd suggest setting MaxRequestsPerChild to a low value (I generally
use something in the range of 50-100 but Perrin will tell you that's
*very* low... :) to avoid leak problems.
A setting of 0 is fine, as long as you are using Apache::SizeLimit or
Apache::GTopLimit
.
If you post an example of the troublesome templates on the TT list,
someone will probably be able to help you.
- Perrin
Please kill this thread. Some people are not good at dealing with
mailing lists. At least this guy was polite.
- Perrin
a lot
in mod_perl to get Restart fully working.
You can send your patches to the dev list. However, most effort is
focused on getting mod_perl 2 out right now.
- Perrin
) ?
No, only when you call exit or child_terminate().
- Perrin
?
even if that would work, it would kill performance due to required mutex
locking. and that locking would need to happen in the perl core, unlike
simple scalars, arrays and hashes.
Does it look you'll be able to get the solar variables idea to work for
those data types?
- Perrin
the same user), and if the user authenticates, you put
his user ID into the session data.
You would have to do the auth part yourself, as well as the actual
cookie handling, or else hack AuthCookie to cooperate with Apache::Session.
- Perrin
to be able to update it
without restarting apache.
- Perrin
.
The SQLite FAQ seems to suggest that SQLite isn't very good at parallel
read/write situations: http://www.hwaci.com/sw/sqlite/faq.html#q6
Have you seen any problems so far?
- Perrin
#How_can_I_tell_whether_mod_perl_
- Perrin
need to use Apache 2 and mod_perl 2? Why not use the
proven 1.x series? It's still pretty early to be using the new stuff.
- Perrin
to call
Apache::DB-init or else the debugging symbols would not get put in for
modules that I used in my startup.pl, and they would not get profiled.
- Perrin
getting it to work.
Note that this is not shared acorss all the machine in the cluster
unless you used a shared filesystem like NFS.
- Perrin
, others use semaphores, and still others
use tricks like atomic file renames. The ones I mentioned in this thead
(MLDBM::Sync and Cache::Cache) are both written to provide safe
multi-process access.
- Perrin
Nigel Hamilton wrote:
I'm looking for a two-way cipher to obfuscate URL parameters
safely and succinctly (not too many extra characters).
Try Crypt::CBC.
- Perrin
.. And well, it just kinda
stuck.
I used to do it because if I didn't DProf would not know anything about
modules I pull in from startup.pl (since the debugger was not
initialized until after they were loaded). This may not be necessary
anymore.
- Perrin
standard login (a security hole, but it's just my personal machine and
not visible on the Internet), and keep a root shell open for restarting
the server. That works fine unless you have mutiple users developing on
the same box.
- Perrin
will have real constants, but I'm perfectly happy with
package variables in the meantime.
- Perrin
?
- Perrin
is
difficult to replace, so everyone will just have to keep an eye out for
this sort of problem.
- Perrin
.
- Perrin
savings from sharing the opcode tree, but each Expect it to be
better, but you don't get something (unlimited parallelism) for nothing
(limited RAM).
- Perrin
separating presentation out into templates helping
with code reusability is a good one, so let's just leave it at that.
- Perrin
Lihn, Steve wrote:
[Thu Apr 25 15:32:15 2002] [error] Bareword Apache::OK not allowed while
strict subs in use at C:\Apache2/blib/lib/Apache2/Apache/Echo.pm line 25.
Compilation failed in require at (eval 2) line 3.
What do I miss?
Try Apache::OK() instead. Damn these faux constants!
Oops, that's right, it's in the Apache::Constants package. Changing
your code to say Apache::Constants::OK should do it. No need to import
all of that stuff unless you want to.
Jon Robison wrote:
maybe a use Apache::Constants qw/ :common /;
--Jon Robison
Lihn, Steve wrote:
Hi,
with 4 entries each. There is some discussion of this
in the Advanced Perl Programming book, and probably some CPAN modules
that can help.
- Perrin
of shared memory, as long as it stays shared. If that
doesn't work for you, your only choice will be to trade some speed for
reduced memory useage, by using a disk-based structure.
At any rate, mod_perl doesn't seem to be at fault here. It's just a
general perl issue.
- Perrin
exist on Win32. It's called Scheduled Tasks. I use it all
the time to kick off perl scripts.
- Perrin
?
Yes, mod_unique_id will do that, as will Sys::UniqueID and Data::UUID on
CPAN. Of course that random function is probably very lightweight, but
it's not actually unique.
- Perrin
OCNS Consulting wrote:
Check your Programming in PERL book. Specifically, the srand function.
'random' ne 'unique'
A random function could return the same number 10 times in a row. It's
very unlikely, but it could happen. That's the definition of random.
- Perrin
you use
mod_proxy in your web server and a backend system with mod_perl on it.
- Perrin
. That might be more correct, but trapping 404 is the best
possible performance, since there is no additional code in the response
chain if the static file is there.
- Perrin
this is to use a MAC
like MD5 or SHA1, as described in the Eagle book and O'Reilly's CGI
book. This makes it very difficult for an attacker to generate a valid
ID, even if the sequence of IDs is predictable.
- Perrin
/ch08.html
- Perrin
modules on CPAN.
- Perrin
that the file locks would probably make the system hang if the
session wasn't getting cleaned up.
I don't know what else could be causing your problem, but I would still
suggest trying Apache::Session::File as a potential fix.
- Perrin
, it seems
like perl script is waiting indeffinetly for input.
Sorry, this is not a mod_perl problem. You should try the general
Apache user mailing lists, or see if there's a list or newsgroup for
mod_rewrite.
- Perrin
this using the
instructions in the guide. One quick way is to check the value of
$ENV{'MOD_PERL'}.
Also, which platform are you on and what are your settings for
MaxClients and MaxRequestsPerChild form httpd.conf?
- Perrin
question on http://perlmonks.org/.
- Perrin
::GTopLimit.
There's a lot of information about these settings in the guide at
http://perl.apache.org/guide/.
- Perrin
will
have his/her own unique file/table within this database which requires a
unique username/password to access.
So that security is handled by your program, not by the database? No
problem for Apache::DBI logins then.
- Perrin
Gregory Matthews wrote:
Yes, my prog checks for valid username/password requests and issues the
proper response. So it sounds like Apache::DBI is a good solution then
since all users will be working under the same handle?
Yes, that's correct.
. If
you slurp a large file into a global, your process will grow, but the
same is true for a lexical.
- Perrin
will be avoided?
Using strict is an absolute must for many reasons. It won't prevent you
from using up tons of memory though. You have to become tuned in to the
things that use up memory so that you can avoid them. Start with the
Guide.
- Perrin
or Registry and
add your handler code to it.
- Perrin
this in the past. The
ideal situation is to have a cluster that you can do a rolling restart
on without making the service totally unavailable.
- Perrin
701 - 800 of 1298 matches
Mail list logo