Issac Goldstand wrote:
[...]
(Starting
with mor_perl 2)... I'm toying with the idea of starting the porting
tutorial, but I want to make sure it's written well for clueless people
(which I probably still at least half count as :-)) and with accurate
content.
porting or starting? We already have a
- Original Message -
From: "Stas Bekman" <[EMAIL PROTECTED]>
To: "Issac Goldstand" <[EMAIL PROTECTED]>
> Issac Goldstand wrote:
> > Looking at it now, I tend to agree... I just have a vague recollection
of
> > my first mod_perl 2 handler (Written only 2 weeks ago, though I dabbled
with
Issac Goldstand wrote:
Right. Could you possibly clarify the difference between SetHandler
perl-script and SetHandler modperl? I'm still not sure I've got the
straight of it yet...
You must be kidding ;) Have you read the sections at the URL posted below?
Stas Bekman wrote:
Sreeji K Das wrote:
Anyway, all this started from an attempt to access env. vars from legacy
scripts running under registry. What is the easiest way to get env. var
access without the accompanying performance penalty that mod_perl
documentation talks about?
If you need to have your scripts run unmodified, have Per
Right. Could you possibly clarify the difference between SetHandler
perl-script and SetHandler modperl? I'm still not sure I've got the
straight of it yet...
Issac
Stas Bekman wrote:
> Sreeji K Das wrote:
> [...]
> You need to use 'SetHandler perl-script' for that, see:
> http://perl.apache.
Following demonstrates the problem:
$ cat /tmp/test.conf
@Include = "/tmp/test1.conf";
Listen 43499
$ cat /tmp/test1.conf
$Port = 42480;
$ httpd -X -f /tmp/test.conf
Syntax error on line 7 of /tmp/test.conf:
Use of uninitialized value in subroutine entry at
/tmp/CVS/virgin/modperl-2.0/blib
Gedanken wrote:
I know this is not of much help, but I have had situations where a badly
terminating process would prevent subsequent processes from using that
port. on windows, i never found a solution other than to reboot. on
solaris 7, i never found a solution other than to wait 8 minutes.
Hi there,
On Thu, 3 Jul 2003, Ranga Nathan wrote:
> >In other words there's an Apache still running
>
> The 'top' output is :
> [snip]
> How can I get a list of ports being used so I can kill the processes?
As I said, there may be more wrong than just what's obvious. It looks
like the obvious
I know this is not of much help, but I have had situations where a badly
terminating process would prevent subsequent processes from using that
port. on windows, i never found a solution other than to reboot. on
solaris 7, i never found a solution other than to wait 8 minutes. I did
some rea
he/bin/apachectl start
good luck,
bill
-Original Message-
From: Ranga Nathan [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 1:51 PM
Cc: mod_perl Mailing List
Subject: Re: Apache config problem .. please help
Ged Haywood wrote:
>Hi there,
>
>On Thu, 3 Jul 2003, Dennis
Ged Haywood wrote:
Hi there,
On Thu, 3 Jul 2003, Dennis Stout wrote:
I made a simple mod_perl change to the config and when restarting Apache
I got this error:
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:2250
no listening sockets available, shutting down
/usr/lo
Hi there,
On Thu, 3 Jul 2003, Dennis Stout wrote:
> > I made a simple mod_perl change to the config and when restarting Apache
> > I got this error:
> > (98)Address already in use: make_sock: could not bind to address
> > 0.0.0.0:2250
> > no listening sockets available, shutting down
> > /usr/l
> I made a simple mod_perl change to the config and when restarting Apache
> I got this error:
> (98)Address already in use: make_sock: could not bind to address
> 0.0.0.0:2250
> no listening sockets available, shutting down
> /usr/local/apache/bin/apachectl: line 87: 16512 Segmentation fault
I made a simple mod_perl change to the config and when restarting Apache
I got this error:
(98)Address already in use: make_sock: could not bind to address
0.0.0.0:2250
no listening sockets available, shutting down
/usr/local/apache/bin/apachectl: line 87: 16512 Segmentation fault
$HTTPD $A
At 2:22 PM -0500 2/19/02, Stephen Reppucci wrote:
>So, if you virtual host was something like:
>
>Listen 192.168.0.100:8080
>
> ServerName www.foo.com
> ServerAlias foo.com
> Port 80
> ...
>
>
>Then (assuming your bigip sends requests for foo.com to
>192.168.0.100:8080) generated urls will be
Yes, just add a 'Port 80' line to your VirtualHost section.
While many folks assume that this directive is for telling apache
which port to listen on (it's not -- the Listen directive does
that...), it's actually a setting that instructs Apache to use the
named port in any generated urls. (At l
Robert Landrum wrote:
>
> I'm trying to do something really simple and trying to avoid writing
> an Modperl handler to do it.
>
> We have a website behind a bigip running on port 8080. When someone
> requests a URL that doesn't end with a slash, it's redirected to
> http://host:8080/path/ . I
On Tue, Feb 19, 2002 at 01:41:44PM -0500, Robert Landrum wrote:
> I'm trying to do something really simple and trying to avoid writing
> an Modperl handler to do it.
>
> We have a website behind a bigip running on port 8080. When someone
> requests a URL that doesn't end with a slash, it's red
I'm trying to do something really simple and trying to avoid writing
an Modperl handler to do it.
We have a website behind a bigip running on port 8080. When someone
requests a URL that doesn't end with a slash, it's redirected to
http://host:8080/path/ . I tried turning off UseCononicalName
On Mon, Feb 04, 2002 at 04:47:27PM -0500, Peter Beardsley wrote:
> Is is possible to modify the in-memory apache configuration at
> runtime? I've seen modules that allow you to parse and modify the
> httpd.conf file, but that's not really what I'm looking for. In particular
> I want to set th
Is is possible to modify the in-memory apache configuration at
runtime? I've seen modules that allow you to parse and modify the
httpd.conf file, but that's not really what I'm looking for. In particular
I want to set the value of ErrorDocument.
Thanks,
Peter Beardsley
Appropriate Solutions
-- Rafiq Ismail <[EMAIL PROTECTED]>
> There are some really graphic intensive pages here, however I'm not sure
> if Keep alive is good when there's lots of contention for pages. Should
> I:
>i) disable keep alive?
>
> ii) reduce the keep alive time out ?
>
>iii) up my nu
Rafiq Ismail <[EMAIL PROTECTED]> writes:
>iv) Something else?
Two tier Apache.
Increase shareability.
Read the guide.
--
David Hodgkinson, Wizard for Hirehttp://www.davehodgkinson.com
Editor-in-chief, The Highway Star http://www.deep-purple.com
All the Purple Family T
I agree with the response that you need to do some statistics
gathering to try to accurately isolate the cause of your problems.
I *don't* agree with the other suggestion that was made to UP the
keepalive to 15-20 seconds (the default that apache comes with is 5,
IIRC).
Here's why: Assuming tha
> Got a server which is getting hit really bad.
> Have to keep it up.
You didn't really give us enough information to guess at what your problem
is. You describe one symptom in this message: slow ping times. What else
is wrong? Are pages loading slowly? Failing to load? What applications
are
>I know this is a bit off topic, but I could use some immediate advise on
>server config?
>
>
>Got a server which is getting hit really bad.
>Have to keep it up. I've got:
>
>
>P Timeout 300
>
># Keepalive, better on this server...
>KeepAlive On
>MaxKeepAliveRequests100
>KeepAli
Your problem may be a network problem, not Apache/Mod_perl.
Check with your upstream provider and have them do a bandwidth
analysis. Here is why.
I've strobed your network and the return time latency seems to be high.
It would appear that you have about a 28 ms latency overhead in/out of
yo
I know this is a bit off topic, but I could use some immediate advise on
server config?
Got a server which is getting hit really bad.
Have to keep it up. I've got:
P Timeout 300
# Keepalive, better on this server...
KeepAlive On
MaxKeepAliveRequests100
KeepAliveTimeout
On Mon, May 07, 2001 at 09:32:23PM -0400, Philippe M . Chiasson wrote:
> On Mon, May 07, 2001 at 05:35:57PM -0700, Jonathan Hilgeman wrote:
> > I've been trying to do this for some time but can't figure out how.
> >
> > UseCanonicalName Off
> >
> > if($HTTP_HOST =~ s/(?:www\
On Mon, May 07, 2001 at 05:35:57PM -0700, Jonathan Hilgeman wrote:
> Hi,
> I've been trying to do this for some time but can't figure out how.
> Basically I want a setup where anyone at www.UserName.domain.com or
> UserName.domain.com will have their DocumentRoot set to
> /www/httpd/html/UserName.
$UserName)
{
$VirtualHost = .
}
Can someone give me a good example of how to do that?
Thanks!
Jonathan
-Original Message-
From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 5:36 PM
To: '[EMAIL PROTECTED]'
Subject: Sections i
lt;[EMAIL PROTECTED]>
Sent: Monday, May 07, 2001 8:35 PM
Subject: Sections in Apache Config
> Hi,
> I've been trying to do this for some time but can't figure out how.
> Basically I want a setup where anyone at www.UserName.domain.com or
> UserName.domain.com will have their Do
Hi,
I've been trying to do this for some time but can't figure out how.
Basically I want a setup where anyone at www.UserName.domain.com or
UserName.domain.com will have their DocumentRoot set to
/www/httpd/html/UserName. So far I've tried this:
UseCanonicalName Off
hi ,
I have installed Apache 1.3.12 and mod_perl 1.24 on redhat linux 7.0 with Perl5.6 .
But getting the following error while configuring the httpd.conf file . Pl help me.
error
Canot locate loadable object for module Apache::Constants in @INC( @INC contains
/usr/loacl/lib/perl5/5.
This depend on the info you want as certain tables
of info have different methods. For the port you can use:
my $port = $r->get_server_port;
I'm not sure you can get the actaul pass file used
for the protected dir howevere you can recover the authentication result
and the pass used to ge
How can I get at the value of Apache config directive like AuthUserFile
or Port from within my mod_perl code? I don't want to pass the
values using PerlSetVar because that would require the sysadmin to edit
both the Apache config directive and my PerlSetVar if he makes a change -
too error
On Tue, 30 Jan 2001, Fritz Heinrichmeyer wrote:
> perl Makefile.PL seem not to honor the APACHE_SRC=.../... switch. I was
> asked again and again ...
well, what value did you give APACHE_SRC= exactly? and where is your
mod_perl and apache trees?
> I used the FreeBSD-Layout, but somewhere som
Hi there,
On Tue, 30 Jan 2001, Fritz Heinrichmeyer wrote:
[snip]
> perl Makefile.PL seem not to honor the APACHE_SRC=.../... switch.
[snip]
> The httpd server wanted to read
> /usr/local/etc/apache/etc/apache/httpd.conf.
You could try running 'perl Makefile.PL' from
/usr/local/mod_perl
with
Hello, we use freebsd-4.2 and i tried to install an apache server with
ssl, php4 and mod_perl compiled statically in
(why? to keep some crufty php scripts going, and to be able to load
embperl on server startup).
My orientation was the excellent mod_perl documentation but ..
perl Makefile.PL se
> -Original Message-
> From: Ben Heuer [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 30, 2000 2:35 AM
> To: modperl
> Subject: Apache config control using Perl?
>
>
> Hello:
[snip]
> 2. How can I customise the line that gets added to the
>
Hello:
I wonder if I need to do it using modperl, or can I do it in Apache's own
error logging. What I need is to log errors that occur with my website
(including access stuff, database errors - everything) that are seen by an
average user.
I would appreciate if someone could help me with this:
On Thu, 24 Aug 2000, Stas Bekman wrote:
> > Is it just me or has there been discussionof something along the lines of
> > Apache::Config here before? Where might I accquire it? I could not find it
> > on CPAN...
>
> It will appear in mod_perl-2.0 for sure, and
> Is it just me or has there been discussionof something along the lines of
> Apache::Config here before? Where might I accquire it? I could not find it
> on CPAN...
It will appear in mod_perl-2.0 for sure, and it's on the todo list of
mod_perl-1.x, so if you come up with a patch t
Is it just me or has there been discussionof something along the lines of
Apache::Config here before? Where might I accquire it? I could not find it
on CPAN...
; UseCanonicalName Off
>
> And parse it case-insensitively, returning a ref to a hash:
>
> my $ac = new Apache::Config;
> my $conf = $ac->readconf($configfile);
> print $conf->{servername}; # = "www.mydomain.com";
>
o parse various kinds of config file. But I'll
NW] > be a happy user to have more spesific Apache related in this regard.
NW]
NW] Yeah, I checked out AppConfig, and I actually emailed the author about
NW] modifying it a little so I could use it as a base class possibly for
NW] Apache::Config
have more spesific Apache related in this regard.
Yeah, I checked out AppConfig, and I actually emailed the author about
modifying it a little so I could use it as a base class possibly for
Apache::Config. Unfortunately, I haven't heard anything back yet.
AppConfig would be a great base class,
James-
You and are are saying the same thing, just with different terminology.
I agree completely. :-)
-Nate
James G Smith wrote:
>
> Nathan Wiger <[EMAIL PROTECTED]> wrote:
> >
> > UseCanonicalName On# = 1
> > UseCanonicalName Off # = 0
> > #UseCanonicalName On# = undef (com
main.com
NW] UseCanonicalName Off
NW]
NW] And parse it case-insensitively, returning a ref to a hash:
NW]
NW] my $ac = new Apache::Config;
NW] my $conf = $ac->readconf($configfile);
NW] print $conf->{servername}; # = "www.mydomain.com";
NW] print $conf->{usecanonic
Nathan Wiger <[EMAIL PROTECTED]> wrote:
>
> UseCanonicalName On# = 1
> UseCanonicalName Off # = 0
> #UseCanonicalName On# = undef (commented out)
>
>That way, the logic in your script/module/whatever can set a default
>value:
>
> if ( ! defined($conf->{usecanonicalname}) ) {
>
> > Perhaps
> >
> > 3. multi-level hash, i.e.
> >$conf->{directory}->{'/'}->{sethandler}
> >
> > This is, afaik, more in-line with what the ... sections do. I
> > would suggest making it so the output of this module could easily be fed into
> > the mod_perl configuration engine
James-
> You might want to reconsider the usecanonicalname setting. The hash element
> should exist if and only if it appears in the configuration file. It should
> be defined if and only if it has an argument in the configuration file.
>
> Thus, the following results:
>
> UseCanonicalNam
anonicalName Off
>
>And parse it case-insensitively, returning a ref to a hash:
>
>my $ac = new Apache::Config;
>my $conf = $ac->readconf($configfile);
>print $conf->{servername}; # = "www.mydomain.com";
Nathan Wiger <[EMAIL PROTECTED]> wrote:
>Hi all-
>
>I've written a module that can parse the Apache httpd.conf config file
>(and in fact any Apache-like config file). It will take a set of
>directive like:
[snip]
>I am also finishing up the ability to parse within contexts, such as
> and . I am
hash:
my $ac = new Apache::Config;
my $conf = $ac->readconf($configfile);
print $conf->{servername}; # = "www.mydomain.com";
print $conf->{usecanonicalname}; # = 0 (not undef so can test
#for defined() still)
I
55 matches
Mail list logo