On Thu, Aug 06, 2020 at 10:10:38PM -0500, Mithun Bhattacharya wrote:
> Ruben this conversation had nothing to do with any specific AI use - since
> we did not ask to be spammed with your ethics opinion could you please stop
***Boink*** that is wrong. If you want to discuss the destructive use
of
On Thu, Aug 06, 2020 at 10:10:38PM -0500, Mithun Bhattacharya wrote:
> Ruben this conversation had nothing to do with any specific AI use - since
> we did not ask to be spammed with your ethics opinion could you please stop
> misusing the mod_perl forum for such activities ?
So you are using modpe
Ruben this conversation had nothing to do with any specific AI use - since
we did not ask to be spammed with your ethics opinion could you please stop
misusing the mod_perl forum for such activities ?
On Thu, Aug 6, 2020 at 9:00 PM Ruben Safir wrote:
> On Wed, Aug 05, 2020 at 10:47:48AM -0500, M
On Wed, Aug 05, 2020 at 10:47:48AM -0500, Mithun Bhattacharya wrote:
> Assuming that is genuine curiosity can we please not deviate from the topic
> ?
>
> On Wed, Aug 5, 2020 at 6:19 AM Ruben Safir wrote:
>
> > On Wed, Aug 05, 2020 at 09:46:18AM +0800, Wesley Peng wrote:
> > > Hi
> > >
> > > Mit
On Wed, Aug 05, 2020 at 10:47:48AM -0500, Mithun Bhattacharya wrote:
> Assuming that is genuine curiosity can we please not deviate from the topic
> ?
IBM felt that way once.
I think it is important to know what kind of aps we are developing, and
for what uses.. You are aware of the broad use of
Assuming that is genuine curiosity can we please not deviate from the topic
?
On Wed, Aug 5, 2020 at 6:19 AM Ruben Safir wrote:
> On Wed, Aug 05, 2020 at 09:46:18AM +0800, Wesley Peng wrote:
> > Hi
> >
> > Mithun Bhattacharya wrote:
> > >Do you really need a webserver which is providing a blocki
On Wed, Aug 05, 2020 at 09:46:18AM +0800, Wesley Peng wrote:
> Hi
>
> Mithun Bhattacharya wrote:
> >Do you really need a webserver which is providing a blocking service ?
>
> yes, this is a prediction server, which would be deployed in PROD
> environment, the client application would request the
>
>
> The good thing about Apache is it's dynamic rescaling - which isn't as easy
> with starman - if you have a large code base the spin up time for starman can
> be quite large as it appears (to make it efficient) load in every bit of code
> that the application needs - even if it is one
James,
James Smith wrote:
The services which use apache/mod_perl work reliably and return data for these
- the dancer/starman sometimes fail/hang as there are no backends to serve the
requests or those backends timeout requests to the nginx/proxy (but still
continue using resources). The team
So yes use starman for simple apps if you need to, but for complex stuff I find
mod_perl setup more reliable.
James
-Original Message-
From: Wesley Peng
Sent: 05 August 2020 04:31
To: dc...@prosentient.com.au; modperl@perl.apache.org
Subject: Re: Question about deploym
to.
David Cook
-Original Message-
From: Wesley Peng
Sent: Wednesday, 5 August 2020 1:31 PM
To: dc...@prosentient.com.au; modperl@perl.apache.org
Subject: Re: Question about deployment of math computing
Hi
dc...@prosentient.com.au wrote:
That's interesting. After re-reading your ear
e day, it depends on the workload that you're trying to cater
to.
David Cook
-Original Message-
From: Wesley Peng
Sent: Wednesday, 5 August 2020 1:31 PM
To: dc...@prosentient.com.au; modperl@perl.apache.org
Subject: Re: Question about deployment of math computing
Hi
dc...@prosen
Hi
dc...@prosentient.com.au wrote:
That's interesting. After re-reading your earlier email, I think that I
misunderstood what you were saying.
Since this is a mod_perl listserv, I imagine that the advice will always be to
use mod_perl rather than starman?
Personally, I'd say either option wo
perl starting with RHEL 8, although EPEL 8 now has mod_perl in it.
Something to think about.
David Cook
-Original Message-
From: Wesley Peng
Sent: Wednesday, 5 August 2020 1:00 PM
To: dc...@prosentient.com.au; modperl@perl.apache.org
Subject: Re: Question about deployment
Hi
dc...@prosentient.com.au wrote:
If your app isn't human-facing, then I don't see why a little delay would be a
problem?
Our app is not human facing. The application by other department will
request the result from our app via HTTP.
The company has huge big-data stack deployed, such as
ur app isn't human-facing, then I don't see why a little delay would be a
problem?
David Cook
-Original Message-
From: Wesley Peng
Sent: Wednesday, 5 August 2020 11:46 AM
To: modperl@perl.apache.org
Subject: Re: Question about deployment of math computing
Hi
Mithun Bhattac
Hi
Mithun Bhattacharya wrote:
Do you really need a webserver which is providing a blocking service ?
yes, this is a prediction server, which would be deployed in PROD
environment, the client application would request the prediction server
for results as scores. You can think it as online rec
Do you really need a webserver which is providing a blocking service ?
Assuming you are doing some sort of map reduce you would be better of
creating a job queue and placing requests into it. You would have a
separate consumer of the queue which could scale up or down depending upon
how long the j
On Thu, 24 Oct 2019 at 15:50, wrote:
>
> On Wednesday 06 September 2017 08:23:12 Steve Hay wrote:
> > On 19 January 2017 at 14:25, Issac Goldstand wrote:
> > > That release was canceled due to lack of votes,
>
> Hello Issac! Have you released this version on cpan as trial release for
> testing?
On Wednesday 06 September 2017 08:23:12 Steve Hay wrote:
> On 19 January 2017 at 14:25, Issac Goldstand wrote:
> > That release was canceled due to lack of votes,
Hello Issac! Have you released this version on cpan as trial release for
testing?
I have not found it on https://metacpan.org/releas
On 19 January 2017 at 14:25, Issac Goldstand wrote:
> That release was canceled due to lack of votes, but regardless there was
> very little effective difference between that and 2.13 - mostly around
> tests, docs and build scripts. 2.13 should run just fine on 2.4
Somehow, it only came to my at
lliam A Rowe Jr
> To: httpd ; modperl@perl.apache.org
> Cc: JW
> Sent: Monday, March 13, 2017 4:53 PM
>
> Subject: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)
>
> This has occurred in multiple contexts, including throwing segfaults in the
> modperl test
To: httpd ; modperl@perl.apache.org
Cc: JW
Sent: Monday, March 13, 2017 4:53 PM
Subject: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)
This has occurred in multiple contexts, including throwing segfaults in the
modperl test framework (connection handler, so no req_rec.)
Wondering
13, 2017 at 6:28 PM, JW wrote:
>
> From: William A Rowe Jr
> To: JW
> Cc: "modperl@perl.apache.org"
> Sent: Friday, March 10, 2017 1:44 PM
> Subject: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)
>
> On Thu,
On Thu, Mar 9, 2017 at 9:53 PM, JW wrote:
>
> It's been over a month since moving to Apache 2.4. It was fairly
> straightforward and required
> little code to be updated, most of it Apache config. Everything runs as it
> did before the update and I've
> had no problems. The one function that didn'
* JW wrote:
> This mod_perl server is behind a proxy on the same machine. Under Apache 2.2,
> $r->remote_ip()
> returned 127.0.0.1 and not the user's actual IP. So, a
> PerlPostReadRequestHandler extracted the user's
> IP address from the X-Forwarded-For header and set it with $r->remote_ip(
* JW wrote:
> Date: Fri, 10 Mar 2017 03:53:27 +
> From: JW
> To: "modperl@perl.apache.org"
> Subject: Re: Question about Apache 2.4 and libapreq2 (Apache2::Request)
>
> Hi,
> Back in January I was planning on moving to Apache 2.4+mod_perl+libapreq2
>
Hi,
Back in January I was planning on moving to Apache 2.4+mod_perl+libapreq2
from Apache 2.2+mod_perl+libapreq2. I'd asked if anyone had problems doing a
similar
move -- the answer was no. Thank you again to everyone who replied my earlier
post.
It's been over a month since moving to Apache
On Wed, 18 Jan 2017 20:06:41 + (UTC)
JW wrote:
> before I make a permanent switch to Apache 2.4, I was wondering if anyone
>doing a similar upgrade experienced problems using libapreq2 and what
>alternative(s) they chose.
>
You are more likely to encounter problems with Apache t
That release was canceled due to lack of votes, but regardless there was
very little effective difference between that and 2.13 - mostly around
tests, docs and build scripts. 2.13 should run just fine on 2.4
Issac
On 1/19/2017 6:30 AM, Jie Gao wrote:
There was a new release candidate over
On Wed, 18 Jan 2017 20:06:41 + (UTC)
JW wrote:
> before I make a permanent switch to Apache 2.4, I was wondering if anyone
> doing a similar upgrade experienced problems using libapreq2 and what
> alternative(s) they chose.
>
You are more likely to encounter problems with Apache than li
There was a new release candidate over a month ago, and it is available at
https://home.apache.org/~issac/libapreq2-2.14.tar.gz .
Regards,
Jie
* JW wrote:
> Date: Wed, 18 Jan 2017 20:06:41 +
> From: JW
> To: "modperl@perl.apache.org"
> Subject: Question about Apache 2.4 and libapreq2
We've been using apreq with 2.4 for two years without issue at work. I can't
imagine why anyone would have a problem with it on any version of httpd 2.x.
Sent from my iPhone
> On Jan 18, 2017, at 3:06 PM, JW wrote:
>
>
> Hi,
>
> I currently use Apache 2.2, mod_perl and libapreq2 (for Apache
On 07.04.2016 21:12, Lathan Bidwell wrote:
Hi.
I have (a long time ago) created an AAA module based originally on
Apache2::AuthCookie (a copy and rewrite, not a sub-class). Now I need to
adapt this to Apache 2.4.
I have read all the docs at
https://metacpan.org/source/MSCHOUT/Apache-AuthCookie-3
>
> Hi.
> I have (a long time ago) created an AAA module based originally on
> Apache2::AuthCookie (a copy and rewrite, not a sub-class). Now I need to
> adapt this to Apache 2.4.
> I have read all the docs at
> https://metacpan.org/source/MSCHOUT/Apache-AuthCookie-3.24/lib/Apache2_4/AuthCookie.pm,
On 4/6/16 11:51 AM, A. Warnier wrote:
> I could of course hack the values of these constants under 2.4, and use
> their values directly in my module, but that is rather "inelegant".
If you insist on using the same module/source for both 2.4 and 2.2 I do
not see any other option.
The AUTHZ_GRANTE
]
Sent: Wednesday, February 06, 2013 12:42 PM
To: mod_perl list
Subject: Re: Question on how execution order of Mod_Persl
Timothy Gallagher wrote:
> Hello all,
> I have a question for you that I am needed some help/guidance on. I am not
> sure if this is a question for Apache, perl or mo
Timothy Gallagher wrote:
Hello all,
I have a question for you that I am needed some help/guidance on. I am not
sure if this is a question for Apache, perl or mod_perl, I believe this is the
correct place to ask. I am building a reverse proxy server that authenticates
a user via the client SS
On 11/14/2012 03:53 PM, André Warnier wrote:
> The tidbit above makes me think about a possibility to solve another
> issue that happens from time to time : some users browsers that are NOT
> refreshing their copies of stylesheets or javascript libraries, even
> though they have been modified.
> No
Torsten Förtsch wrote:
On 11/14/2012 02:48 PM, André Warnier wrote:
I my particular case, the sendfile() solution above works fine, because
I am sure in this case that no additional processing needs to take place
on those static pages.
What I meant in particular was the HTTP code 304 generatio
On 11/14/2012 02:48 PM, André Warnier wrote:
> I my particular case, the sendfile() solution above works fine, because
> I am sure in this case that no additional processing needs to take place
> on those static pages.
What I meant in particular was the HTTP code 304 generation. With your
solution
Torsten Förtsch wrote:
On 11/13/2012 07:17 PM, André Warnier wrote:
I didn't want to take too much time of anyone before, which is why I
somewhat oversimplified the issue. But considering the traffic on the
lis os low, maybe you want to hear the whole story after all.
The basic case is this :
On 11/13/2012 07:17 PM, André Warnier wrote:
> I didn't want to take too much time of anyone before, which is why I
> somewhat oversimplified the issue. But considering the traffic on the
> lis os low, maybe you want to hear the whole story after all.
>
> The basic case is this : a bit aside from
Sure thing, anytime.
You raise valid points and are in the best position to know what kind of
tradeoffs to make. Simpler handler requires less processing and memory
but increased number of requests.
I said what I did because I'm working on a single page app. with heavy
use of Javascript (Go
Torsten Förtsch wrote:
On 11/12/2012 06:19 PM, André Warnier wrote:
In response to some request URLs, I have to compose a response
structured as follows :
- a html frameset document with two frames
- in the 1st frame, the result of another HTTP request to the same
Apache server.
This URI of t
On 11/12/2012 06:19 PM, André Warnier wrote:
> In response to some request URLs, I have to compose a response
> structured as follows :
>
> - a html frameset document with two frames
> - in the 1st frame, the result of another HTTP request to the same
> Apache server.
> This URI of this HTTP req
Hi.
Once again, thanks. Your javascript/onLoad idea sounds good, and would fit my
needs.
I'll give it a spin.
There is one thing that bothers me (and it is the same in my own solution outlined below)
: what previously was one HTTP request and one response, now becomes 3 HTTP requests and 3
r
Hi.
Thank you for your response.
You are not missing the point of my questions.
But I do not really have control over the requests. Or rather, I do, but there are
hundreds of pages containing hundreds of similar (but not equal) links, and it is in the
practice not doable to edit them all..
And
Q1: At first glance, using a mod_perl handler to serve an existing
static html file seems like overkill.
Couldn't Apache respond (RedirectMatch?) with a common frameset html
file with some Javascript, which then fills the first frame with the
response to mangle.pl and the second frame with t
On 13 Mar 2012, at 21:32, Perrin Harkins wrote:
>
> Turn on the template caching. It's basically free and will speed
> things up. Caching at the page level is the ultimate in terms of
> speed, but it will only be possible for pages that are not dynamic on
> a per-user basis. Template caching
On Tue, Mar 13, 2012 at 3:51 PM, Dan Axtell wrote:
> I understand the value of having one light-weight server for static content,
> and a reverse proxy back to a heavy-weight Apache with mod_perl, and I
> understand I can use something like Varnish or mod_cache to add a caching
> layer, but I'm w
On 03/13/2012 03:51 PM, Dan Axtell wrote:
The apps are mostly dynamic forms based on HTML::Template. H::T has some
caching options but they seem more aimed at CGI users. I could convert to
Template::Toolkit, which as I understand converts to compiled Perl code (which
would presumably mean that
Getting static assets (js, css, gfx) off your apache children is far more
important than anything else for scaling up to lots of concurrent users
IMHO. We use a pound load balancer to direct static reqs to nginx "cdn"
and all dynamic requests to apache backends.
Once you have that in place t
André, thanks a lot for that great and detailed answer!
It's like everyone says the support from this mailing list is perfect.
>> - I do not understand the link between API and APR functions/methods
>> (I am working on a Debian Server and really don't care for Windows)
>
> Can you clarify that q
Carla von Reitzenstein wrote:
Hi,
for my diploma thesis I need to implement some of the WebDAV requests
into my apache, to make a TWiki installation (an open-source wiki)
WebDAV compatible.
I know that there is a WebDAV module for the apache but when looking
at the needed connection between the
On 28.01.2011 12:07, Torsten Förtsch wrote:
On Friday, January 28, 2011 11:42:46 Alexander Aparzev wrote:
# now check the log and see if it contains 12 lines of 'pnotes are ...'
((12==$(grep 'pnotes are destroyed after cleanup passed' t/logs/error_log
| wc -l)))&& echo ok
Thank you Torsten.
On Friday, January 28, 2011 11:42:46 Alexander Aparzev wrote:
> > # now check the log and see if it contains 12 lines of 'pnotes are ...'
> > ((12==$(grep 'pnotes are destroyed after cleanup passed' t/logs/error_log
> > | wc -l)))&& echo ok
>
> Thank you Torsten. No, it doesn't.
Don't know what
On 28.01.2011 09:46, Torsten Förtsch wrote:
# run the test
t/TEST -verbose t/modperl/pnotes2.t
# now check the log and see if it contains 12 lines of 'pnotes are ...'
((12==$(grep 'pnotes are destroyed after cleanup passed' t/logs/error_log | wc
-l)))&& echo ok
Thank you Torsten. No, it doe
On Thursday, January 27, 2011 20:44:57 Alexander Aparzev wrote:
> using Apache/2.2.9 (itk MPM)
Just a guess, has anyone ever tested itk-MPM?
However, perhaps it's only a matter of bad timing. pnotes2.t is one of mine, I
think. It looks as follows:
for my $i (1..12) {
t_client_log_warn_is_exp
My guess is that your 64 bit setup with ithreads is causing this
error. Does anyone else here have 64 bit they can test with an
ithreads enabled perl?
On Thu, Jan 27, 2011 at 12:18 PM, Alexander Aparzev
wrote:
> On 27.01.2011 20:55, Fred Moyer wrote:
>>
>> On Thu, Jan 27, 2011 at 11:44 AM, Alexa
On 27.01.2011 20:55, Fred Moyer wrote:
On Thu, Jan 27, 2011 at 11:44 AM, Alexander Aparzev
wrote:
On 27.01.2011 20:19, Fred Moyer wrote:
Can you run the failing tests with verbose mode and post the results here?
./t/TEST -verbose t/modperl/pnotes2.t
Sure. Did it:
[warning] setting ulim
On Thu, Jan 27, 2011 at 11:44 AM, Alexander Aparzev
wrote:
> On 27.01.2011 20:19, Fred Moyer wrote:
>>
>> Can you run the failing tests with verbose mode and post the results here?
>>
>> ./t/TEST -verbose t/modperl/pnotes2.t
>
> Sure. Did it:
>
> [warning] setting ulimit to allow core files
> uli
On 27.01.2011 20:19, Fred Moyer wrote:
Can you run the failing tests with verbose mode and post the results here?
./t/TEST -verbose t/modperl/pnotes2.t
Sure. Did it:
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl
/home/justme/sources/mod_perl-2.0.5-rc1/t/TE
On Thu, Jan 27, 2011 at 11:25 AM, Alexander Aparzev
wrote:
> On 27.01.2011 18:08, Fred Moyer wrote:
>>> I have a problem installing mod_perl. Some tests fail.
>
> Thank you for the hint, Fred. Gave it a try. Regrettably, the same result.
> There is nothing unusual in t/logs/error_log either.
Can
On 27.01.2011 18:08, Fred Moyer wrote:
Can you try the unofficial release candidate here?
http://people.apache.org/~phred/mod_perl-2.0.5-rc1.tar.gz
On Thu, Jan 27, 2011 at 6:39 AM, Alexander Aparzev
wrote:
Hi.
I have a problem installing mod_perl. Some tests fail.
Thank you for the hint,
Can you try the unofficial release candidate here?
http://people.apache.org/~phred/mod_perl-2.0.5-rc1.tar.gz
On Thu, Jan 27, 2011 at 6:39 AM, Alexander Aparzev
wrote:
> Hi.
>
> I have a problem installing mod_perl. Some tests fail.
>
> Configuration:
>
> - mod_perl 2.0.4
> - Linux version 2.6.26
marco.mase...@softeco.it wrote:
Hi André ,
use local::lib:
http://search.cpan.org/~apeiron/local-lib-1.008001/
it nicely handles your issue.
By the way, I tried to use local::lib "out of the box", and could not install
it.
I think it is because the Makefile relies on a GNU make, and the HPU
Octavian Rasnita wrote:
Another solution might be to install Perl in your home directory where
you have privileges, then to install any module for it.
--Octavian
- Original Message - From: "Adam Flott"
To:
Cc: "mod_perl list"
Sent: Sunday, January 23, 2011
Another solution might be to install Perl in your home directory where you
have privileges, then to install any module for it.
--Octavian
- Original Message -
From: "Adam Flott"
To:
Cc: "mod_perl list"
Sent: Sunday, January 23, 2011 11:00 PM
Subject: Re: qu
On Sun, 23 Jan 2011, André Warnier wrote:
Adam Flott wrote:
On Sun, 23 Jan 2011, André Warnier wrote:
My problem : I am trying to install a CPAN module, from CPAN, into a
"custom" location rather than the system perl locations.
This is a hpux system where I have no root access, and in this
Adam Flott wrote:
On Sun, 23 Jan 2011, André Warnier wrote:
My problem : I am trying to install a CPAN module, from CPAN, into a
"custom" location rather than the system perl locations.
This is a hpux system where I have no root access, and in this case
the specific module is XML::SAX.
I don
On Sun, 23 Jan 2011, André Warnier wrote:
My problem : I am trying to install a CPAN module, from CPAN, into a "custom"
location rather than the system perl locations.
This is a hpux system where I have no root access, and in this case the
specific module is XML::SAX.
I don't know how to fix
Thanks for the quick and prompt reply guys.
> $s->push_handlers as well as $s->add_config modify the server
> configuration object while $r->... modify the runtime request
> configuration. The server methods are intended to be used only at
> startup time (up to PerlPostConfig, perhaps PerlChild
On Fri 05 Dec 2008, Kostas Chatzikokolakis wrote:
> I'd like to ask what is the intended behaviour of
> Apache2::ServerUtil->server->push_handlers(PerlCleanupHandler =>
> ...) compared to
> Apache2::RequestUtil->request->push_handlers(PerlCleanupHandler =>
> ...)
>
> On my Ubuntu 8.10 (mod_perl 2
Hi.
Without being an expert, this is my 2 cent :
Kostas Chatzikokolakis wrote:
Hello,
I'd like to ask what is the intended behaviour of
Apache2::ServerUtil->server->push_handlers(PerlCleanupHandler => ...)
compared to
Apache2::RequestUtil->request->push_handlers(PerlCleanupHandler => ...)
O
On Mon, Nov 24, 2008 at 2:52 PM, André Warnier <[EMAIL PROTECTED]> wrote:
> Can you do a "return" from a "require"-d file, and what does it do exactly ?
Doing an exit from a file during a require() is not normally a
problem. Try it. It's kind of a bad programming practice, but Perl
will tolerate
Perrin Harkins wrote:
On Thu, Nov 20, 2008 at 4:50 PM, Bruce Johnson
<[EMAIL PROTECTED]> wrote:
This happens when the exit is triggered in the nested require file. which is
code like this:
# Check to see if the person was logged in, and if not go to login page and
# pass the url and parameters
On Thu, Nov 20, 2008 at 4:50 PM, Bruce Johnson
<[EMAIL PROTECTED]> wrote:
> This happens when the exit is triggered in the nested require file. which is
> code like this:
>
> # Check to see if the person was logged in, and if not go to login page and
> # pass the url and parameters
> if (!defined($
Bruce Johnson wrote:
We just moved some cgi scripts over from an ancient system to our new
server running modperl.
We have require files (that themselves have require files) that check
cookies and login status for these scripts.
If someone is not logged in, this triggers an exit our of one o
Thank you all so much. I have resolved the problems.
On Sat, Sep 6, 2008 at 3:51 AM, <[EMAIL PROTECTED]> wrote:
> Quoting [EMAIL PROTECTED]:
>
>> Hello,
>>
>> I want to generate a data file which should be downloaded by clients.
>> Rather than generate this file and put it in a web dir and tell
>
Quoting [EMAIL PROTECTED]:
Hello,
I want to generate a data file which should be downloaded by clients.
Rather than generate this file and put it in a web dir and tell
clients to download it, is there any way to generate the content
dynamicly and put it to cients? I mean I don't want to generat
On Fri 05 Sep 2008, [EMAIL PROTECTED] wrote:
> I want to generate a data file which should be downloaded by clients.
> Rather than generate this file and put it in a web dir and tell
> clients to download it, is there any way to generate the content
> dynamicly and put it to cients? I mean I don't
On Fri, Sep 5, 2008 at 12:09 PM, <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I want to generate a data file which should be downloaded by clients.
> Rather than generate this file and put it in a web dir and tell
> clients to download it, is there any way to generate the content
> dynamicly and put it
On Feb 10, 2008 12:37 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
> I am trying to change DocumentRoot because, currently I am using open() to
> load templates for my website. I have header, menu, footer in 3 seperate
> files, and I generate content like that. It works fine now, just not too
> dynamic
I do keep my templates in other directories also.
1. If your directories are relative to the document root, and you can
take advantage of this fact by rendering a variable to remember the
template path.
2. If your template directories have nothing in common with the document
root, then you can
Thanks for the quick response Perrin.
I am trying to change DocumentRoot because, currently I am using open() to
load templates for my website. I have header, menu, footer in 3 seperate
files, and I generate content like that. It works fine now, just not too
dynamic when I want to move the stuff
On Feb 10, 2008 12:24 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
> my $docroot = $r->document_root('/var/www/html/perl');
Why are you trying to change the DocumentRoot?
- Perrin
I am taking the Apache2::Request method, and will integrate the DB solution
as Chandra mentioned.
#!/usr/bin/perl -w
use strict;
use CGI;
use Apache2::Request;
use Data::Dumper;
print "Content-type: text/html\n\n";
my Apache2::Request $r = shift;
my $docroot = $r->document_root('/var/www/html/p
Perrin Harkins wrote:
On Feb 6, 2008 10:06 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
Currently, when I open a file I have to use the
absolute path (/var/www/appname/top.inc). Is it possible for me to use just
'top.inc'?
You can either use DocumentRoot
(http://perl.apache.org/docs/2.0/ap
On Feb 6, 2008 10:06 PM, Mag Gam <[EMAIL PROTECTED]> wrote:
> Currently, when I open a file I have to use the
> absolute path (/var/www/appname/top.inc). Is it possible for me to use just
> 'top.inc'?
You can either use DocumentRoot
(http://perl.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_
Another option:
my $HEADER= "$ENV{DOCUMENT_ROOT}/header.shtml";
- Original Message
From: Roberto C. Sánchez <[EMAIL PROTECTED]>
To: modperl@perl.apache.org
Sent: Wednesday, February 6, 2008 8:10:08 PM
Subject: Re: Question about open()
On
Wed,
Feb
06,
2008
On Wed, Feb 06, 2008 at 10:47:08PM -0500, Mag Gam wrote:
> What is global.asa?
>
> Sorry, I am somewhat new at this...
>
My mistake. I am using Apache::ASP (which is built on mod_perl) for
my pages. Sorry for the confusion.
Regards,
-Roberto
--
Roberto C. Sánchez
http://people.connexer.com/
What is global.asa?
Sorry, I am somewhat new at this...
On Feb 6, 2008 10:10 PM, Roberto C. Sánchez <[EMAIL PROTECTED]> wrote:
> On Wed, Feb 06, 2008 at 10:06:05PM -0500, Mag Gam wrote:
> > Hi All,
> >
> > I have been using mod_perl, and I have several perl-cgi files that use
> the
> > open().
On Wed, Feb 06, 2008 at 10:06:05PM -0500, Mag Gam wrote:
> Hi All,
>
> I have been using mod_perl, and I have several perl-cgi files that use the
> open(). I use this function to open/include my header, footer, basically a
> poor man template system. Currently, when I open a file I have to use the
-Original Message-
>From: Adam Prime <[EMAIL PROTECTED]>
>Sent: Jan 18, 2008 6:22 AM
>To: c chan <[EMAIL PROTECTED]>
>Cc: modperl@perl.apache.org
>Subject: Re: question on startup.pl overriding perl search path
>
>c chan wrote:
>> I use "PerlC
c chan wrote:
I use "PerlConfigRequire /var/www/html/mypath/startup.pl" in httpd.conf to
recompile all the CGIs. Inside startup.pl, I added the line:
use lib qw(. mylib);
To me amazement, after all the CGI is precompiled, they start to look into the "." and "mylib" path for loading Perl Modu
On Nov 16, 2007, at 7:27 PM, Jonathan Vanasco wrote:
On Nov 16, 2007, at 6:13 PM, Fred Moyer wrote:
I'm pretty sure you can use Apache::Clean as an output filter to do
this.
http://search.cpan.org/~geoff/Apache-Clean-2.00_7/
I believe the OP wanted the exact opposite
I *hope* this is f
On Nov 16, 2007, at 4:13 PM, Fred Moyer wrote:
Joseph Crotty wrote:
Want to set up tidy to automatically pretty print and indent HTML
(i.e., post PHP processing) and show errors via a mod_perl handler,
but not sure where to best do that? Output Filter?
I'm pretty sure you can use Apache:
On Nov 16, 2007, at 6:13 PM, Fred Moyer wrote:
I'm pretty sure you can use Apache::Clean as an output filter to do
this.
http://search.cpan.org/~geoff/Apache-Clean-2.00_7/
I believe the OP wanted the exact opposite
I *hope* this is for a dev-only use - as it would be really silly to
tid
Joseph Crotty wrote:
Want to set up tidy to automatically pretty print and indent HTML (i.e.,
post PHP processing) and show errors via a mod_perl handler, but not
sure where to best do that? Output Filter?
I'm pretty sure you can use Apache::Clean as an output filter to do this.
http://searc
1 - 100 of 217 matches
Mail list logo