Re: Installing global handler breaks CGI

2001-03-09 Thread Stas Bekman
On Fri, 9 Mar 2001, Andrew Ho wrote: > Stas, > > SB>Try adding: > SB> > SB> Options +ExecCGI > SB> > > This is a fine fix; I'm actually curious, now that it's been brought up, > as to why ScriptAlias suddenly breaks. In my config if I have this outside > of a , , or other container: > > >

Re: Installing global handler breaks CGI

2001-03-09 Thread Andrew Ho
Stas, SB>Try adding: SB> SB> Options +ExecCGI SB> This is a fine fix; I'm actually curious, now that it's been brought up, as to why ScriptAlias suddenly breaks. In my config if I have this outside of a , , or other container: SetHandler perl-script PerlHandler Apache::Reg

Re: signal delivered to a different process?

2001-03-09 Thread Stas Bekman
On Fri, 9 Mar 2001, Richard Chen wrote: > This is pretty weird situation. I have installed a signal > handler in startup.pl which showed that the signal is > delivered to a different process! > > Here are the demo files: > > $ cat conf/startup.pl > #!/usr/local/bin/perl > use lib '/usr/local/apac

Re: Newbie Questions

2001-03-09 Thread Stas Bekman
On Fri, 9 Mar 2001, julie wang wrote: > HI! > > I'm new to Modperl. I been programming as a perl programmer (not the best, > but I'm trying to improve) and been told to try and code using mod_perl. I > got ORA's book on Apache Modules and was reading about how to code using > mod_perl. Am I ri

Re: Installing global handler breaks CGI

2001-03-09 Thread Stas Bekman
On Fri, 9 Mar 2001, Fred Toth wrote: > Hi, > > I'm lost on this one. I'm trying to install a simple handler that > will get called on every request. My first try at this is: > > > SetHandler perl-script > PerlAccessHandler My::Access > > > Right now the handler does nothing except write to

Re: [OT] Dynamic package name

2001-03-09 Thread Andrew Ho
Andrew, AM>Is there any way to tell perl that from now on the namespace is AM>$namespace? `package' does not accept scalars, and its scope is AM>eval block, so if I use eval to pass scalar to "package" I have to AM>include entire program text into that eval as well. You can kind of do this via X

Re: virtual hosts on Red Hat

2001-03-09 Thread hunter
Take a look at the "ServerName" parameter in each of the httpd.conf files of each virtual host. These must match what you have in your hosts file in order for what you are trying to do, to work. HTH Michael Weiner Systems Administrator/Partner The UserFriendly Network -- Boris Lipsman wrote: >

Dynamic package name

2001-03-09 Thread Andrew Maltsev
Hi! Strictly speaking this has nothing to do with mod_perl, I just got into that problem writing mod_perl application. I want some module to decide its namespace at loading time. Obviously it can be solved with one big eval over entire module text, but this is not an option in my case - the code

virtual hosts on Red Hat

2001-03-09 Thread Boris Lipsman
Hi guys Thanks for any help on advance I have Linux RedHat 6.1 and Apache 1.3.14..mod_perl/1.24-01 I am trying to run 3 name-based virtual hosts on my machine that is a standlone machine I have 3 files in my /usr/local/apache/conf/httpd.conf directory virthost1.conf, virthost2.conf, a

Re: wheris @INC defined ?

2001-03-09 Thread Asaf Klibansky
define a system variable caleld PERL5LIB which will hold all of the paths to perl libs. -Original Message- From: Henri Delebecque <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] <[EMAIL PROTECTED]> Date: Tuesday, March 06, 2001 12:41 AM Subject: wheris @INC defined ? >hello, > >I'm a mod_perl

Re: mod_perl shared memory with MM

2001-03-09 Thread Christian Jaeger
For all of you trying to share session information efficently my IPC::FsSharevars module might be the right thing. I wrote it after having considered all the other solutions. It uses the file system directly (no BDB/etc. overhead) and provides sophisticated locking (even different variables fr

Re: These students are asking for help. Be nice to them.

2001-03-09 Thread Buddy Lee Haystack
If this idea catches on, some of us are going to have to change careers. ;-) Galactic Geek wrote: > > *** Please help a group of students gain practical experience *** > > We are a group of students with varying degrees of technical expertise. We > are studying computer programming in an engi

Re: Newbie Questions

2001-03-09 Thread ___cliff rayman___
julie wang wrote: > > replace that with if it is advise not to do so when using mod_perl?? The > FAQ suggests using "goto" kind of statement. I rather not use that. What > other alternatives do I have? Thanks! > which FAQ suggested a goto statement? if u are thinking that something like: ret

These students are asking for help. Be nice to them.

2001-03-09 Thread Galactic Geek
*** Please help a group of students gain practical experience *** We are a group of students with varying degrees of technical expertise. We are studying computer programming in an engineering college in India and want to gain some practical experience. In a bid to gain experience, we are offer

Re: Newbie Questions

2001-03-09 Thread Sean C. Brady
julie wang wrote: > HI! > > I'm new to Modperl. I been programming as a perl programmer (not the best, > but I'm trying to improve) and been told to try and code using mod_perl. I > got ORA's book on Apache Modules and was reading about how to code using > mod_perl. > Am I right to assume mod_

Re: Newbie Questions

2001-03-09 Thread Pierre Phaneuf
julie wang wrote: > I'm new to Modperl. I been programming as a perl programmer (not the best, > but I'm trying to improve) and been told to try and code using mod_perl. I > got ORA's book on Apache Modules and was reading about how to code using > mod_perl. Am I right to assume mod_perl is mo

Newbie Questions

2001-03-09 Thread julie wang
HI! I'm new to Modperl. I been programming as a perl programmer (not the best, but I'm trying to improve) and been told to try and code using mod_perl. I got ORA's book on Apache Modules and was reading about how to code using mod_perl. Am I right to assume mod_perl is more Apache conf. than a

signal delivered to a different process?

2001-03-09 Thread Richard Chen
This is pretty weird situation. I have installed a signal handler in startup.pl which showed that the signal is delivered to a different process! Here are the demo files: $ cat conf/startup.pl #!/usr/local/bin/perl use lib '/usr/local/apache/modules'; $SIG{USR2}=sub { print STDERR "Recei

Re: Testing problems with apache::asp 2.03

2001-03-09 Thread Joshua Chamas
Gareth Westwood wrote: > > Could you please advise me of what is going wrong (am I being to > impatient) and how I can go about fixing the problem. I am still a little > bit of a newbie so please don't be to technical (or if you are, could you Hold onto your patience, these things can be

Re: Forbidden ASP.

2001-03-09 Thread Joshua Chamas
Ryan McKee wrote: > > Hi everyone, > At first I had problem figuring out that there were actually 2 servers > running, a perl server on 8200 and the regular server on 80. I changed > the mod-perl to run on port 80 along with httpd. I also set the > documentroot's to both being /var/www/html/.

Re: 1 Billion Bug 1BB - [OT] UNIX timestamp hits 1,000,000,000 thisyear!

2001-03-09 Thread Robert Landrum
I can see the headlines now "New Miracle Drug to Extend Life by 310 Years" It's those exact same thoughts that got us in to trouble in 2000. Oh well Rob At 11:04 AM -0500 3/9/01, Bill Desjardins wrote: >On Fri, 9 Mar 2001, Gerd Kortemeyer wrote: > >> I will open my consulting business

RE: Passing Objects with PerlSetVar

2001-03-09 Thread Geoffrey Young
> -Original Message- > From: Nikolaus Rath [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 09, 2001 12:29 PM > To: Geoffrey Young > Subject: Re: Passing Objects with PerlSetVar > > > I don't thing that will work. dir_config() is an > Apache::Table object, > > which stringifies everyt

why can't my apache load libperl.so?

2001-03-09 Thread Steven Sweet
I just built Apache 1.3.19 on a RedHat 6.2 machine with mod_so enabled. There had previously been RedHat secureweb installed (apache-ssl 1.3.12), but that had been removed before I started this process. Immediately after being built, the Apache server started fine. I then built mod_info using a

RE: Installing global handler breaks CGI

2001-03-09 Thread Geoffrey Young
> -Original Message- > From: Fred Toth [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 09, 2001 1:03 PM > To: [EMAIL PROTECTED] > Subject: Installing global handler breaks CGI > > > Hi, > > I'm lost on this one. I'm trying to install a simple handler that > will get called on every r

Re: Read on closed file handle?

2001-03-09 Thread Pierre Phaneuf
David Jourard wrote: > Found my error after I had my sandwich. Lesson to keep from this: eat your sandwich! :-) -- Pierre Phaneuf http://www3.sympatico.ca/pphaneuf/

Installing global handler breaks CGI

2001-03-09 Thread Fred Toth
Hi, I'm lost on this one. I'm trying to install a simple handler that will get called on every request. My first try at this is: SetHandler perl-script PerlAccessHandler My::Access Right now the handler does nothing except write to the log and return DECLINED. It works fine. However, wha

Re: [Mason] Segmentation Fault

2001-03-09 Thread Karl M. Hegbloom
I've also been experiencing segmentation faults. I reported it, yesterday, some, not fully detailed, (ie: no stack trace since no debugging symbols...) to the mod_perl mailing list. What I did was run "gdb", then used the "ps wauxf" output to get the PID of an Apache child process. I used

(Beginner) Problems with mod_perl

2001-03-09 Thread John Whitnack
We are running Apache 1.3.17 and mod_perl 1.25 on Solaris 7. I have just installed mod_perl onto my server and it has created a big problem. When I type http://my.domain.name I get a error message: The document contained no data. Try again later, or contact the server's administrator And

Re: Read on closed file handle?

2001-03-09 Thread David Jourard
Hi, Found my error after I had my sandwich. The files weren't there. oops David At 12:07 PM 3/9/01 -0600, David Jourard wrote: >Hi, > >In my startup.pl I'm calling a function that initializes read-only >variables - read in from several text files. > >After it reads in the first it fails on

Re: Read on closed file handle?

2001-03-09 Thread Stas Bekman
On Fri, 9 Mar 2001, David Jourard wrote: > Hi, > > In my startup.pl I'm calling a function that initializes read-only > variables - read in from several text files. > > After it reads in the first it fails on every one thereafter with the message: > > Read on closed filehandle at lpinit.pl line

Read on closed file handle?

2001-03-09 Thread David Jourard
Hi, In my startup.pl I'm calling a function that initializes read-only variables - read in from several text files. After it reads in the first it fails on every one thereafter with the message: Read on closed filehandle at lpinit.pl line 78 Read on closed filehandle at lpinit.pl line 99 et

Forbidden ASP.

2001-03-09 Thread Ryan McKee
Hi everyone, At first I had problem figuring out that there were actually 2 servers running, a perl server on 8200 and the regular server on 80. I changed the mod-perl to run on port 80 along with httpd. I also set the documentroot's to both being /var/www/html/. I've been testing stuff in

Testing problems with apache::asp 2.03

2001-03-09 Thread Gareth Westwood
Hi Everyone, I hope I am writing to the correct address. If I am wrong will someone please let me know so that I can remove this address and not bother you all again. My problem is as follows, I have installed Apache 1.3.17 with Mod_perl 1.25, I have also installed several (38 in

Re: 1 Billion Bug 1BB - [OT] UNIX timestamp hits 1,000,000,000thisyear!

2001-03-09 Thread Bill Desjardins
On Fri, 9 Mar 2001, Gerd Kortemeyer wrote: > I will open my consulting business on Mon, Jan 18th, 2038. > > - Gerd. > Well, I thinks we should be fine after this change. it will be ~310 YEARS till we have to worry about an extra digit again! We can let them worry about legacy code then :) Bil

Re: Passing Objects with PerlSetVar

2001-03-09 Thread darren chamberlain
Nikolaus Rath ([EMAIL PROTECTED]) said something to this effect on 03/09/2001: > > > my $o = { "bar" => 1, >"foo" => "com", >"other" => 0 }; > push @PerlSetVar, "Objekt, $o; > >PerlHandler Bla > > > And inside the Bla Hand

RE: Passing Objects with PerlSetVar

2001-03-09 Thread Geoffrey Young
> -Original Message- > From: Nikolaus Rath [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 09, 2001 10:00 AM > To: [EMAIL PROTECTED] > Subject: Passing Objects with PerlSetVar > > > Hello! > > > > my $o = { "bar" => 1, >"foo" => "com", >

sending USR2 signal to refresh cached data?

2001-03-09 Thread Richard Chen
I am testing the following idea to refresh sporadically changed read-only data cache. The parent modperl process first cache a data hash %foo. Now all the child modperl processes will inherit this data hash. We install a signal handler in the parent process to reload the hash when a USR2 signal

Passing Objects with PerlSetVar

2001-03-09 Thread Nikolaus Rath
Hello! my $o = { "bar" => 1, "foo" => "com", "other" => 0 }; push @PerlSetVar, "Objekt, $o; PerlHandler Bla And inside the Bla Handler: my $o = $r->dir_config("Objekt"); Is $o now still a complex object, so i could do $o->

Re: [OT] UNIX timestamp hits 1,000,000,000 this year!

2001-03-09 Thread Robin Berjon
At 00:44 09/03/2001 -0500, Bill Desjardins wrote: >Just as a FYI about something that caught my attention recently. This year >on Saturday September 8, 2001, the unix time stamp flips to 1 billion and >gets another digit going from 9 to 10 digits. Not sure if anyone else but >me is using the times

Re: 1 Billion Bug 1BB - [OT] UNIX timestamp hits 1,000,000,000 thisyear!

2001-03-09 Thread Gerd Kortemeyer
I will open my consulting business on Mon, Jan 18th, 2038. - Gerd. Nigel Hamilton wrote: > > HI, > I'm waiting to see how quickly someone starts the 1 Billion Bug > (1BB) Consultancy ... scary. > > NIge > > Nigel Hamilton > _

Re: [OT] UNIX timestamp hits 1,000,000,000 this year!

2001-03-09 Thread Frank D. Cringle
Bill Desjardins <[EMAIL PROTECTED]> writes: > Just as a FYI about something that caught my attention recently. This year > on Saturday September 8, 2001, the unix time stamp flips to 1 billion and > gets another digit going from 9 to 10 digits. Not sure if anyone else but > me is using the timesta

RE: Easy Newbie mod_perl installation question

2001-03-09 Thread Peter Brown
John Walker writes: > layouts seem to be defined in: > > ../apache_1.3.x/config.layout you can also make your own config layout file and point the configure script at it this is something i discovered v. useful :) for example this in the layout file prefix:/usr/local exec_

1 Billion Bug 1BB - [OT] UNIX timestamp hits 1,000,000,000 thisyear!

2001-03-09 Thread Nigel Hamilton
HI, I'm waiting to see how quickly someone starts the 1 Billion Bug (1BB) Consultancy ... scary. NIge Nigel Hamilton __ http://turbo10.com Turbo10 Search Engine Search Fast. Browse Faster. On Fri, 9 Mar 2

Re: [OT] UNIX timestamp hits 1,000,000,000 this year!

2001-03-09 Thread Tim Bunce
On Fri, Mar 09, 2001 at 12:44:59AM -0500, Bill Desjardins wrote: > > Just as a FYI about something that caught my attention recently. This year > on Saturday September 8, 2001, the unix time stamp flips to 1 billion and > gets another digit going from 9 to 10 digits. Not sure if anyone else but >

Re: [OT] UNIX timestamp hits 1,000,000,000 this year!

2001-03-09 Thread Randal L. Schwartz
> "Bill" == Bill Desjardins <[EMAIL PROTECTED]> writes: Bill> Just as a FYI about something that caught my attention recently. This year Bill> on Saturday September 8, 2001, the unix time stamp flips to 1 billion and Bill> gets another digit going from 9 to 10 digits. Not sure if anyone else