Re: Time::localtime under mod_perl2 showing output in client-side time zones
Tyler MacDonald wrote: > Matt Sergeant <[EMAIL PROTECTED]> wrote: > >>>Thread::Semaphore with the same results. If anyone would like the URL >>>to see this for themselves write me off list. If there is need for >>>additional information than I apologize in advance for not submitting >>>it and will do so upon request. >> >>Try calling POSIX::tzset() before the call. It should fix it. > > > If you're changing the system timezone, I'd also suggest having a > small PerlLogHandler that restores the original timezone.. something like > > sub handler { > $ENV{TZ} = $my_old_timezone; > POSIX::tzset(); > return DECLINED; > } > > That way, your logs will remain in your system's timezone. this is even better local $ENV{TZ} = $tz; POSIX::tzset(); ... --Geoff
Apache2::Reload problem
I just upgraded my dev box to Apache 2.0.55 and mod_perl 2.0.2 from Apache 2.0.54 and mod_perl 2.0.1 (not a big upgrade). Anyway, since the upgrade when I have Apache2::Reload enabled I get an internal server error and in the logs it reports that it can't find mod_perl.pm (which is there). Here's the really weird part. If I reload the page 5 or 6 times after the restart, then the error goes away and everything is dandy until I restart the server again. I would have reported this as a bug, but it's so unusual that I figured it might be a configuration issue. Here are the relevant mod perlly bits of my config in case it helps: LoadModule apreq_module modules/mod_apreq2.so LoadModule perl_module modules/mod_perl.so SetHandler perl-script PerlResponseHandler Apache2::Status PerlSetVar StatusOptionsAll On PerlSetVar StatusDeparseOptions "-p -sC" PerlSetVar WebguiRoot /data/WebGUI PerlRequire /data/wre/prereqs/apache/conf/startup.pl PerlCleanupHandler Apache2::SizeLimit PerlRequire /data/WebGUI/sbin/preload.perl ServerName dev.localhost.localdomain DocumentRoot /data/domains/localhost.localdomain/dev/public PerlModule Apache2::Reload SetHandler perl-script PerlInitHandler Apache2::Reload WebGUI PerlSetVar WebguiConfig dev.localhost.localdomain.conf Anybody have any ideas what might be causing this? JT ~ Plain Black ph: 703-286-2525 ext. 810 fax: 312-264-5382 http://www.plainblack.com I reject your reality, and substitute my own. ~ Adam Savage
Connection pooling in Apache2
Hi, just because I came across it are there any plans to use mod_dbd-connection of Apache-2.2? http://httpd.apache.org/docs/2.1/mod/mod_dbd.html Tom signature.asc Description: OpenPGP digital signature
Re: Apache2::Reload problem
JT Smith wrote: > I just upgraded my dev box to Apache 2.0.55 and mod_perl 2.0.2 from > Apache 2.0.54 and mod_perl 2.0.1 (not a big upgrade). > > Anyway, since the upgrade when I have Apache2::Reload enabled I get an > internal server error and in the logs it reports that it can't find > mod_perl.pm (which is there). Here's the really weird part. If I reload > the page 5 or 6 times after the restart, then the error goes away and > everything is dandy until I restart the server again. this feels like it's related to this change http://svn.apache.org/viewcvs.cgi/perl/modperl/trunk/lib/mod_perl2.pm?rev=280262&r1=191197&r2=280262 so see if backing that out helps. if that doesn't help try removing Apache2::Status stuff from your config just for kicks... --Geoff
[mp2] Installing mod_perl packages into different location than default
Hello, Is there a way how to install mod_perl packages into different location than it chooses by default? For example on my system it always tries to instal into "/usr/lib/perl5/5.8.6/" but I want install all packages into user's directory eg. "/home/webuser/perl/". I want to achieve a completely user space installation. My apache2 is also fully installed in "/home/webuser/opt/apache2/". I haven't found any "build option" on http://perl.apache.org/docs/2.0/user/install/install.html how to specify my own perl package location. Thank you, Jozef -- jozef kosoru http://zyzstar.kosoru.com
Re: [mp2] Installing mod_perl packages into different location than default
On Sat, 3 Dec 2005 01:12:41 +0100 Jozef Kosoru <[EMAIL PROTECTED]> wrote: > Hello, > > Is there a way how to install mod_perl packages into different > location than it chooses by default? > > For example on my system it always tries to instal into > "/usr/lib/perl5/5.8.6/" but I want install all packages into user's > directory eg. "/home/webuser/perl/". I want to achieve a completely > user space installation. My apache2 is also fully installed in > "/home/webuser/opt/apache2/". > > I haven't found any "build option" on > http://perl.apache.org/docs/2.0/user/install/install.html > how to specify my own perl package location. You should be able to use PREFIX just like any other package. So when you're building mod_perl instead of doing: $ perl Makefile.PL do $ perl Makefile.PL PREFIX=/home/webuser/perl/ - Frank Wiles <[EMAIL PROTECTED]> http://www.wiles.org -
Re: Apache2::Reload problem
http://svn.apache.org/viewcvs.cgi/perl/modperl/trunk/lib/mod_perl2.pm?rev=280262&r1=191197&r2=280262 so see if backing that out helps. if that doesn't help try removing Goeff, This is indeed it. Backing out that change fixes the problem. Thank you. Do I need to report this as a bug, or do you have it? JT ~ Plain Black ph: 703-286-2525 ext. 810 fax: 312-264-5382 http://www.plainblack.com I reject your reality, and substitute my own. ~ Adam Savage
Re: [mp2] Installing mod_perl packages into different location than default
On Fri, Dec 02, 2005 at 18:27:21 -0600, Frank Wiles wrote: > On Sat, 3 Dec 2005 01:12:41 +0100 Jozef Kosoru wrote: > > Is there a way how to install mod_perl packages into different > > location than it chooses by default? > > [...] > > You should be able to use PREFIX just like any other package. So > when you're building mod_perl instead of doing: > > $ perl Makefile.PL > > do > > $ perl Makefile.PL PREFIX=/home/webuser/perl/ Unfortunately that doesn't work. It still tries to use global directory: Can't open file /usr/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi/auto/mod_perl2/.packlist: Permission denied at /usr/lib/perl5/5.8.6/ExtUtils/Install.pm line 122 Jozef -- jozef kosoru http://zyzstar.kosoru.com
Re: Apache2::Reload problem
JT Smith wrote: >> http://svn.apache.org/viewcvs.cgi/perl/modperl/trunk/lib/mod_perl2.pm?rev=280262&r1=191197&r2=280262 >> >> >> so see if backing that out helps. if that doesn't help try removing > > > Goeff, > > This is indeed it. Backing out that change fixes the problem. Thank you. > > Do I need to report this as a bug, or do you have it? if you could dash a note to dev@perl.apache.org that would be great. I'll be unable to follow up on this for at least a week. --Geoff
Re: Connection pooling in Apache2
On Fri, 2005-12-02 at 19:34 +0100, Tom Schindl wrote: > just because I came across it are there any plans to use > mod_dbd-connection of Apache-2.2? Never heard of this before, but it looks like a replacement for DBI, so you'd probably have to rewrite all of your DBI code to use it. - Perrin
Re: Apache2::Reload problem
Geoffrey Young wrote: JT Smith wrote: http://svn.apache.org/viewcvs.cgi/perl/modperl/trunk/lib/mod_perl2.pm?rev=280262&r1=191197&r2=280262 That was my commit that did that. There was a related change in Apache2::Status. I'll try and have a look at it. -- "Love is not the one you can picture yourself marrying, but the one you can't picture the rest of your life without." "It takes a minute to have a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone..." Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com
Re: [mp2] Installing mod_perl packages into different location than default
Jozef Kosoru wrote: $ perl Makefile.PL PREFIX=/home/webuser/perl/ Unfortunately that doesn't work. It still tries to use global directory: Can't open file /usr/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi/auto/mod_perl2/.packlist: Permission denied at /usr/lib/perl5/5.8.6/ExtUtils/Install.pm line 122 If that doesn't work something else is wrong. That definetely works... I've used it hundreds of times. -- "Love is not the one you can picture yourself marrying, but the one you can't picture the rest of your life without." "It takes a minute to have a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone..." Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com
Re: [mp2] Installing mod_perl packages into different location than default
Philip M. Gollucci wrote: Jozef Kosoru wrote: $ perl Makefile.PL PREFIX=/home/webuser/perl/ Unfortunately that doesn't work. It still tries to use global directory: Can't open file /usr/lib/perl5/site_perl/5.8.6/i686-linux-thread-multi/auto/mod_perl2/.packlist: Permission denied at /usr/lib/perl5/5.8.6/ExtUtils/Install.pm line 122 If that doesn't work something else is wrong. That definetely works... I've used it hundreds of times. Commited -r351903 The other related change I was thinking of: http://svn.apache.org/viewcvs.cgi/perl/modperl/trunk/lib/Apache2/Status.pm?rev=280262&r1=266259&r2=280262 This is okay as it stands. HTH -- "Love is not the one you can picture yourself marrying, but the one you can't picture the rest of your life without." "It takes a minute to have a crush on someone, an hour to like someone, and a day to love someone, but it takes a lifetime to forget someone..." Philip M. Gollucci ([EMAIL PROTECTED]) 301.254.5198 Consultant / http://p6m7g8.net/Resume/resume.shtml Senior Software Engineer - TicketMaster - http://ticketmaster.com