According to BeerBong:
Huh, another test
test.epl
According to BeerBong:
test.epl
--
use DBI;
$dbh = DBI-connect("DBI:Oracle:SIMain","test","test");
PHP3 and mod_perl script with DBD::Oracle - 24 Requests per second
Is this with or without
According to Eric Cholet:
What is the most straightforward way to make a RewriteRule
map an arbitrary URL directly to a handler?
Do you really need to rewrite, I mean can't you just use
a Location container ?
Yes, that will work, but putting all of the special cases into
RewriteRules
According to [EMAIL PROTECTED]:
I still have resisted the squid layer (dumb
stubbornness I think), and instead got myself another IP address on the
same interface card, bound the smallest most light weight separate
apache to it that I could make, and prefixed all image requests with
The recent message about proxy_add_forward reminded me of a simple
change I made that might help anyone who wants to track the
logs matching the source/destination of proxied requests.
I also activated mod_unique_id and in mod_proxy_add_forward, after
if (r-proxyreq) {
According to Rasmus Lerdorf:
Those introduce more complex problems.
And they are, of course, inevitable with almost any templating
system.
You know, PHP was once just a templating system.
[...]
Then I figured it would be a good idea to add stuff like
IF/LOOPS/etc so I could
According to Randal L. Schwartz:
So, I modified my throttler to look at the recent CPU usage over a
window for a given IP. If the percentage exceeds a threshold, BOOM
they get a 503 error and a correct "Retry-After:" to tell them how
long they're banned.
How about an option to redirect to
According to Scott Chapman:
I'm new to compiling my own software and attempting to get mod_perl
and apache to work together. I have Redhat 6.0.
Most Redhat versions have problems that go away if you compile
and install your own perl.
+ doing sanity check on compiler and options
** A test
According to Atipat Rojnuckarin:
Hi,
I think mod_rewrite (URI Translation) get called
before Apache::AuthenDBI/AuthzDBI, so mod_rewrite has
no way of knowing which group a user belongs to.
You'll probably need to write your own customized
handler(s) to do what you want.
Mod_rewrite
According to Oleg Bartunov:
Currently I have 20 apache servers which
handle 20 connections to database. If I want to work with
another database I have to create another 20 connections
with DB, so I will have 40 postgres backends. This is too much.
I didn't write all details but of
Has anyone tried mod_backhand (in the apache module registry) in
a front end apache proxying to multiple mod_perl'd back end
servers? It claims to load balance, keeping track of the
status and load of the back end servers, which also appear
to need the module included. Is there a better free
According to Barb and Tim:
It could really enhance your integrity if you also
presented honest evaluations of the downsides of Perl.
Perl has two downsides. One is the start-up time for
the program and mod_perl solves this for web pages.
The promotion of Perl on this site is so ubiquitous
According to Stas Bekman:
We all know that mod_perl is quite hungry for memory, but when you have
lots of SQL requests, the sql engine (mysql in my case) and httpd are
competing for memory (also I/O and CPU of course). The simplest solution
is to bump in a stronger server until it gets
According to Greg Stark:
I think if you can avoid hitting a mod_perl server for the images,
you've won more than half the battle, especially on a graphically
intensive site.
I've learned the hard way that a proxy does not completely replace the need to
put images and other other static
According to Jeffrey W. Baker:
Is anyone using mod_backhand (http://www.backhand.org/) for load
balancing? I've been trying to get it to work but it is really flaky.
For example, it doesn't seem to distribute requests for static content.
Bah.
I just started to look at it (and note that
According to BeerBong:
I need protect directory (/abonents) on server.
User database lies on Radius Server.
I have front-end (apache proxy) + back-end apache servers.
I've heard that authentication process must works on front-end server.
No, if you are using ProxyPass or RewriteRules
According to Jeffrey W. Baker:
I will address two points:
There is a very high degree of parallelism in modern PC architecture.
The I/O hardware is helpful here. The machine can do many things while
a SCSI subsystem is processing a command, or the network hardware is
writing a buffer
According to Greg Stark:
1) Netscape/IE won't intermix slow dynamic requests with fast static requests
on the same keep-alive connection
I thought they just opened several connections in parallel without regard
for the type of content.
Right, that's the problem. If the two
According to Tim Bunce:
And, just to be balanced, has anyone _not_ found any 'gotchas' and is
enjoying life with a netapp or similar NFS file serving appliance?
I haven't really had any gotchas in terms of performance. But you do
have to plan things out if you are going to be
According to Elizabeth Mattijsen:
We have been using such a setup for over 2 years now. The only real issue
we've found is not so much with mod_perl itself, but with MySQL. If you
put your databases on the NetApp, either have a seperate central database
server, or make damn sure you do not
According to Ask Bjoern Hansen:
Is there any way to make mod_perl reload modified modules in some
directories but not check at all in others? I'd like to avoid
the overhead of stat'ing the stable modules every time but still
automatically pick up changes in things under development.
According to Ryan, Aaron:
We found that we are quicking using up the max connections to the MySQL
database
and when we raise the max connection, the performance gets worse. What was
MySQL designed
to handle, should it be able to handle 2000 connections, or is that outside
the scope
of
According to Matt Sergeant:
This would be cool. However, in at least a few cases, the PHP docs leave
something to be desired. I remember looking up the Oracle connect calls for
PHP online once (for 3.0), and having people hold a debate about how a
function really worked, because the
According to Perrin Harkins:
On Fri, 11 Feb 2000, Matt Sergeant wrote:
XML and XSLT can provide this. Rather than write pages to a
specific style with toolbars in the right place, and format things how I
want them, I can write in XML, and down transform to HTML using a
stylesheet. When I
According to Joshua Chamas:
I have been thinking about some XML style extensions for
Apache::ASP, and know that you are looking at the same thing
with Embperl, and was hoping that we could sync up on the
APi, so there might be a common mindset for a developer when
using our extensions,
According to Gerald Richter:
Will you be able to emulate the IIS/ASP 'transformNode'
method that renders html from xml and xsl components?
I don't know what transform Node exactly does, but I hope we find a common
design, which will allow you to easly plug in a module that does
According to Joshua Chamas:
Will you be able to emulate the IIS/ASP 'transformNode'
method that renders html from xml and xsl components?
http://www.sci.kun.nl/sigma/Persoonlijk/egonw/xslt/
transformNode XSLT are not on my short list of TODOs for
Apache::ASP, though certainly one
According to Adam Gotheridge:
Is there anyway to get AuthDBI to connect on initialization of the web server
like you can with "DBI-connect_on_init(...)"?
AuthDBI uses DBI, so all you have to do is use Apache::DBI
and make sure the connect string is exactly the same.
Les Mikesell
[EMAIL
According to [Jonas Nordstr_m]:
But doesn't that only pass on the request and then return the HTML-files
unchanged? I also want to change the links inside the HTML-bodies on the
fly, so that the users can continue to "surf the intranet". For example, if
the HTML contains "A
According to Soulhuntre:
Well, let me turn that around, has anyone succeeded in getting mod_perl
running well on Apache on win2k?
Your problem here is going to be that mod_perl is not thread-safe
and will serialize everything when running under the threaded
model that apache uses under
According to James Hart:
No they won't - the browser will strip the URL seen from its perspective
back to the host and add the path. On the scheme Jona describes, where the
host the browser sees is 'gateway_server', that would then be retranslated
by the proxy into a request for the document
According to John Darrow:
I need to be able to run the same sets of pages in several different
environments (basically just different environment variables). The problem
is that once a process is initiated in a certain environment it can't be
changed for the life of the process. The first
According to Stas Bekman:
On Mon, 10 Apr 2000, Bill Jones wrote:
AuthDBMUserFile
Is there a difference between DBM and GDBM?
I always thought they were the same...
I found sleepcat (DB) and GDBM, but where is DBM?
sleepycat == berkeley db (a product of sleepycat.com)
gdbm
According to [EMAIL PROTECTED]:
Does anyone know of any program which has been developed like this?
Basically we'd be turning the "module of apache" portion of mod_perl
into a front end to the "application server" portion of mod_perl that
would do the actual processing.
This is basically
According to [EMAIL PROTECTED]:
This is basically what you get with the 'two-apache' mode.
To be frank... it's not. Not even close.
It is the same to the extent that you get a vast reduction in the
number of backend mod_perl processes. As I mentioned before, I
see a fairly constant
According to Gunther Birznieks:
If you want the ultimate in clean models, you may want to consider coding
in Java Servlets. It tends to be longer to write Java than Perl, but it's
much cleaner as all memory is shared and thread-pooling libraries do exist
to restrict 1-thread (or few
According to Eric Cholet:
This is for using Apache 2.0's pthread MPM, of course you can build perl
5.6 non threaded and use apache 2.0's prefork model but then it's not
as exciting :-)
Does apache 2.0 let you run a prefork model under NT?
Les Mikesell
[EMAIL PROTECTED]
According to Eric Cholet:
Does apache 2.0 let you run a prefork model under NT?
NT has it's own MPM which is threaded
prefork ... Multi Process Model with Preforking (Apache 1.3)
dexter Multi Process Model with Threading via Pthreads
Constant
According to Matt Sergeant:
In case you missed it - I just announce the Apache XML Delivery Toolkit to
both the modperl list and the Perl-XML list. With it you can develop an
XSLT Apache module in 13 lines of code (no caching, but it works).
I saw it, but perhaps misinterpreted the 'not' in
According to Perrin Harkins:
On Tue, 25 Apr 2000 [EMAIL PROTECTED] wrote:
With mod_proxy you really only need a few mod_perl processes because
no longer is the mod_perl ("heavy") apache process i/o bound. It's
now CPU bound. (or should be under heavy load)
I think for most of us this
According to [EMAIL PROTECTED]:
So, overall..., I think that you should consider how many modperl
processes you want completely seperately from how many modproxy
processes you want.
Apache takes care of these details for you. All you need to
do is configure MaxClients around the absolute
According to Matt Sergeant:
Is there any benefit of mod_proxy over a real proxy front end like "Oops"?
I've run squid as an alternative and did not see any serious
differences except that the caching was defeated about 10% of the
time even on images, apparently because the clients were hitting
According to Matt Sergeant:
OK, just to get this onto a different subject line... I can't seem to get
mod_proxy to work on the front end with name based virtual hosts on the
backend, I can only get it to work if I have name based virtual hosts on
both ends.
You should be able to use IP based
According to Jeffrey W. Baker:
I keep meaning to write this up as an Apache:: module, but it's pretty trivial
to cons up an application-specific version. The only thing this doesn't
provide is a way to deal with large data structures. But generally if the
application is big enough to
According to Tom Mornini:
There must be some size where
the data values are as easy to pass as the session key, and some
size where it becomes slower and more cumbersome. Has anyone
pinned down the size where a server-side lookup starts to win?
I can't imagine why anyone would pin a
According to G.W. Haywood:
Hi there,
On Tue, 9 May 2000, Leslie Mikesell wrote:
I'm more concerned about dealing with large numbers of simultaneous
clients (say 20,000 who all hit at 10 AM) and I've run into problems
with both dbm and mysql where at a certain point of write activity
According to Mark Imbriaco:
"Perrin" == Perrin Harkins [EMAIL PROTECTED] writes:
Perrin I think every RDBMS I've seen, includig MySQL, guarantees
Perrin atomicity at this level.
Look, Mummy, the funny man said MySQL and RDBMS in the same sentence :)
Please don't start on
According to Paul:
Moving GIF files on some of our pages seem to *keep* reloading the
whole time I stay on the page. My browser is set to only compare a
document in its cache to the network version once per session. What
gives?
I don't see anything in the configs that looks very closely
According to Kenneth Lee:
Not performance. Not preference.
The question is, will mod_fastcgi and mod_perl conflict when both are
compiled into Apache? Theoretically not I think. And what would the
consequences be? Please comment.
I can't see any reason why they should conflict, but I
According to Ken Williams:
Another option is to set up whatever handler you want, on a development
or staging server (i.e., not the live one), and grab the pages with
lynx -dump or GET or an LWP script, and write them to the proper places
in the filesystem where the live server can access
According to Matt Sergeant:
package Apache::Reload;
What I've always wanted along these lines is the ability
to load something in the parent process that would take
a list of directories where modules are always checked
and reloaded (for your local frequently changed scripts)
plus one
According to Greg Stark:
This isn't entirely on-topic but it's a solution often suggested for mod_perl
users so I suspect there are other users here being bitten by the same
problems. In fact the manner in which problems manifest are such that it's
possible that many mod_perl users who are
According to Stas Bekman:
On Mon, 21 Aug 2000, Jeff Warner wrote:
We need to have mod_perl and mod_jserv in the same httpd file. I can build
apache 1.3.9 for either mod_perl or mod_jserv using the appropriate make
commands from the install docs and they work fine.
I've
According to Steve Manes:
At 11:26 AM 9/4/00 -0300, Nelson Correa de Toledo Ferraz wrote:
I agree that one shouldn't put lots of code inside of a template, but
variables and loops are better expressed in Perl than in a "little
crippled language".
Your example makes perfect sense to me.
According to David E. Wheeler:
Perrin Harkins wrote:
My point was that Apache::DBI already gives you persistent connections,
and when people say they want actual pooled connections instead they
usually don't have a good reason for it.
Let's say that I have 20 customers, each of whom
According to martin langhoff:
this HTTP protocol (definition and actual implementation) question is
making me mad. Will (and should) a cookie be valid withing the same
host/domain/subdirectory when changing PORT numbers?
I think this depends on the browser (and its version number).
According to Gunther Birznieks:
I guess part of the question is what is meant by "balanced" with regard to
the non-apache back-end servers that was mentioned?
I'd be very happy with either a weighted round-robin or a least-connections
choice. When the numbers get to the point where it
According to Michael Blakeley:
I'm not following. Everyone agrees that we don't want to have big
mod_perl processes waiting on slow clients. The question is whether
tuning your socket buffer can provide the same benefits as a proxy server
and the conclusion so far is that it
According to Pramod Sokke:
I'm trying to set up Authentication using Apache::AuthDBI. I'm establishing db
connections at startup.
I've set $Apache::DBI::DEBUG = 2.
When I start the server, I get the following message for every child process:
Apache::AuthDBI PerlChildInitHandler
58 matches
Mail list logo