mod_perl examples

2003-02-24 Thread Christopher Hahn
Hello, The examples from the O'Reilly book Writing Apache Modules with Perl and C do not compile because of a missing Apache::Src module. I am using Apache 2.0 + mod_perl-1.99_08 and can only find docs on this module under the 1.0 section of the mod_perl 1.0 area of the mod_perl website

Re: [MP2] Apache::Reload date bug

2003-02-24 Thread Ron Savage
On Wed, 19 Feb 2003 10:04:02 +1100, Stas Bekman wrote: Ron Savage wrote: On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote: Hi Folks In endeavouring to reproduce this problem, I've encountered another: main.cgi: -8- #!/usr/bin/perl use strict; use warnings; use CGI; use Dummy; #

[mp2] mod_perl2 + XML::LibXML = OK ?

2003-02-24 Thread Kurt George Gjerde
Hi, Are there any problems using XML::LibXML and XML::LibXSLT with mod_perl 2 (perl 5.8)? (everything is the latest versions as grabbed from Randy's site ;) win32). My primary concern is thread-safety (is XML::LibXML thread-safe?), but anything I should be aware about would be nice to know.

RE: child-parent memory access / mod_perl / shared mem /inter-proccess communication , etc..

2003-02-24 Thread Jim Morrison [Mailing-Lists]
Perrin, I suggest you look at IPC::MM or IPC::Shareable. IPC::Shareable is more transparent, but IPC::MM has better performance. IPC::MM simply creates a hash in shared memory and lets you write to it. Either of these will allow you to share data between processes. Thanks, I'll have a

Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread Gazi, Nasser (London)
Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade to Perl/5.8.0 will I have to upgrade mod_perl to a newer version as well? Thanks, NG

Re: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread Sven Geisler
Hi, mod_perl 1.27 is the latest stable version of mod_perl 1. You're fine. Regards, Sven. Am Mon, 2003-02-24 um 12.24 schrieb Gazi, Nasser (London): Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade to Perl/5.8.0

Re: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread David Wright
Hi, mod_perl 1.27 is the latest stable version of mod_perl 1. You're fine. Regards, Sven. Am Mon, 2003-02-24 um 12.24 schrieb Gazi, Nasser (London): Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade

RE: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread Gazi, Nasser (London)
Hi, mod_perl 1.27 is the latest stable version of mod_perl 1. You're fine. Regards, Sven. Am Mon, 2003-02-24 um 12.24 schrieb Gazi, Nasser (London): Hi, I have a server which has the following pre-installed on it: Apache/1.3.27 mod_perl/1.27 Perl/5.6.1 If I upgrade to

Apache::Session and Postgres

2003-02-24 Thread Grant McLean
I'm trying to use Apache::Session::Postgres and not having much luck. When I try to create a new session like this: use Apache::Session::Postgres; tie %sess, 'Apache::Session::Postgres', undef, { Handle = $self-dbh, Commit = 1 }; I get this error: Can't locate object method

Redirects: relative vs absolute

2003-02-24 Thread Grant McLean
I've seen a number of code examples for redirects which output a root-relative URI in the Location header. Eg: Location: /images/item1.gif Although browsers seem to accept this and do 'the right thing', the HTTP RFC seems to be pretty clear that the Location header must be an absolute URI.

Re: sanity check problem: Help installing mod_perl 1.27andapache 1.3.27

2003-02-24 Thread Charlie Smith
Yes. I used gcc to compile perl 5.8, DBI 1.30, DBD::Orace 1.12. Then as part of this particular install, I've installed HTML-Parser-3.27, URI-1.23, URI-1.22, libwww-perl-5.69. I did have similar type of problem with perl 5.8 install. I changed all file containing 'WI,-E' to not use ',-E'.

Re: mod_perl examples

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 00:14, Christopher Hahn wrote: The examples from the O'Reilly book Writing Apache Modules with Perl and C do not compile because of a missing Apache::Src module. I am using Apache 2.0 + mod_perl-1.99_08 and can only find docs on this module under the 1.0 section of

Re: Redirects: relative vs absolute

2003-02-24 Thread Randal L. Schwartz
Grant == Grant McLean [EMAIL PROTECTED] writes: Grant I've seen a number of code examples for redirects which output a Grant root-relative URI in the Location header. Eg: Grant Location: /images/item1.gif If that's coming out from a CGI or Apache::Registry script, the browser never sees it,

Re: Apache::Session and Postgres

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 07:09, Grant McLean wrote: I get this error: Can't locate object method get_lock_manager via package Apache::Session::Postgres And indeed, that method does not seem to be defined in any of the modules which Apache::Session::Postgres inherits from. I don't see

RE: child-parent memory access / mod_perl / shared mem/inter-proccess communication , etc..

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 05:40, Jim Morrison [Mailing-Lists] wrote: Hmm.. Yes, it sounds pretty sketchy to me too! Immediately what I am playing with is the idea of keeping parsed XML (XML::LibXML)in memory between requests. Is this a completely barmy idea? Caching is a good idea, but it's not

Re: Redirects: relative vs absolute

2003-02-24 Thread Mithun Bhattacharya
--- Grant McLean [EMAIL PROTECTED] wrote: Is there an easy way to get the absolute URI of the current request to use with Apache::URI-parse to translate a relative URI to absolute? From perldoc URI - $uri = URI#8722;new_abs( $str, $base_uri ) This constructs a

Re: sanity check problem: Help installing mod_perl 1.27 andapache1.3.27

2003-02-24 Thread Ged Haywood
Hello again Charlie, On Mon, 24 Feb 2003, Charlie Smith wrote: Yes. I used gcc to compile perl 5.8, DBI 1.30, DBD::Orace 1.12. And Apache and mod_perl? I did have similar type of problem with perl 5.8 install. I changed all file containing 'WI,-E' to not use ',-E'. This allowed me to

Re: Upgrading to perl 5.8.0 (newbie question)

2003-02-24 Thread wsheldah
No, but you will need to recompile it plus lots of other modules, basically any module that includes XS code. Consider using CPAN's autobundle feature. :-) Wes Sheldahl Gazi, Nasser (London) [EMAIL PROTECTED] on 02/24/2003 06:24:32 AM To:[EMAIL PROTECTED] cc: Subject:Upgrading to

Re: sanity check problem: Help installing mod_perl1.27andapache 1.3.27

2003-02-24 Thread Charlie Smith
Hi Ged, apache and mod_perl at 1.3.19 and 1.25, resp. I came on board afterapache and mod_perlhad been installed via binaries off of a cd. It is part of my task to upgrade these and try and get rid of some problems with mod_perl. Current configuration: GCC 2.95, PERL 5.8, DBI 1.3 and

RE: child-parent memory access / mod_perl / shared mem /inter-proccesscommunication , etc..

2003-02-24 Thread Matt Sergeant
On Mon, 24 Feb 2003, Jim Morrison [Mailing-Lists] wrote: Hmm.. Yes, it sounds pretty sketchy to me too! Immediately what I am playing with is the idea of keeping parsed XML (XML::LibXML)in memory between requests. Is this a completely barmy idea? Probably, because you'll confuse

Re: Redirects: relative vs absolute

2003-02-24 Thread Geoffrey Young
Grant McLean wrote: I've seen a number of code examples for redirects which output a root-relative URI in the Location header. Eg: Location: /images/item1.gif Although browsers seem to accept this and do 'the right thing', the HTTP RFC seems to be pretty clear that the Location header must be

Re: sanity check problem: Help installing mod_perl1.27andapache 1.3.27

2003-02-24 Thread Charlie Smith
So Ged, How long before something like this gets into the build process and out as a patch? Or is there something I could do in the interim? "Ged Haywood" [EMAIL PROTECTED] 02/24/03 10:03AM Hello again Charlie,On Mon, 24 Feb 2003, Charlie Smith wrote: Yes. I used gcc to compile perl 5.8,

Re: sanity check problem: Help installing mod_perl 1.27andapache1.3.27

2003-02-24 Thread Ged Haywood
Hi Charlie, On Mon, 24 Feb 2003, Charlie Smith wrote: How long before something like this gets into the build process and out as a patch? Or is there something I could do in the interim? As it seems that you're the only one having the problem, I meant that *you* might fix it and submit a

ANNOUNCE: Loggerithim 6.3.0

2003-02-24 Thread Cory 'G' Watson
Hello again, Loggerithim 6.3.0 is now available, ChangeLog follows: - 6.3.0 * Use page that returns an image/png, rather than writing one to the filesystem * Added filesystem code to the OS X agent, bringing it near completion. * Use the IP of a host, then fallback to supplied hostname

Re: sanity check problem: Help installing mod_perl1.27andapache1.3.27

2003-02-24 Thread Charlie Smith
Ok. I'll give it a whack or hack or whatever you want to call it. Where are the Wl flags loaded from for the mod_perl stuff? "Ged Haywood" [EMAIL PROTECTED] 02/24/03 12:00PM Hi Charlie,On Mon, 24 Feb 2003, Charlie Smith wrote: How long before something like this gets into the build process

RE: child-parent memory access / mod_perl / shared mem / inter-proccess communication , etc..

2003-02-24 Thread Jim Morrison [Mailing-Lists]
Hmm.. Yes, it sounds pretty sketchy to me too! Immediately what I am playing with is the idea of keeping parsed XML (XML::LibXML)in memory between requests. Is this a completely barmy idea? Probably, because you'll confuse XML::LibXML's garbage collector. Sniff.. I've kind of got

Re: child-parent memory access / mod_perl / shared mem / inter-proccesscommunication , etc..

2003-02-24 Thread Perrin Harkins
Jim Morrison [Mailing-Lists] wrote: Sniff.. I've kind of got something working... Enough such that one httpd can request an XYZ, and if a second httpd comes along a little later and requests the same XYZ then it will get it from shared memory. I hope you used one of the modules I suggested rather

RE: Redirects: relative vs absolute

2003-02-24 Thread Grant McLean
Geoffrey Young wrote: Grant McLean wrote: Is there an easy way to get the absolute URI of the current request to use with Apache::URI-parse to translate a relative URI to absolute? to generate a URI that points to the same server as the current request it's best to use Apache::URI

RE: child-parent memory access / mod_perl / shared mem / inter-proccess communication , etc..

2003-02-24 Thread Jim Morrison [Mailing-Lists]
Jim Morrison [Mailing-Lists] wrote: Sniff.. I've kind of got something working... Enough such that one httpd can request an XYZ, and if a second httpd comes along a little later and requests the same XYZ then it will get it from shared memory. I hope you used one of the modules I

[DIGEST] mod_perl digest 2003/02/10

2003-02-24 Thread jgsmith
-- mod_perl digest February 10, 2002 - February 23, 2003 -- Recent happenings in the mod_perl world... Features

Re: child-parent memory access / mod_perl / shared mem / inter-proccess communication , etc..

2003-02-24 Thread Matt Sergeant
On Monday, Feb 24, 2003, at 19:47 Europe/London, Jim Morrison [Mailing-Lists] wrote: What I thought was that if I kept the handle to the parsed XML open somewhere else then I would be able to use it.. so a separate process does the parsing and keeps hold of the handles of the currently 'shared'

Re: child-parent memory access / mod_perl / shared mem / inter-proccesscommunication , etc..

2003-02-24 Thread Perrin Harkins
Matt already answered most of your questions. Jim Morrison [Mailing-Lists] wrote: And I'm getting some mileage out of experimenting with this anyhow - if it doesn't work for LibXML it looks like it could be very useful for other stuff, and if it ever works bug-free(-ish) I'd like to give

Re: [MP2] Apache::Reload date bug

2003-02-24 Thread Stas Bekman
Ron Savage wrote: On Wed, 19 Feb 2003 10:04:02 +1100, Stas Bekman wrote: Ron Savage wrote: On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote: Hi Folks In endeavouring to reproduce this problem, I've encountered another: main.cgi: -8- #!/usr/bin/perl use strict; use warnings; use

Re: Redirects: relative vs absolute

2003-02-24 Thread Stas Bekman
Geoffrey Young wrote: to generate a URI that points to the same server as the current request it's best to use Apache::URI methods, which are pretty easy. my $uri = Apache::URI-parse($r); $uri-path('/some/new/document.html'); my $absolute_uri = $uri-unparse; note that calling path() (or

Re: sanity check problem: Help installing mod_perl1.27andapache1.3.27

2003-02-24 Thread Ged Haywood
Hi Charlie, On Mon, 24 Feb 2003, Charlie Smith wrote: Ok. I'll give it a whack or hack or whatever you want to call it. Where are the Wl flags loaded from for the mod_perl stuff? Actually they're from the Apache source, the mod_perl configuration may hack them. The tool I use most for

Apache module

2003-02-24 Thread Carl Holm
Does anyone know where to find the Apache module mentioned (use Apache;) in the tracking users with cookies code example code found in the Apache::Session manpage? Thanks, Carl Holm, [EMAIL PROTECTED]

Re: Apache module

2003-02-24 Thread Perrin Harkins
On Mon, 2003-02-24 at 19:49, Carl Holm wrote: Does anyone know where to find the Apache module mentioned (use Apache;) in the tracking users with cookies code example code found in the Apache::Session manpage? It's part of mod_perl. If you have installed mod_perl 1.x, you have it.

Re: Apache module

2003-02-24 Thread Perrin Harkins
[please keep it on the list] Carl Holm wrote: I'm running mod_perl2 The examples in the documentation of Apache::Session are for mod_perl 1.x. If you want to run them under mod_perl 2, you have to port them or use the backward compatibility functions. Documentation is on the perl.apache.org

Re: [MP2] Apache::Reload date bug

2003-02-24 Thread Ron Savage
On Tue, 25 Feb 2003 09:40:05 +1100, Stas Bekman wrote: And what your error_log says? Nothing is output to the error_log. -- Cheers Ron Savage, [EMAIL PROTECTED] on 25/02/2003 http://savage.net.au/index.html