On Thu, 5 Mar 2009 22:57:26 -0500
"Jonathan Mangin" wrote:
> Can someone tell me where to go to unsubscribe?
> Thanks.
>
Send an E-mail to modperl-unsubscr...@perl.apache.org
---
Frank Wiles, Revolution Systems, LLC.
; forwarding things on.
>
> Is this not possible?
It's definitely possible, I use nginx on both 80 and 443 all the time.
---
Frank Wiles, Revolution Systems, LLC.
Personal : fr...@wiles.org http://www.wiles.org
Work : fr...@revsys.com http://www.revsys.com
roxying both 80 and 443.
---
Frank Wiles, Revolution Systems, LLC.
Personal : fr...@wiles.org http://www.wiles.org
Work : fr...@revsys.com http://www.revsys.com
due to the traffic patterns/memory usage of the
applications. Since one app is a HUGE memory hog and very light on
traffic it is setup with just two Apache child processes and the other
apps are setup with more children.
Hope this helps.
---
F
h Perl the other with Python. I've not seen any
performance benchmarks comparing them, but I would imagine they are
very similar in terms of performance.
---
Frank Wiles, Revolution Systems, LLC.
Personal : fr...@wile
but that's subjective as I
don't follow them all very closely.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : fr...@wiles.org http://www.wiles.org
Work : fr...@revsys.com http://www.revsys.com
er weight web server like tux, nginx, or
lighttpd for serving up static media like that.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
e/delete on the file system.
But since you're using PostgreSQL ( my favorite database and a large
part of my consulting practice ) you could even go so far as to write a
few pl/perl stored procedures to handle keeping the file system in sync
with the database.
---
first 125000/s 7073%--
So even for relatively small lists it can be a huge performance
win.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
u access to
the full Perl debugger.
Hope this helps!
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
large will be reaped more quickly.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
igured as:
SetHandler modperl
PerlResponseHandler YourHandlerNameHere
You could also do this as an AuthHandler as was previously
mentioned, but for something this simple I don't see much
point in breaking it up unless you're going to use these
secure keys
nks
Hi William,
You should be able to hit Ctrl+C which will cause the Apache child
to exit and then you can restart it without debugging and not in
single process mode.
Hope that helps.
-------
Frank Wiles, Revolution System
l,
ngix, or even just mod_proxy out in front with a large buffer
to help reduce the number of Apache processes you need for
serving up these files.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wi
ble to move on until it has sent two packets to the
proxy and the client has received one of them.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
ed to service all
> those requests. [thanks Perrin for suggesting this config!!]
That's actually a pretty common ratio of front to backend servers.
I *highly* recommend a reverse proxy for all but the smallest
environments.
-------
Fra
t of time needed to create simple CRUD style apps.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
ably also want to consider adding:
use Mymodule;
to your startup.pl so that your own code is shared among your
Apache children.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
ll it would do in a larger scale environment.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
ok with having
to restart Apache to see the changes.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
so happens to be the fastest.
The other method is to use CGI.pm as you would in a normal
CGI.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
When the daemon receives the message or spots the file on disk
it could handle the restart for you. Sure there is a bit of
a delay compared to issuing your own sigkill, but you don't have
as much exposure.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
never do graceful restarts, so I don't
ever see it myself.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
u're calling:
Apache2::Module::get_config( ref($self), .other stuff... )
This isn't going to get you to pull in the right configuration
module you built. I should be:
Apache2::Module::get_config( 'Stuff', other stuff.. )
At least, if I&
e failing.
http://perl.apache.org/maillist/modperl.html#Searchable_Archives
has several searchable archilves listed.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
n" mod_perl to your httpd.
My suggestion would be to ignore the installed Apache, and
build a new one from scratch following the installation
instructions on the mod_perl site and use that.
---
Frank Wiles, Revolution Systems,
Another great tool from the makers of memcached, Perlbal,
LiveJournal.com, etc.
-------
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
stuff. you could code a custom mailserver in an afternoon .
Yeah I've seen some neat twisted stuff, POE might be a reasonable
alternative in the Perl space.
---
Frank Wiles, Revolution Systems, LLC.
Personal :
mp code shove the message into a db table and have a cron
pick them up and send them off in the background.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
errors,
etc. Be it in a queue in some DB or just a simple daemon that
handles it.
Hope this helps.
---
Frank Wiles, Revolution Systems, LLC.
Personal : [EMAIL PROTECTED] http://www.wiles.org
Work : [EMAIL PROTECTED] http://www.revsys.com
wrapper around Apache, and you need full
mod_perl support for performance, features, etc. then it
shouldn't be too big of a problem to compile against the
existing Apache ( assuming it supports DSO ).
-------
Frank Wiles, Revolution S
On Tue, 12 Jun 2007 16:29:33 -0400
"Perrin Harkins" <[EMAIL PROTECTED]> wrote:
> On 6/12/07, Frank Wiles <[EMAIL PROTECTED]> wrote:
> >This might not be related, but Catalyst doesn't support running
> > two "instances" of the same applic
ething like run two separate mod_perl instances.
This might not be related, but Catalyst doesn't support running two
"instances" of the same application at the same time. Unless you're
using the latest source repository checkout, it'll be rolled into the
next release I hear.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
//www.danga.com/words/2007_04_linuxfest_nw/linuxfest.pdf
>
> - Perrin
I second that recommendation. Perlbal rocks, I use it on nearly
every project I do these days.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
all issues sound like it
might be a perl or gcc difference between what you used to build
mod_perl and libapreq2.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
o still exists afterwards) Any ideas?
make clean doesn't uninstall an install program. It removes object
files from the build area and reverts the build to a "clean" state as
in the way it was when you unpacked it.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
orgotten, more likely
you aren't using Apache2::RequestUtil in your code. Preferably
preloading it.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
On Mon, 30 Apr 2007 14:10:57 -0400
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> On Apr 30, 2007, at 1:39 PM, Frank Wiles wrote:
>
> >> Is there a way to get additional shell variables exported into ENV
> >> on startup ?
> >
> >Do you m
On Sat, 28 Apr 2007 01:18:15 -0400
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> Is there a way to get additional shell variables exported into ENV
> on startup ?
Do you mean the PerlSetEnv and PerlPassEnv directives?
-----
Frank Wiles <[
ve fallen in love with Perlbal and it can serve up
static files from disk so that would be probably what I would do
in this situation.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
rally accepted wisdom:
http://develooper.com/talks/Real-World-Scalability-Web-Builder-2006.pdf
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
Grr, forgot to Cc the list. :)
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
Begin forwarded message:
Date: Thu, 29 Mar 2007 15:18:51 -0500
From: Frank Wiles <[EMAIL PROTECTED]>
To: Stephane Chaz
ing it properly or whether it is indeed a bug
> or whether that version of Apache is not supported?
Hi Stephane,
This isn't a bug, but a normal aspect of mod_perl. You can however
re-tie them. I think this page gives you all the info you need:
http://perl.apache.org/docs/1
th mod_perl2,
> using MPM_WORKER?
Other than for some testing of modules I haven't found a need to use
either the threaded or worker MPMs.
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
er, you SHOULD load your modules and setup your configuration
> before forking, because that way each child doesn't have to do it, and
> all that data is shared, so you save a lot on memory.
+1, I think that's a great description of the major caveats to coding
in mod_perl.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
d coding practices it really shouldn't be an issue.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
ttp://perl.apache.org/download/docs.html
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
ntries for those three, let me know
if anyone can think of something else we're missing on that page.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
s" those searches
are referring to is most likely the change in the mod_perl API that
does allow you to override the values you get from Apache2::Request.
In MP1 you could change those values, but in MP2 they are
( properly IMHO ) read-only.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
On Wed, 14 Feb 2007 16:30:34 -0500
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> On Feb 14, 2007, at 4:12 PM, Frank Wiles wrote:
>
> >apachectl restart just does a stop/start for you IIRC.
>
> no, it sends the restart flag to the pid
Yup you're righ
wasn't there some memory leak issue with graceful restarts in
mp1?
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
can be used
> to test if Apache2::Request works or not when the script is called
> from URL?
Not really sure what you're asking here. Do you mean like the tests
you probably ran when doing 'make test'?
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
tion to it! :)
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
is?
Are you sure your CGI is running under mod_perl? I.e. is $ENV
{MOD_PERL} set?
This is usually the cause of that problem.
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
is essentially what Apache::Session does for you.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
t of code to handle URI location to handler
mappings that you would normally get from httpd.conf ).
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
the table was updated. Not very
efficient IMHO.
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
sses and access their methods by OO way.
Or non-OO, the OO-ness of the package doesn't have anything
really to do with the memory consumption.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
my problem, since Flash required the access to the WSDL)
>
> Do you have any idea about my problem ???
Ok I'm confused, you say it works then it doesn't, but then it
does if you turn off your auth?
Is the problem that the content type changes or what?
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
exists $ENV{MOD_PERL_API_VERSION} and
$ENV{MOD_PERL_API_VERSION} >= 2
};
}
Then you can just do if tests on the MP2 constant. I think your
problem may be the == 2 part, as you are very likely running
2.0.1, 2.0.2, 2.0.3,
gt; What are the ramifications of not returning the $self blessed
> reference?
The ramification is that your inside-out objects won't work.
All you've managed to do with this code is create a really
complicated way of making, populating, and returning a
hash.
--
st ) log message
you see on server startup.
Have you tried running this with a single Apache process ( -X ) to
see if you get different results?
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
:
PerlModule Bundle::Apache2
being loaded before the section might be causing your
issue.
Try switching it to this:
use Apache::DB();
Apache::DB->init();
use Bundle::Apache2;
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
ou
just want to clean up a legacy app's nasty HTML 3 into something
more modern. :)
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
pache namespaces are
> Apache and not Apache2.
Ouch. Those versions that come with RHEL by default are known to be
broken. Best advice is to upgrade to mp 2.0.2 or 2.0.3 from source,
as RHEL doesn't have updated packages that fix the issues.
----
; Just wondering what my options are in configuring this. Can anyone
> point me at useful links, or give some hints?
You might want to look at PerlBal (http://www.danga.com/perlbal/)
also to use in place of a light Apache. It's lighter then a light
Apache and has some other inter
On Mon, 27 Nov 2006 16:36:17 -0800
"Philip M. Gollucci" <[EMAIL PROTECTED]> wrote:
> Frank Wiles wrote:
> >Oh and yes, you can use your own login forms with these.
> (Custom AAA Handlers)
>
> I don't this is a widely known fact, so I'm resending
found using PerlTransHandler requires me to set
>
> PerlOptions +GlobalRequest
>
> to my httpd-perl.conf. What are the repercussions for using this
> setting?
It basically turns SetHandler mod_perl into half of SetHandler
perl-script. Giving you a access to a the Apache request object
from wherever, but not bothering to setup %ENV which is a slow
down if you don't use it.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
round and see what type of impact it
will have on your system without having to remount your filesystem.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
ost always last modified that you need/want.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
On Wed, 15 Nov 2006 12:34:50 +0200
Issac Goldstand <[EMAIL PROTECTED]> wrote:
> Cool!
>
> But, what license does it have?
Sophos is a commercial product.
-----
Frank Wiles <[EMAIL PROTECTED]>
x server, but am
> not sure.
Just an FYI, but yes you can run multiple Apaches on a single
system. It's done all the time.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
On Mon, 13 Nov 2006 10:24:21 +0200
Issac Goldstand <[EMAIL PROTECTED]> wrote:
> Frank Wiles wrote:
> >I believe this is how Sophos' PureMessage installs itself.
> > Basically putting your own Perl binary and module paths in
> >say /usr/local/myapp/bin/perl
oken up for reasons
other than performance.
I just looked over one of the largest mod_perl apps I help
maintain, there are 67 modules and only one of them is over
20k in size.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
using mod_perl to do your Apache configuration and having
normal CGI Perls running under it causes no real pain other than
the memory overhead of mp itself.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
o the latest stable mod_perl
from source as the version you are trying to use isn't really
supported and will most likely cause you problems down the road.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
if there is some weirdness
going on as to why you need to preload that.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
On Thu, 9 Nov 2006 11:10:24 -0800 (PST)
Fred Moyer <[EMAIL PROTECTED]> wrote:
> On Wed, 8 Nov 2006, Perrin Harkins wrote:
> > On Mon, 2006-11-06 at 12:28 -0600, Frank Wiles wrote:
> >>What I have always done is package my applications as if they
> >>
een updated
since the big mp2 API change.
What I have always done is package my applications as if they
are CPAN modules using ExtUtils::MakeMaker or in more recent
days Module::Build. Never had a problem with it, but it probably
isn't suited to distributing apps to novice users
set:
SELINUX=disabled
and it won't be started on boot. Just an FYI, but you can also turn
it off at runtime by running the following command:
setenforce 0
Hope that helps!
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
.html
The problem is that it uses mod_perl APIs throughout it's code and
so you're going to end up with a bunch of if( MP2 ) { } else { }
blocks everywhere. Where you'll use say Apache2::Const::OK and
use Apache::OK in the else.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
on, personally I would
symlink it so if/when you need to upgrade you don't have to remember
this fix. :)
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
small variables from your cron and have your mod_perl app
read them in on each request ( or a short cache in pnotes or
something ).
The last two may sound slow due to the disk reads, but it really
shouldn't cause a performance problem in all but the most
de
:Syslog, it's very light weight if
you just want to get data out to a file. Plus, you get the added
benefits of logrotates, being able to send it off to a remote system,
etc, etc.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
a special option to your handlers to return XML,
etc. ).
There are tons of different ways to do it. What I would look for is
to optimize for the "general case" of "I need to deliver XHTML" and
worry about "I might need this as XML at a later date" for tha
On Wed, 6 Sep 2006 19:09:15 -0400
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> On Sep 6, 2006, at 6:41 PM, Frank Wiles wrote:
>
> >Is that 500MB that "vanished" in used, buffers, or cached? Just
> >because it isn't listed in "free" d
On Wed, 6 Sep 2006 18:26:46 -0400
Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
>
> On Sep 6, 2006, at 6:01 PM, Frank Wiles wrote:
>
> >It didn't disappear, and it isn't "shared" like the type of
> > sharing we talk about with mod_perl/Apache
d memory you're talking about here is held by the postmaster
daemon and is used to store frequently requested data to be used by
the forked children via SysV IPC.
And yeah, PostgreSQL cleans up it's shared memory when it exits like
it should.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
ring the two most useful tweaks are shared_buffers
and effective_cache_size which need to be increased on all but
the lowliest of systems.
PostgreSQL may be the only one where this is true however...
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
wrote on debugging and
profiling mod_perl applications. It will show you how to see the
most used functions, lines of source, etc.
http://www.perl.com/pub/a/2006/02/09/debug_mod_perl.html
The profiling stuff on pages 2 and 3 is what you're after. Hope it
helps.
--
e.
Which is in part why we open sourced our Gantry framework.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
use libapreq.
Personally, I've only used libapreq for the last several years.
Anything else would be uncivilized. :)
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
PHP is only useful in the response phase of the Apache cycle,
where mod_perl can be used to actually configure and completely
control the Apache webserver from Perl.
With the added ability of protocol handlers, you can even implement
other non-HTTP protocols.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
On Thu, 17 Aug 2006 22:54:56 +0100
Joel Bernstein <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 17, 2006 at 04:50:46PM -0500, Frank Wiles wrote:
> > On Thu, 17 Aug 2006 16:54:08 -0400
> > Jonathan Vanasco <[EMAIL PROTECTED]> wrote:
> >
> > >
> > >
en cache them on disk for you
so you don't have to bother recompiling them on startup if they
haven't changed.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
ituations.
You're going to need to compile from source or if you prefer
rebuilding the RedHat SRPMs with the options you need.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
m upgrading to 2.2 ...
As mentioned previously, you need to be using Apache2::SOAP and
NOT Apache::SOAP. Apache::SOAP is for Apache 1 only.
-----
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
rl 2.0 was released.
Also, make sure you're installing libapreq via the Makefile.PL so
that it installs the Perl bindings for you.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
what to do
If it's not in perllocal.pod then Apache::XMLRPC::Lite isn't
installed and you'll need to install it.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
X, does it by default
run setuid and/or setgid? Also are you running with taint on?
There was an issue with Apache::SmallProf and Apache::DProf when
running under taint mode, and I'm curious if it's also a problem
for Apache::DB itself.
-
Frank Wiles <[EMAIL PROTECTED]>
http://www.wiles.org
-
1 - 100 of 304 matches
Mail list logo