#x27;t let Cpanel touch your regular Apache configuration,
let
alone one with mod_perl configured.
On Thu, Aug 8, 2024, 4:49 PM Jeff Pang wrote:
In now days configuration is not a hard job if you like to learn.
everyone can get a VPS from the cloud provider with low cost. :)
--
regards,
Jeff Pang
bother any super user for help.
In now days configuration is not a hard job if you like to learn.
everyone can get a VPS from the cloud provider with low cost. :)
--
regards,
Jeff Pang
.
--
regards,
Jeff Pang
On 2024-08-08 07:26, Jan Kasprzak wrote:
Hi, Jeff,
I work on a project with more than 1M lines of code in Perl (and
mod_perl).
My thoughts:
Jeff Pang wrote:
For me I run several apps on mod_perl, including a AI prediction app
which costs heavy CPU/ram. These apps run for long time and
somewhat out of date
2. mp lacks threads support
3. lacks a modern framework (rails like)
And others? what's your thought?
Thanks
--
regards,
Jeff Pang
I have not used modperl for long days. Is Apache mod_perl in actively
development recently? or just in maintenance state?
Thank you.
When apache mod_proxy pass the client's request to an original server, I want it
always duplicate the request to another webserver.
For example, the request is following: client -> mod_proxy -> original-server
What I want is:
client -> proxy -> original-server
|-> another web
:
apt-get install apache2 libapache2-mod-perl2 libapache2-request-perl
libapache2-mod-apreq2
Hope this helps!
Marilyn
On Wed, Dec 1, 2010 at 2:07 AM, Dave Hodgkinson wrote:
On 1 Dec 2010, at 02:51, Jeff Pang wrote:
> Hello,
>
> Does modperl and Apache2::Request have a port for U
Hello,
Does modperl and Apache2::Request have a port for Ubuntu and which will be
installed by apt-get?
Ubuntu's development environment is so worse, has been losing so many
libraries, compiling modperl under which is hard.
Thanks.
Jeff Pang
unsubscribe from the list, send an empty message to:
modperl-unsubscr...@perl.apache.org
Jeff Pang
http://blog.sina.com.cn/pajeu
- Original Message -
From: biao zhou
To:
Subject: unsubscribe
Date: 2010-11-23 07:52:02
于 2010-10-29 20:42, Fayland Lam 写道:
try Dancer. which is very suitable for small application. just one file.
Ok I will check out it.
I first time knew Dancer from ruby 2 years ago.
Never know that there is a perl execution of that.
于 2010-10-29 20:20, Perrin Harkins 写道:
Both work. CGI::Session was better maintained for a while but it
looks like Apache::Session has been updated recently. Pick the one
that you find easiest to understand from the documentation.
I know CGI::Session well.
But have been thinking does Apache:
于 2010-10-29 20:28, Fayland Lam 写道:
try a framework. that's much more popular. :)
I wrote a small application with few scripts.
A framework like catalyst is too large to use for me.
Thanks.
Jeff.
is Apache::Session or CGI::Session better for mod_perl?
Thanks.
2009/9/24 Robertson, Gordon H CIV DISA GES-E :
> Hi,
>
> Please take me out of mailing list
>
please send an empty mail to modperl-unsubscr...@perl.apache.org, thanks.
On Tue, 30 Nov 2004 22:38:11 +
modperl[at]att.net wrote:
3) capacity/scalable
mod_perl is very scalable --- I mean, one can properly
config a single server to handle dynamic content for
200K daily unique IPs. PHP may end up with just 100K
and servlet ends up at around 50K.
I'm just curio
Hello,
Google has introduced its music searching here (music.google.cn), with an
online web music player.
what I'm surprised with is, even I deleted all the browser's cookies and
buffers (I use firefox), after re-open that web music player, the list of songs
is still there (I also tried changin
> Message du 27/03/09 07:09
> De : "Phil Van"
> A : modperl@perl.apache.org
> Copie à :
> Objet : modperl or php? Re: decline and fall of modperl?
>
> daily traffic: 100,000 - 500,000 unique sessions (medium to medium-large
> sites)
> => modperl in a cluster environment
>
me again: modperl as we
rite (or so called NAT or reverse NAT), not a
proxy server.
One of our applications, have two LVS before 200+ Squid boxes, the backend are
hundreds of fastcgi servers. LVS and Squid run with DR mode, could reach to
10G+ traffic.
--
Jeff Pang
http://home.arcor.de/pangj/
Créez votre ad
:02 PM, Jeff Pang wrote:
> > Hello,
> >
> > I have a modperl application on a host which is running with heavy load.
> > I have the plan to put a reverse proxy before it.
> > There are two well known reverse proxy software, one is Squid, another is
> > ngi
Just ask out of being curious, are mod_perl and mod_python the same or similar
stuff?
Which is better (in performance or ease to use)? Thanks.
Jeff.
Créez votre adresse électronique prenom@laposte.net
1 Go d'espace de stockage, anti-spam et anti-virus intégrés.
Hello,
I have a modperl application on a host which is running with heavy load.
I have the plan to put a reverse proxy before it.
There are two well known reverse proxy software, one is Squid, another is nginx.
Which one is better for modperl application? or is there any others which are
better t
> Message du 29/09/08 23:05
> De : "Perrin Harkins"
> A : "Mark Stosberg"
> Copie à : modperl@perl.apache.org
> Objet : Re: Any success with storing photos in a database?
>
>
> On Mon, Sep 29, 2008 at 3:00 PM, Mark Stosberg wrote:
> > We have a large, busy, database application that relates to m
I have began a project, but meet some problems,:)
say there are three dirs:
|- cgi-bin
|- cgi-bin - lib
|- cgi-bin - template
I have a script in cgi-bin, which requires the template file from template dir.
This script also uses a library file (.pm) from lib dir.
Finally the library need to requ
These are the install documents for mp2:
http://perl.apache.org/docs/2.0/user/install/install.html#Dynamic_mod_perl
http://perl.apache.org/docs/2.0/user/install/install.html#Static_mod_perl
I just think both are fine.
For me I use dynamic install most time.
On Sat, Jul 19, 2008 at 5:42 AM, Mario
On Thu, Apr 3, 2008 at 11:32 PM, Felipe de Jesús Molina Bravo
<[EMAIL PROTECTED]> wrote:
> hi
>
> I have installed static mp2 with apache 2.0.63 (forker). I am using perl
> bind (Sleepycat::DBXML) from dbxml; then I create an object (reference to
> Sleepycat::DBXML) in startup.pl because i want t
yup,thanks for the reminding.
I checked the doc, for mp1 it's $r->header_in(); for mp2 it's $r->headers_in().
-Original Message-
>From: Foo JH <[EMAIL PROTECTED]>
>Sent: Jan 21, 2008 3:52 PM
>To: Jeff Pang <[EMAIL PROTECTED]>
>Cc: modperl-li
Hello,
what are the methods to get UserAgent setting in both mp1 and mp2?
I tried search,but got no results.
Thanks!
Regards,
Jeff Pang
-Original Message-
>From: Roberto C. Sánchez <[EMAIL PROTECTED]>
>
>I prefer to run multiple httpd processes on high numbered ports (one for
>each site), then have the main httpd on port 80 do proxypass
>proxypassrever and name-based vhosting. Then you can also customize
>each httpd to o
Hello,
I met a strange requirement that, given Apache has two virtual hosts, vhA and
vhB, vhA's document root is: /path/a/; vhB's document root is: /path/b/.
vhA's programs are running under /path/a/cgi-bin, but actually, the programs of
vhA can access vhB's directory (ie,they can open and writ
2007/12/14, Malcolm <[EMAIL PROTECTED]>:
> On Thursday 13 December 2007 10:00:30 am Jeff Pang wrote:
>
> > right now I got these exceptions in error_log:
> >
> > [Thu Dec 13 21:53:49 2007] [notice] child pid 4660 exit signal
> > Segmentation fault (11)
>
&
2007/12/13, Malcolm <[EMAIL PROTECTED]>:
>
> Just to confirm, you do have a "use Apache::Scoreboard" in there somewhere?
>
surely I used it.
right now I got these exceptions in error_log:
[Thu Dec 13 21:53:49 2007] [notice] child pid 4660 exit signal
Segmentation fault (11)
[Thu Dec 13 21:53:49
When added these code in my handler:
my $r = shift;
# We decline to handle subrequests: otherwise, a few lines down we
# could get into an infinite loop.
return DECLINED unless $r->is_initial_req;
#
# for limit-ip-conn
#
my $ip_count = 0;
my $limit = $r->dir_config('MaxC
Thank you all guys.
At first I used mod_limitipconn for limiting ip concurrent
connections. But I found it got conflict with my mp handler (the
PerlAccessHandler one).
So I checked its source (it came with a perl version), and found it's
easy to be integrated into my handler.And it used Apache::Sc
I need Apache::Scoreboard for mp1, where to find it? please help.
We have another project to get start with, some linux hosts to server
file downloading requests.
Apache is just used to server static large files, without any external
modules, except the modperl handler for access control, like ip and
processes limit.
We have run mp1 in large application, and run
On Nov 26, 2007 11:16 AM, Roberto C. Sánchez <[EMAIL PROTECTED]> wrote:
>
>
> Umm, why would you want to do that? Why not just use a proper load
> balancing solution?
>
because, when redirecting, apache doesn't know the exact location for
that redirection.
apache must do some querying to get the
hello,
we have some mp1 programs including both handlers and registry scripts,run
for long days.
since apache2 is better than apache1.3, we have made the choice to upgrade
the mp1 programs to mp2.
Is there any easy way or guide to do it? thank you.
National Bingo Night. Play along for
- Original Message -
From: "Jeff Armstrong" <[EMAIL PROTECTED]>
Cc: "modperl"
>
>> 2. Pay up for VMWare Workstation.
>>
>> With VMWare you can have virtual linux sessions running in Windows.
>> There's a free player and some free Linux virtual machines but if you
>> want to create you
2007/10/5, D. Hageman <[EMAIL PROTECTED]>:
> The module will be preloaded just like your script, thus any speed up
> experienced by your script will also be experienced by the module.
>
Hi,
If you don't preload it in startup.pl or with PerlModule directive in
httpd.conf,I don't think registry sc
Hello,
Does apache2.2+mp2 have much advantage than apache2.0+mp2?
2007/10/4, Foo JH <[EMAIL PROTECTED]>:
> You may want to hold back on 2.2.6. Use either 2.2.4 from ASF or 2.2.5
> from ApacheLounge.
>
> Tracy E Schreiber wrote:
> > Hi,
> >
> > I believe that mod_perl 2.0.3 is not compatible with A
2007/10/2, Tyler Bird <[EMAIL PROTECTED]>:
> Hi List,
>
>
> I know this is off topic, but does anyone know
> if you restart the sendmail MTA daemon if all mail in the mail queues
> will still
> be delivered or any email will be lost as a result?
>
No.when you restart a sendmail,mail queues will ne
2007/9/28, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> as i see there is no way to set request parameter in mod_perl2
You can rewrite an url using mp2's PerlTransHandler.
This is the sample code from book mp2 user's guide.
If the URI:
http://example.com/news/20021031/09/index.html
is now handled by:
Great story,thanks.
btw,is there any article about performance comparsion between modperl and php?
2007/9/26, Perrin Harkins <[EMAIL PROTECTED]>:
> My Google alert sent this to me today:
> http://whitepapers.zdnet.com/abstract.aspx?docid=257555
>
> - Perrin
>
2007/9/17, André Warnier <[EMAIL PROTECTED]>:
>
> If the above is not applicable, then you could use something like
>
>PerlSetVar AllowedIps "ip1 ip2 ip3"
>...
>
>
> and in your module do
>
> sub handler {
>my $r = shift; # the request object
>my $AllowedIps = $r->dir_config('All
2007/8/24, Perrin Harkins <[EMAIL PROTECTED]>:
> On 8/21/07, Jeff Pang <[EMAIL PROTECTED]> wrote:
> > >PerlHandler Package::Name
> > >
> > >instead of:
> > >
> > >PerlHandler Package::Name->handler
> > >
> >
> >
-Original Message-
>From: Foo JH <[EMAIL PROTECTED]>
>Sent: Aug 22, 2007 11:15 AM
>To: Jeff Pang <[EMAIL PROTECTED]>
>Cc: Jordan McLain <[EMAIL PROTECTED]>, modperl@perl.apache.org
>Subject: Re: Internal Server Error
>
>
>> So on the first
$r = shift; ... }
because '->' is a method calling.
Am I right?
btw,I always used the first config.
--
Jeff Pang - [EMAIL PROTECTED]
http://home.arcor.de/jeffpang/
#x27;t call method "send_http_header" on an undefined value at /path/to/module/Name.pmThe handler method starts out with:
sub handler ($$) { my ($class, $r) = @_;
--
Jeff Pang - [EMAIL PROTECTED]
http://home.arcor.de/jeffpang/
Jonathan Vanasco 写道:
On Jun 13, 2007, at 5:44 AM, Jeff Pang wrote:
When I installed Apache2::Request (without make test) and rut it I got
the errors:
at the risk of stating the obvious...
what happens why you run make test ?
It said I was making test with root identify,but Apache would
Jeff Pang 写道:
> hello,
>
> When I installed Apache2::Request (without make test) and rut it I got
> the errors:
>
Sorry,forgot the info for my system.
[EMAIL PROTECTED] ~]# cat /etc/redhat-release
Red Hat Enterprise Linux AS release 4 (Nahant)
[EMAIL PROTECTED] ~]# uname -r
2.6
hello,
When I installed Apache2::Request (without make test) and rut it I got
the errors:
[EMAIL PROTECTED] libapreq2-2.08]# perl -MApache2::Request -e ''
Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/APR/APR.so'
for module APR: libaprutil-0.so.0: cannot open shared obje
Hello,
When compiling modperl (I used mp2),what's the correct I/O buffer for
it?The server has 1G ethernet interface,would server for something like
flv/wma content.The default buffer is 8K,I think I could increase this
value for better performance.
Thanks!
Foo JH 写道:
You'd see that Apache2::Request exposes more stuff, which you can
(lazily) use. Unless you are looking for some backward compatibility to
tradditional CGI programming, why not embrace the entire modperl library?
I second it.Using Apache2::Request is not harder than CGI,but much f
>There's no issue with the way perl runs on linux -- the issue is the
>support the distros have for it. If you're running linux, you're
>building mod_perl from source. Otherwise, ModPerl on linux is just a
>shame. The distros are just not supporting it.
>
Got it,thanks.
It's not the probl
>i think the mod_perl support on the 'enterprise linux' platforms are
>pretty bad -- they're often way out of date. public distros, like
>ubuntu, are usually up-to date.
>freebsd support is the best, much thanks to philip porting to
>freebsd within minutes of the source code release (btw,
>
>It's slower than BerkeleyDB and Cache::FastMmap.
>
I've used both (DB_File and memcached),but I found memcached was faster than
DB_File since memcached used memory as the cache device but DB_File used local
filesystem.Am I not right?:)
--
mailto: [EMAIL PROTECTED]
http://home.arcor.de/je
-Original Message-
>From: Nils Kaiser <[EMAIL PROTECTED]>
>
>After investigating, we decided to go for a mod_perl / berkeleydb
>solution. The berkeleydb caches the data for each user agent, so the
>webservice will be only queried once. Coding is not a problem as we have
>one perl deve
>
>We also do everything (not source code, which is in ISO-8859-1, only content)
>in UTF-8 where I >work, and we support many different languages.
Jeff,how did you do it by using utf-8 for everything?can you give a rough
description?Thanks.
--
mailto: [EMAIL PROTECTED]
http://home.arcor.de
>
>I couldn't find anything online. It would be nice to have an
>official policy, usage -- i know that there's been a ton of logo
>issues with other groups. A popular approach seems to be having an
>official project/release logo, and then another official 'powered by'
>or 'derivative of
>I am trying to install the Devel::Size perl module in Unix.I have
>installed it but when I try to include it in my program using use lib
>'/pathname'
>I get the error as follows:-
>
>Can't locate Devel/Size.pm in @INC (@INC contains:
Sounds like you installed the module uncorrectly.
Please
#codes for querying memcached
...
return OK;
}
$memd->disconnect_all;
Thanks for more suggestions.
--
Jeff Pang
EMAIL: pangjearthlink.net AIM: jeffpang
e it among all the apache childs and
keep it open all the time like Apache::DBI?
--
Jeff Pang
EMAIL: pangjearthlink.net AIM: jeffpang
>>
>> I mean anything relative to the performance.is the begin block called
>> everytime orjust the first time and is it safe to define a function in
>> a file and call it with this method rather than a package ,
>
>The begin blocks are only run at compile time, so won't affect the
>performance
>
>Sorry, one other thing I didn't mention from the start is that the errors are
>happening inconsistently. We can rarely duplicate the error, but see it
>showing up in log files, and a QA can periodically replicate it.
>
>So do you think it be related to a bad Apache process, rather than softwar
>You're running into this problem:
>http://perl.apache.org/docs/1.0/guide/porting.html#Name_collisions_with_Modules_and_libs
>
>The best solution is to put your subs into a namespace with a package
>declaration.
Sorry I don't think so since both the template name and the subroutine name are
u
Hello,lists,
I have a strange problem for my modperl programs which are run under
Apache::Registry (MP1).
In my script I require some templates like:
require "templates/groupshow_head.tpl";
Here groupshow_head.tpl is a template file which primarily print chunk of HTML
codes in subroutine,like:
>
>unsubscribe
>
Hello,
To unsubscribe from the modperl user lists,please send an empty email to [EMAIL
PROTECTED]
--
Books below translated by me to Chinese.
Practical mod_perl: http://home.earthlink.net/~pangj/mod_perl/
Squid the Definitive Guide: http://home.earthlink.net/~pangj/squid/
Hello,
Have you loaded the ModPerl::Registry?How can you know your modperl scripts
can't be run?
When you meet problems,you can look at the error_log where you could find most
of the problems.
And,here is my mp2 config,it can run well for me:
PerlModule ModPerl::Registry
SetHandler perl-sc
>
>I am not sure, but I think the problem you have is that Apache::DBI ignores
>any disconnect() calls on database handles, and doesn't actually disconnect.
That's true.Apache::DBI ignores all the disconnect() calls.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
I don't know whether or not many ones have read it.You can take a look at:
http://dmst.aueb.gr/dds/pubs/conf/2002-SANE-DynCont/html/dyncont.html
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
Sorry for the trouble,I've got it.It's '$r->get_remote_host'.
-Original Message-
>From: Jeff Pang <[EMAIL PROTECTED]>
>Sent: Sep 26, 2006 5:22 AM
>To: modperl@perl.apache.org
>Subject: How to get remote host address in Apache::Request
>
>H
Hello,list,
I want to get the remote client's IPs in Apache::Request like the method of
'$q->remote_host()' in CGI.pm.
Can you help me?Thank you.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
Sorry,I've resolved it.There is a lack of lib file.Thanks for the attention.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
l5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.
When I compile the Apache,I got much errors.I redirect all the errors into a
file and put this file on my web.
Please download it and take a look at it.the url is:
http://home.earthlink.net/~pangj/tmp/compile.apache.err.gz
I'm re
l/libperl.a(Server.o)(.text+0x2bdd): In function
`boot_Apache(...)(long double, void,...)(long double) static':: undefined
reference to `Perl_Gthr_key_ptr'
...
lots of these.
Could you tell me how to resolve it?Thanks.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
>
>Hi,
>
>I'm not sure this is the place to ask, but I am looking for a good
>mod_perl2 book, which is not on an introductory level, but delves a bit
>deeper. Are any of these in existance yet?
>
>--
>Ole Kasper Olsen
>Information Systems Developer
>Oper
data to the network
>
>I can see [info]. Do this means that it is not a real error but just a
>warning?
>Why does it appear?
>
>I have followed the suggestions, searched the web, and I have also put in
>httpd.conf:
>
>EnableSendfile Off
>
>But these errors continue to appear.
>
>Teddy
>
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
l system for
>most people, even if it's slightly slower than FastTemplate or SSI. The
>exception is running under CGI, where code compiling really hurts you.
>
>- Perrin
>
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
ion and its attachments without readingor saving in any manner.
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
eload or restart httpd
>
>When code is updated during developing period, httpd progress must be
>reload or restart so that to see the change. If is it possible to see
>the change without reload httpd?
>
>--
>perl -e 'print unpack(u,"62V5N\"FME;G\!E")'
--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com
perl.apache.org
>Subject: debug modperl program
>
>hi,
>Debuging a perl program at command line is using -d option, but this
>can't be used in a modperl program, any doc or examples on this topic
>about how to debug a modperl program?
>
>--
>perl -e 'print unpack(u,&quo
Hi,lists,
I am new to mod_perl.I have a simple mod_perl script running under
Apache::Register.When it run,I found many error messages appeared in
logs/error_log.
The program is shown below:
use strict;
use warnings;
use CGI;
use CGI::Cookie;
use vars qw($q $sessionID);
$q = new CGI;
init();
83 matches
Mail list logo