Question about mod_perl startup script

2003-08-14 Thread Wes Plate
I am getting up and running a server that wants mod_perl. The instructions talks about a startup script. I'm very new, so I don't know how I'm supposed to get this step completed. Do I copy the provided script to a location? Do I edit an existing script? Do I edit some configuration file

How do you set vars via interactive startup?

2003-07-16 Thread Patrick Galbraith
Hi there, I'm trying to figure out how one would set vars via a startup.pl script or using PerlSections. I want to set a var on startup where I'll be prompted and a var that I can retrieve via $r-dir_config('FOO') will get me that value. I've tried endless ideas, none of which are working

Re: How do you set vars via interactive startup?

2003-07-16 Thread Perrin Harkins
On Wed, 2003-07-16 at 17:39, Patrick Galbraith wrote: I'm trying to figure out how one would set vars via a startup.pl script or using PerlSections. Is there a reason you can't just put it in a global? The dir_config() stuff is really for when you want to config something specific to a

Re: How do you set vars via interactive startup?

2003-07-16 Thread Patrick Galbraith
Yes, if I hardcode it, fine, but not via reading STDIN into a var, and then setting whatever to that var. On 16 Jul 2003, Perrin Harkins wrote: On Wed, 2003-07-16 at 17:39, Patrick Galbraith wrote: I'm trying to figure out how one would set vars via a startup.pl script or using

Addition of directory to @INC variable via startup script/mod_perl

2003-03-24 Thread Jason Jolly
I currently have the following configuration in my httpd.conf file: PerlRequire /usr/local/apache/conf/startup.pl Alias /perl/ /usr/local/apache/cgi-bin PerlTaintCheck On PerlWarn On PerlFreshRestart On PerlTransHandler Apache::SessionManager PerlFreshRestart On Location /perl

Re: Addition of directory to @INC variable via startup script/mod_perl

2003-03-24 Thread Perrin Harkins
Jason Jolly wrote: When I stop/start the server and run a script with the following code: foreach $item (@INC) { print ($item . br); } I only get the output: /usr/local/lib/perl5/5.8.0/sun4-solaris /usr/local/lib/perl5/5.8.0

Re: [MP2] bug report startup and XML::LibXML

2003-01-31 Thread [EMAIL PROTECTED]
Hi ! and as suggested : LIBXML2.DLL VERSION 2.4.26 XML::LibXML version 1.52 I've tested with libxml2-2.4.23 and XML::LibXML 1.53 on linux and it works just fine. I tested it with libxml2-2.4.23 and XML::LibXML 1.52 and it still segfaults. this looks suspicious as

Re: [MP2] bug report startup and XML::LibXML

2003-01-31 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi ! and as suggested : LIBXML2.DLL VERSION 2.4.26 XML::LibXML version 1.52 I've tested with libxml2-2.4.23 and XML::LibXML 1.53 on linux and it works just fine. I tested it with libxml2-2.4.23 and XML::LibXML 1.52 and it still segfaults. I can't reproduce

[MP2] bug report startup and XML::LibXML

2003-01-30 Thread [EMAIL PROTECTED]
Hi here is a revised complete report bug Hi on SERVER_SOFTWARE: Apache/2.0.44 (Win32) mod_perl/1.99_08-dev Perl/v5.8.0 and as suggested : LIBXML2.DLL VERSION 2.4.26 XML::LibXML version 1.52 everything rebuild debug test code --- use

Re: [MP2] bug report startup and XML::LibXML

2003-01-30 Thread Stas Bekman
[EMAIL PROTECTED] wrote: Hi here is a revised complete report bug and as suggested : LIBXML2.DLL VERSION 2.4.26 XML::LibXML version 1.52 I've tested with libxml2-2.4.23 and XML::LibXML 1.53 on linux and it works just fine. [...] output ok but apache segfault --- here is

Re: [ MP2] startup problem with XML::LibXML

2003-01-26 Thread pascal barbedor
nevertheless , apache startup problem remains. before that I tried to compile XML::LibXML 1.52 against a slightly prior version of libxml2 all test successful but the problem with apache startup remains

Re: [ MP2] startup problem with XML::LibXML

2003-01-26 Thread Randy Kobes
t\13dtd.tlist of failed 11-12 if I nmake install nevertheless , apache startup problem remains. I also found XML::LibXML had problems on Win32 against libxml2-2.5.1. before that I tried to compile XML::LibXML

[ MP2] startup problem with XML::LibXML

2003-01-25 Thread pascal barbedor
PROBLEM : APACHE SEGFAULT WITH XML::LibXML on WIN32 I use all in one perl + apache + modperl2 RK binaries but I replace c:\perl\bin\perl58.dll with perl58.dll obtained after separately(and succesfully) compiling perl with vc6 DEBUG so that I get symbols in perl58.dll so the call stack

Re: [ MP2] startup problem with XML::LibXML

2003-01-25 Thread pascal barbedor
it is version 1.54 pascal - Original Message - From: Matt Sergeant [EMAIL PROTECTED] To: pascal barbedor [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, January 25, 2003 8:00 PM Subject: Re: [ MP2] startup problem with XML::LibXML On Saturday, Jan 25, 2003, at 09:49 Europe

server startup shutdown

2003-01-22 Thread dima
I have XML file and don`t want parse/serialize on each request how implement this: 1) XML parsed on startup 2) All modules work whith same object 3) XML serialize on server shutdown P.S. Apache 2 mod_perl 2

Re: server startup shutdown

2003-01-22 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: I have XML file and don`t want parse/serialize on each request how implement this: 1) XML parsed on startup 2) All modules work whith same object It doesn't look to me like you can share objects across threads effectively at this time. You can share a hash ref

[mp2] doing PerlSetVar from a startup handler

2002-12-05 Thread Beau E. Cox
Hi - I'm trying to get mason running under mod_perl 2, but this is a mod_perl question. I need to have the following set: PerlSetVar MasonArgsMethod CGI When I configure mason in httpd.conf w/o a startup handler, everything is fine. With a handler, even with the PerlSetVar before

RE: [mp2] doing PerlSetVar from a startup handler

2002-12-05 Thread Beau E. Cox
Stas - I finally found what was happening; the startup script (which I miscalled a 'handler') invoked by a 'PerlRequire' directive in httpd.conf creates, among other things, a HTML::Mason::ApacheHandler object. One of the arguments to it's new constructor is 'args_method', which, when set

Re: segmentation fault using a startup file

2002-11-28 Thread Stas Bekman
Ged Haywood wrote: On 27 Nov 2002, Jan Theofel wrote: Especially because we use SuSE Linux Enterprise Server which is a hihgly integrated system and we would loose the benefits of this system when we compile apache on our own. I don't understand that at all. Can somebody help me out here?

Re: segmentation fault using a startup file

2002-11-27 Thread Jan Theofel
Hello, Am Mon, 2002-11-25 um 17.46 schrieb Jan Theofel: (Re)starting apache results in the following segmentation fault: The problem with this segmentation fault is XML::Simple which I use togeather with mod_perl. This seems to be a knowen problem but without a known solution. All I could

Re: segmentation fault using a startup file

2002-11-27 Thread Ged Haywood
Hi there, On 27 Nov 2002, Jan Theofel wrote: Am Mon, 2002-11-25 um 17.46 schrieb Jan Theofel: (Re)starting apache results in the following segmentation fault: The problem with this segmentation fault is XML::Simple [snip] All I could find is that you can either: 1. Compile your own

Re: segmentation fault using a startup file

2002-11-27 Thread Jan Theofel
Hello, Am Mit, 2002-11-27 um 17.33 schrieb Ged Haywood: On 27 Nov 2002, Jan Theofel wrote: Am Mon, 2002-11-25 um 17.46 schrieb Jan Theofel: (Re)starting apache results in the following segmentation fault: The problem with this segmentation fault is XML::Simple [snip] All I

Re: segmentation fault using a startup file

2002-11-27 Thread Ged Haywood
Hi Jan, On 27 Nov 2002, Jan Theofel wrote: Am Mit, 2002-11-27 um 17.33 schrieb Ged Haywood: What is it about compiling your own Apache that troubles you? It is a lot of work to do. Only the first couple of times. Takes me about two minutes nowadays. Especially because we use SuSE

Re: segmentation fault using a startup file

2002-11-27 Thread Ken Y. Clark
On Wed, 27 Nov 2002, Ged Haywood wrote: Date: Wed, 27 Nov 2002 20:56:01 + (GMT) From: Ged Haywood [EMAIL PROTECTED] To: Jan Theofel [EMAIL PROTECTED] Cc: mod_perl mailinglist [EMAIL PROTECTED] Subject: Re: segmentation fault using a startup file Hi Jan, On 27 Nov 2002, Jan Theofel

RE: segmentation fault using a startup file

2002-11-27 Thread Grant McLean
Jan Theofel wrote: Am Mon, 2002-11-25 um 17.46 schrieb Jan Theofel: (Re)starting apache results in the following segmentation fault: The problem with this segmentation fault is XML::Simple which I use togeather with mod_perl. This seems to be a knowen problem but without a known

segmentation fault using a startup file

2002-11-25 Thread Jan Theofel
Hello, I have another problem using Perl::PerlRun with a startup file in apache. The line added to the apache configuration file was: PerlRequire /home/www/[...]/shop/engine/apachestartup.pl (Re)starting apache results in the following segmentation fault: --- snip --- mailgate:/home/www

Re: segmentation fault using a startup file

2002-11-25 Thread Randy Kobes
On 25 Nov 2002, Jan Theofel wrote: Hello, I have another problem using Perl::PerlRun with a startup file in apache. The line added to the apache configuration file was: PerlRequire /home/www/[...]/shop/engine/apachestartup.pl (Re)starting apache results in the following segmentation

RE: segmentation fault using a startup file

2002-11-25 Thread Beau E. Cox
Yeah, Randy, I second the motion. We know that DBI 1.28 does _NOT_ work! Aloha = Beau. -Original Message- From: Randy Kobes [mailto:[EMAIL PROTECTED]] Sent: Monday, November 25, 2002 7:34 AM To: Jan Theofel Cc: mod_perl mailinglist Subject: Re: segmentation fault using a startup file

perlsetvar sometimes fails at server startup

2002-09-09 Thread [EMAIL PROTECTED]
Hi on win32 with perl 561/modperl 1.27-01 dev httpd.conf Perl [..] $PerlSetvar='var foo'; (set outside any container in httpd.conf) $Perlrequire='startup.pl'; [...] /Perl then inside a module used in startup.pl use Apache(); my $s=Apache-server ; (ok) my

modifying @INC at startup and version of perl used

2002-08-29 Thread Jamie . Echlin
the INC. I have a simple startup script that prints INC, which prints INC: /sbcimp/run/pd/perl/5.005_03/lib/sun4-solaris /sbcimp/run/pd/perl/5.005_03/lib /sbcimp/run/pd/perl/5.005_03/lib/site_perl/sun4-solaris /sbcimp/run/pd/perl/5.005_03/lib/site_perl this makes me think I am running 5.005_03

Re: modifying @INC at startup and version of perl used

2002-08-29 Thread mmaunder
to use, and if this can be changed as a non-root user, and how to set the @INC. I have a simple startup script that prints @INC, which prints @INC: /sbcimp/run/pd/perl/5.005_03/lib/sun4-solaris /sbcimp/run/pd/perl/5.005_03/lib /sbcimp/run/pd/perl/5.005_03/lib/site_perl/sun4-solaris /sbcimp/run

RE: modifying @INC at startup and version of perl used

2002-08-29 Thread Jamie . Echlin
PROTECTED]] Sent: 29 August 2002 11:22 To: Echlin, Jamie Cc: [EMAIL PROTECTED] Subject: Re: modifying @INC at startup and version of perl used Jamie, Use the perl internal variables to figure out what version you're running under: $] and $^V Use these whether you're running perl or mod_perl. You

Re: modifying @INC at startup and version of perl used

2002-08-29 Thread Stas Bekman
[EMAIL PROTECTED] wrote: [...] So are you forced to use the version of perl that was chosen when mod_perl was installed? Guess so, am trying to do a local non-root install of apache and mod_perl to see if this is so. It helps to RTFM:

RE: modifying @INC at startup and version of perl used

2002-08-29 Thread Jamie . Echlin
PROTECTED] Subject: Re: modifying @INC at startup and version of perl used [EMAIL PROTECTED] wrote: [...] So are you forced to use the version of perl that was chosen when mod_perl was installed? Guess so, am trying to do a local non-root install of apache and mod_perl to see if this is so

RE: modifying @INC at startup and version of perl used

2002-08-29 Thread Jesse Erlbaum
Hi Jamie -- So are you forced to use the version of perl that was chosen when mod_perl was installed? Guess so, am trying to do a local non-root install of apache and mod_perl to see if this is so. Yes -- you are bound to use the version of Perl which was compiled into Apache. If you want

Apache-server-dir_config-{DocumentRoot} is null on startup

2002-08-12 Thread srp
Hi, On a Apache/1.3.23 (Unix) mod_perl/1.26, if I check Apache-server-dir_config during server startup, I find it is empty !! Dumper shows it is bless( {}, 'Apache::Table' ). Shouldn't the conf file key/value pairs be available in this Apache::Table during

Re: Apache-server-dir_config-{DocumentRoot} is null on startup

2002-08-12 Thread Stas Bekman
How else can i find the server-document_root ? e.g: Apache-server_root_relative(htdocs); __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org

Re: Fascinating segfault at Apache startup

2002-06-22 Thread Jeremy Weatherford
Come to think of it, this is exactly what I did on my RedHat 7.2 system -- grabbed a Perl 5.6.1 RPM without noticing that it was for RedHat 7.3. It installed fine, and Perl worked okay, so why not? Thanks for straightening this up, Eric -- as Chip said, everything should have worked fine with

Re: Fascinating segfault at Apache startup

2002-06-22 Thread Chip Turner
Zac Morris [EMAIL PROTECTED] writes: Honestly though Chip I have to pipe up here. I was a gung ho RedHat supporter when I first got involved in the linux world, and I still believe with it's RPMs and GUI tools it's still the best for both new users and corporate environments, but man, if

Re: Fascinating segfault at Apache startup

2002-06-21 Thread E Kolve
I got this error and spent a bit of time trying to figure it out. The reason I was getting it was that I had started with a RedHat 7.2 system which comes with Perl 5.6.0 and upgraded to 5.6.1 using RH 7.3 RPMS. I then compiled mod_perl against 5.6.1. Each time I started up I got the

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-24 Thread Per Einar Ellefsen
At 05:55 24.04.2002, Stas Bekman wrote: Chuck Goehring wrote: Stas/Everyone, To follow up. With the starting and stopping of Apache and looking at the log, I see entries like Child 1032: Waiting for 250 worker threads to exit. I was gettiong Low virtual memory errors from Win/2000, so I added

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-24 Thread Chuck Goehring
: startup for Apache 2.0/mod_perl 1.99 Chuck Goehring wrote: You're right. I'm getting impatient and jumping ahead. Pasted directly from your post, restarted Apache and get same thing [Tue Apr 23 12:16:54 2002] [notice] Parent: Created child process 2560 [Tue Apr 23 12:16:58 2002

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-24 Thread Per Einar Ellefsen
At 19:31 24.04.2002, Chuck Goehring wrote: That made it work! Your my hero!. That also made the script that accesses Oracle work as well. We've staved off the IIS beast for another day! Great! I'm not familiar with the testing stuff except when Doug had me run the t/report thing.. I'm a CGI

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-23 Thread Chuck Goehring
Stas, First, there was no mod_perl 1.2x installed on this machine. I didn't think I would need it, but I'm guessing. This was as you say. The Location /perl didn't aggree with the registry loaded in startup. That fixed that problem but now it complains about CGI.pm as follows: [Tue Apr 23 10

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-23 Thread Stas Bekman
Chuck Goehring wrote: Stas, First, there was no mod_perl 1.2x installed on this machine. I didn't think I would need it, but I'm guessing. This was as you say. The Location /perl didn't aggree with the registry loaded in startup. That fixed that problem but now it complains about

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-23 Thread Chuck Goehring
? This is on Win2000. Thanks Chuck - Original Message - From: Stas Bekman [EMAIL PROTECTED] To: Chuck Goehring [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 11:12 AM Subject: Re: startup for Apache 2.0/mod_perl 1.99 Chuck Goehring wrote: Stas, First, there was no mod_perl

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-23 Thread Chuck Goehring
11:12 AM Subject: Re: startup for Apache 2.0/mod_perl 1.99 Chuck Goehring wrote: Stas, First, there was no mod_perl 1.2x installed on this machine. I didn't think I would need it, but I'm guessing. This was as you say. The Location /perl didn't aggree with the registry loaded

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-23 Thread Stas Bekman
Chuck Goehring wrote: You're right. I'm getting impatient and jumping ahead. Pasted directly from your post, restarted Apache and get same thing [Tue Apr 23 12:16:54 2002] [notice] Parent: Created child process 2560 [Tue Apr 23 12:16:58 2002] [notice] Child 2560: Child process is running

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-23 Thread Stas Bekman
Chuck Goehring wrote: Stas/Everyone, To follow up. With the starting and stopping of Apache and looking at the log, I see entries like Child 1032: Waiting for 250 worker threads to exit. I was gettiong Low virtual memory errors from Win/2000, so I added ThreadsPerChild 24 to the

startup for Apache 2.0/mod_perl 1.99

2002-04-22 Thread Chuck Goehring
To all, Having trouble configuring Apache 2.0 with mod_perl. Don't know if I need compat or not. My Apache 1.x/mod_perl 1.24 startup starts like this: use strict;use Apache ();use Apache::Registry;use Apache::DBI();use CGI qw(-compile :cgi);use Carp(); That didn't fly on Apache 2.0.35

Re: startup for Apache 2.0/mod_perl 1.99

2002-04-22 Thread Stas Bekman
Chuck Goehring wrote: To all, Having trouble configuring Apache 2.0 with mod_perl. Don't know if I need compat or not. My Apache 1.x/mod_perl 1.24 startup starts like this: use strict; use Apache (); use Apache::Registry; use Apache::DBI(); use CGI qw(-compile

Re: startup vs. child initialization question

2002-04-01 Thread Perrin Harkins
Also, I read about issues of database handlers becoming unstable across forks. So should I place this initialization information into a perl child init handler? See the connect_on_init() method in the Apache::DBI docs. We use PerlSetVar's for this where I work. That's how I would do it

startup vs. child initialization question

2002-03-31 Thread conark
so that my mod_perl handlers have access to this variable/object, kinda like the %ENV variable except that I wish to keep these pieces of information separate from the %ENV variable. Initially, I thought about loading this configuration information in a startup script and using the PerlRequire

Re: startup vs. child initialization question

2002-03-31 Thread Frank Wiles
this configuration information in a startup script and using the PerlRequire directive to load this script. However, since doing this code will run under root privileges, would it be a good idea to place this type of information in this file? Also, I read about issues of database handlers becoming

Re: Apache::DBI startup?

2002-03-20 Thread Doug Silver
On Wed, 20 Mar 2002, Stas Bekman wrote: Doug Silver wrote: I don't know if this is a PostgreSQL oddity, but in the startup.pl file, I can have the entry like so and it seems to start fine: Apache::DBI-connect_on_init (dbi:pg(PrintError=1,AutoCommit=0):, , ) or die Cannot

Apache::DBI startup?

2002-03-19 Thread Doug Silver
I don't know if this is a PostgreSQL oddity, but in the startup.pl file, I can have the entry like so and it seems to start fine: Apache::DBI-connect_on_init (dbi:pg(PrintError=1,AutoCommit=0):, , ) or die Cannot connect to database: $DBI::errstr; The error log shows a couple of

Re: Apache::DBI startup?

2002-03-19 Thread Stas Bekman
Doug Silver wrote: I don't know if this is a PostgreSQL oddity, but in the startup.pl file, I can have the entry like so and it seems to start fine: Apache::DBI-connect_on_init (dbi:pg(PrintError=1,AutoCommit=0):, , ) or die Cannot connect to database: $DBI::errstr; The error log

Apache::DBI startup failure

2002-03-14 Thread Doug Silver
I can't seem to get Apache::DBI to start up properly. Here's my startup.pl: #!/usr/bin/perl -w use strict; use Apache (); use Apache::Status (); use Apache::DBI (); # This *must* come before all other DBI modules! use Apache::Registry; use CGI (); CGI-compile(':all'); use

Re: Apache::DBI startup failure

2002-03-14 Thread Brendan W. McAdams
I've seen similar behavior with DBD::Sybase; if your SYBASE env variable is not set or points at an invalid directory Apache starts up but begins segging every child process over and over again. I'm not familiar with Postgres but this might point you in the right direction. On Thu, 2002-03-14

Re: Apache::DBI startup failure

2002-03-14 Thread Doug Silver
Ok, I found it, but this has got to be some kind of bug. This works: Apache::DBI-connect_on_init(dbi:pg:demo,demo); This doesn't: Apache::DBI-connect_on_init(dbi:Pg:demo,demo); That's right, putting 'dbi:pg' in lowercase made it work. I looked through some old newsgroup stuff and saw someone

[Fwd: Re: Apache::DBI startup failure]

2002-03-14 Thread Brendan W. McAdams
Weird, although I bet if you had straced the apache processes you would have seen the File not found. For some reason I recall DBD Drivers being case sensitive. On Thu, 2002-03-14 at 20:06, Doug Silver wrote: Ok, I found it, but this has got to be some kind of bug. This works:

Adding information to Virtual Hosts in a startup file...

2002-01-23 Thread Marceusz
Hi, I'd like to add a location directives dynamically at startup to a VirtualHost using a startup script. I've been trying: $Apache::ReadConfig::VirtualHost{'127.0.0.1:80'}-{Location}-{'/'} = { SetHandler = 'perl-script', PerlHandler = 'Apache::Hello', }; which doesn't work ... while

What do these messages mean on startup

2001-11-15 Thread John Michael
I am getting these error messages when I restart apache on a new mod perlinstall.Starting httpd: Subroutine export redefined at/usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/Constants.pm line 35.Subroutine name redefined at/usr/lib/perl5/site_perl/5.6.0/i386-linux/Apache/Constants.pm line

Re: What do these messages mean on startup

2001-11-15 Thread Stas Bekman
John Michael wrote: I am getting these error messages when I restart apache on a new mod perl install. http://perl.apache.org/guide/troubleshooting.html#Constant_subroutine_XXX_redefine Something forces the code reloading since Apache restarts itself on the start. make sure to run the

Modules `use`d by PerlModule vanishing after startup?

2001-08-09 Thread Stephen Clouse
::ApacheRequest?) at /usr/lib/perl5/5.6.1/IQGroup/IQCoordinator.pm line 60. Except it IS being loaded, it's the first module `use`d by our PerlHandler. A trace on the Apache process even shows the module being read at startup. When I insert Apache::Status and take a look at the symbol table

Problem Locating DB_File.PM at startup of perl script

2001-07-18 Thread James McKim
Hi all, I've run into a very frustrating problem. I'm getting the old Can't locate loadable object for module... error, yet the file does exist in the @INC path. Here's some system output: --- [Wed Jul 18 12:18:04

Re: Problem Locating DB_File.PM at startup of perl script

2001-07-18 Thread darren chamberlain
James McKim [EMAIL PROTECTED] said something to this effect on 07/18/2001: Hi all, I've run into a very frustrating problem. I'm getting the old Can't locate loadable object for module... error, yet the file does exist in the @INC path. Here's some system output:

Re: Problem Locating DB_File.PM at startup of perl script

2001-07-18 Thread James McKim
Interesting question. The file owner is root. However, I actually launched the perl cgi from the shell as root and got the error message, so I'm not sure that matching the file owner with the owner of the httpd process would make much difference (yet). James darren chamberlain wrote: James

Re: Problem Locating DB_File.PM at startup of perl script

2001-07-18 Thread James McKim
BTW, executing the script seemed to be able to locate CGI, DBI, and POSIX just fine. James darren chamberlain wrote: James McKim [EMAIL PROTECTED] said something to this effect on 07/18/2001: Hi all, I've run into a very frustrating problem. I'm getting the old Can't locate loadable

Re: Problem Locating DB_File.PM at startup of perl script

2001-07-18 Thread Ken Williams
Hi James, The loadable object is not the .pm file, it's the binary compiled object file that DB_File.pm needs to bootstrap. Sounds like you need to reinstall the module. [EMAIL PROTECTED] (James McKim) wrote: Hi all, I've run into a very frustrating problem. I'm getting the old Can't locate

Re: Problem Locating DB_File.PM at startup of perl script

2001-07-18 Thread James McKim
Ken, Thanks for your reply. It does makes sense, eventhough I'm new to perl modules and their implementation. BTW, do you know what that file would be named? I installed it under perl 5.6.0, but when I try to install it under 5.6.1 I get the error (which seems to be a linker error)

Re: Accessing server config during parent startup

2001-07-10 Thread Robin Berjon
On Tuesday 10 July 2001 05:42, Doug MacEachern wrote: On Mon, 9 Jul 2001, Robin Berjon wrote: cfg = (axkit_dir_config *) ap_get_module_config(s-module_config, XS_AxKit); try s-lookup_defaults instead of s-module_config see also: modperl-2.0/src/modules/perl/modperl_pcw.c where

Knowing the current VirtualHost at server startup

2001-07-10 Thread Robin Berjon
Hi, I've been looking around for a way for a Perl section (or code called from it, or perhaps even loaded through PerlModule) to know the current VirtualHost in which it is, at server startup (ie without a request object handy). Apache-server returns the main server object (or so it seems

Re: Knowing the current VirtualHost at server startup

2001-07-10 Thread Doug MacEachern
On Tue, 10 Jul 2001, Robin Berjon wrote: Hi, I've been looking around for a way for a Perl section (or code called from it, or perhaps even loaded through PerlModule) to know the current VirtualHost in which it is, at server startup (ie without a request object handy). Apache-server

Accessing server config during parent startup

2001-07-09 Thread Robin Berjon
Hi, I'm having trouble trying to access server config directives during parent startup. Basically, I've got a module which needs to access a configuration directive in order to compile some non-Perl files to Perl while the server starts and before children are created so that the code

RE: Accessing server config during parent startup

2001-07-09 Thread Geoffrey Young
-Original Message- From: Robin Berjon [mailto:[EMAIL PROTECTED]] Sent: Monday, July 09, 2001 11:58 AM To: [EMAIL PROTECTED] Subject: Accessing server config during parent startup Hi, I'm having trouble trying to access server config directives during parent startup

Re: Accessing server config during parent startup

2001-07-09 Thread Robin Berjon
a request object at server startup is not possible, or would be a hack which I'd rather avoid. I added a server config creator which is an exact copy of the per-directory config creator to the module struct, except that it takes a server_rec as its second arg instead of a string. Perhaps I need

Re: Accessing server config during parent startup

2001-07-09 Thread Robin Berjon
On Monday 09 July 2001 19:38, Robin Berjon wrote: On Monday 09 July 2001 18:09, Geoffrey Young wrote: From: Robin Berjon [mailto:[EMAIL PROTECTED]] In order to access the configuration, I'm using (in a nutshell): cfg = (axkit_dir_config *)

Re: Accessing server config during parent startup

2001-07-09 Thread Doug MacEachern
On Mon, 9 Jul 2001, Robin Berjon wrote: cfg = (axkit_dir_config *) ap_get_module_config(s-module_config, XS_AxKit); try s-lookup_defaults instead of s-module_config see also: modperl-2.0/src/modules/perl/modperl_pcw.c where you can see howto access all of the config apache has

Re: startup

2001-06-27 Thread Stas Bekman
On Wed, 27 Jun 2001, Purcell, Scott wrote: Hello Stas, I think somehow my question got out of sync with the answer. My question was, if I do a use cgi qw(-compile: all) in my startup (which I have done), do I still need to put a use cgi in each of my .pl files? I have read through the docs

Startup behavier of Filter::Util::Call and DBI

2001-05-08 Thread Michael . Jacob
Hi all, I just updated our development system to some recent versions... Perl 5.6.0-5.6.1, Apache 1.3.14-1.3.19, mod_perl 1.24_1-1.25, DBI 1.14-1.15, Filter 1.19-1.23 (+16 others). Now this is what I get at server startup: # /opt/apache/bin/apachectl start startup.pl: starting (0) /opt/apache

Re: Read file at startup, access data during request?

2001-03-30 Thread Stas Bekman
of a PerlSetVar until the request phase. In other words, in the module code that runs at startup time, I want to do this: my $file = $r-server_root_relative($r-dir_config('SharedSecretKeyFile')); except I don't have the Apache Request object ($r). Am I completely on the wrong track? Is there some way

Read file at startup, access data during request?

2001-03-29 Thread Richard Anderson
, in the module code that runs at startup time, I want to do this: my $file = $r-server_root_relative($r-dir_config('SharedSecretKeyFile')); except I don't have the Apache Request object ($r). Am I completely on the wrong track? Is there some way to access a PerlSetVar without the request object

Re: mod_perl startup sequence?

2001-03-06 Thread Paul Cotter
Title: mod_perl startup sequence? From: Drew Wilson To: [EMAIL PROTECTED] Sent: Monday, 05 March, 2001 08:24 PM Subject: mod_perl startup sequence? I'm confused about when mod_perl loads Perl Modules. It appears my perl module gets loaded twice: once when the log writes

mod_perl startup sequence?

2001-03-05 Thread Drew Wilson
Title: mod_perl startup sequence? I'm confused about when mod_perl loads Perl Modules. It appears my perl module gets loaded twice: once when the log writes to stdout, and once when the log message is written to error-log. I would expect my module to only get loaded once. Why twice

Re: dir_config at startup: I know what doesn't work, so what does?

2001-01-24 Thread Doug MacEachern
On Mon, 22 Jan 2001, Christopher L. Everett wrote: variable at server startup, using my startup.pl: ... $config{DBI_DSN} = Apache-server-dir_config('DBI_DSN'); ... PerlSetVar DBI_DSN "DBI:mysql:exchange_db" is your PerlSetVar before or after PerlRequire for startup.pl? it must c

dir_config at startup: I know what doesn't work, so what does?

2001-01-21 Thread Christopher L. Everett
All: I want to specify things like MySQL login info, names of tables containing user login information. I'd like to do it by putting it all into a class variable at server startup, using my startup.pl: my $Account_Interface = $Exchange::MyAccount-init; Then inside Exchange::MyAccount::init

Re: dir_config at startup: I know what doesn't work, so what does?

2001-01-21 Thread Perrin Harkins
"Christopher L. Everett" wrote: So what I'd like to know is: is there any way of picking up configuration info from the httpd-perl.conf at server startup? If you don't need to have different configurations for each virtual host or directory, you could just use globals. Perl

Re: prob with dir_config at server startup

2001-01-02 Thread John K Sterling
, you need to specify them outside the location tags. sterling "T.J. Mather" wrote: I'm having a problem accessing PerlSetVar variables with Apache-server-dir_config at server startup. I'm using the lastest versions of mod_perl 1.24_01 and apache (1.3.14). The problem occurs

prob with dir_config at server startup

2000-12-27 Thread T.J. Mather
I'm having a problem accessing PerlSetVar variables with Apache-server-dir_config at server startup. I'm using the lastest versions of mod_perl 1.24_01 and apache (1.3.14). The problem occurs when I use PerlSetVar inside a Directory, Location or Files section: in httpd.conf: Location

Re: 1.24 to 1.24_01 spinning httpds on startup (solved)

2000-12-21 Thread Doug MacEachern
On Tue, 28 Nov 2000, Michael J Schout wrote: About a month or 2 ago, I had posted a problem where I tried to upgrade from: ... And reported that after doing this, my httpds would spin on startup. When I turned on MOD_PERL_TRACE=all, it was showing that it was stuck in an infinite loop

Re: 1.24 to 1.24_01 spinning httpds on startup (solved)

2000-11-30 Thread Ask Bjoern Hansen
On Tue, 28 Nov 2000, Michael J Schout wrote: Perl $PerlRequire = '/some/path/file.pl'; /Perl Changing this to: Perl push @PerlRequire, '/some/path/file.pl'; /Perl Fixed the problem under 1.24_01 for me and everything appears to be kosher now. Maybe the behavior of

RE: 1.24 to 1.24_01 spinning httpds on startup (solved)

2000-11-30 Thread Geoffrey Young
, 2000 3:12 AM To: Michael J Schout Cc: [EMAIL PROTECTED] Subject: Re: 1.24 to 1.24_01 spinning httpds on startup (solved) On Tue, 28 Nov 2000, Michael J Schout wrote: Perl $PerlRequire = '/some/path/file.pl'; /Perl Changing this to: Perl push @PerlRequire, '/some/path

1.24 to 1.24_01 spinning httpds on startup (solved)

2000-11-28 Thread Michael J Schout
About a month or 2 ago, I had posted a problem where I tried to upgrade from: Redhat Linux 6.2, perl 5.6.0 Apache 1.3.12 mod_perl 1.24 mod_ssl 2.6.6 to Redhat Linux 6.2 perl 5.6.0 Apache 1.3.14 mod_perl 1.24_01 mod_ssl 2.7.1 And reported that after doing this, my httpds would spin on startup

Re: Resurrection of startup SIGSEGV with latest CVS snapshot?

2000-10-13 Thread Doug MacEachern
On Tue, 3 Oct 2000, Bruce W. Hoylman wrote: Hello, Doug -- Thanks for the reply. I have already applied this patch. The backtrace I provided was producted by an httpd executable with the perl_util.c patch already applied. The perl 5.6 patch from p5p was also in effect. bruce, maybe

Re: @INC startup under Win32

2000-10-12 Thread Alexander Farber (EED)
Carlos Ramirez wrote: Update your PATH evironment variable to include C:\Perl\lib Shouldn't it be PERL5LIB instead, since PATH is responsible for locating executables, not modules? "siberian.org" wrote: Can't location Cwd.pm in @INC (@INC contains C:/WINNT/system32/lib .) at

$r-dir_config at server startup?

2000-10-11 Thread Bill Moseley
Can I get the value of a PerlSetVar at startup? # Main server config PerlSetVar foo bar VirtualHost 80 perl package My::Handler; use strict; # Is there a way to get at 'foo'? my $foo = Apache-dir_config('foo'); sub handler { ... } /perl Perl*Handler My

Re: $r-dir_config at server startup?

2000-10-11 Thread Matt Sergeant
On Wed, 11 Oct 2000, Bill Moseley wrote: Can I get the value of a PerlSetVar at startup? # Main server config PerlSetVar foo bar VirtualHost 80 perl package My::Handler; use strict; # Is there a way to get at 'foo'? my $foo = Apache-dir_config('foo'); Apache

@INC startup under Win32

2000-10-11 Thread siberian.org
the mod_perl.ppd from theoryx5.uwinnipeg.ca and it installed properly. I then add the LoadModule line to my httpd.conf When apache tries to startup it says : Can't location Cwd.pm in @INC (@INC contains C:/WINNT/system32/lib .) at (eval 1) line 1 Ok, so it can not find my libs which live in C:\Perl\lib

Re: @INC startup under Win32

2000-10-11 Thread Carlos Ramirez
here is my current situation. Running ActiveState Perl build 618 Apache 1.3.12 I ppm'd the mod_perl.ppd from theoryx5.uwinnipeg.ca and it installed properly. I then add the LoadModule line to my httpd.conf When apache tries to startup it says : Can't location Cwd.pm in @INC (@INC contains C:/WINNT/sy

  1   2   >