RE: Apache::SessionManager pnotes index.html problem...
Hi Joseph, Thanks Enrico, I had no idea that was the problem. My case is http://yourserver.com/ As I have already said to you in the previous post, the problem is that currently, Apache::SessionManager skips all subrequests. When you request http://yourserver.com/, Apache do it because you've defined the 'DirectoryIndex' directive and no session starts. Anyway to make this appear in the documents? I would be happy to apply a patch for you and resend you source for Apache::SessionManager with this documnented? Thanks. I'm upgrading the docs with these additional notes but you're encouraged to send me all your suggestions and troubles! > Your configuration seems to be bizarre...! ;-) > As I have answered to you in a previous personal post, if you want to use > Apache::SessionManager with the directives (and you do not want > to put the PerlSetVar SessionManager* directives in httpd.conf's global scope, > of course), you can install it in the header_parser phase by putting Enrico, my fault. It was late and i just wanted to get the out a sample to the mailing list. I thought it was mod_perl problem and couldn't fault Apache::SessionManager directly so I thought it best not to bother you again personally. ;-) There is no fault ;-) I think that there are (at least) two places where to speak over the modules related to mod_perl: o the mod_perl mailing list o the newsgroups (comp.lang.perl.modules, comp.lang.perl.misc). Currently Apache::SessionManager hasn't own mailing list, so this list can be a good place. - Enrico
Re: Needfurther help on MP2 config.
benjamin mccall wrote: I'm sorry, but i just cannot comprehend the doc or Doug's book explanation on how to further configure Apache to load any custom perl modules I might add. I dropped a perl dir under apache2: /usr/local/apache2/lib/perl/Apache per Doug's direction (from "Apache Modules..." p. 28). I don't believe I have a perl startup file. Or do i? And where do I place the "PerlSetEnv" directive? In httpd.conf? I cannot seem to make sense between the online doc and the book's direction. No criticism to the authors, I'm just a bit slow. I would like to pace myself learning how to build and implement my own perl and c modules with mod_perl as advocated by Steve and Doug. My testbed includes Apache 2.043: mod_perl(1.99_08): perl 5.8 on linux. If someone could help me with this, I'd really appreciate it. First, the eagle book covers mod_perl 1.0. Not 2.0. Though most of the Perl things should work in the same way under 2.0. The chapters on C are definitely applying only to Apache 1.3. Not Apache 2.0. Second, the online documentation for mod_perl 2.0 is far from being complete and you should refer to the 1.0 documentation for the missing parts. Use the search to find your way around. A help to port the 1.0 bits of docs to 2.0 is appreaciated. PerlSetEnv and other Perl* directives go to httpd.conf. The startup file should be created, it's not provided by mod_perl. So go to http://perl.apache.org/docs/1.0/guide and start reading from there. All your questions are already answered there. Finally, since mod_perl 2.0 is under development and the docs are incomplete you are much better off learning with mod_perl 1.0 which is stable and pretty much bug free. __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Needfurther help on MP2 config.
I'm sorry, but i just cannot comprehend the doc or Doug's book explanation on how to further configure Apache to load any custom perl modules I might add. I dropped a perl dir under apache2: /usr/local/apache2/lib/perl/Apache per Doug's direction (from "Apache Modules..." p. 28). I don't believe I have a perl startup file. Or do i? And where do I place the "PerlSetEnv" directive? In httpd.conf? I cannot seem to make sense between the online doc and the book's direction. No criticism to the authors, I'm just a bit slow. I would like to pace myself learning how to build and implement my own perl and c modules with mod_perl as advocated by Steve and Doug. My testbed includes Apache 2.043: mod_perl(1.99_08): perl 5.8 on linux. If someone could help me with this, I'd really appreciate it. Benjamin -- http://fastmail.fm - The professional email service
Re: [mp2] no PerlVINC?
Christopher Hicks wrote: Is there any equivalent to PerlVINC under mod_perl 2? Yes, and it's a built-in solution, rather than a hack: http://perl.apache.org/docs/2.0/user/config/config.html#C_Parent_ __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: mod_perl and mod_cgi problems
Magnar Stav Johanssen wrote: Hi! On my Solaris 5.8 machine I'm running apache 1.3.27 with mod_cgi and mod_perl 1.0. mod_cgi is compiled into apache and mod_perl are loaded in my httpd.conf. When I'm requesting for any .cgi script (tested with: #!/usr/bin/perl or #!/bin/sh) everything works fine, and the scripts compile and return a 200 message to my browser. But after a request that involves mod_perl - .mpl (#!/usr/bin/perl), these cgi scripts crashes with "500: internal server error" This is the error.log: libthread panic: cannot create new lwp : dumping core (PID: 9028 LWP 2) stacktrace: ff052030 0 If I start a truss -p on the apache process (all processes) the request will be OK and reply a 200 OK message. After I've turned off all trusses, the errormessage is still there. Then I need to restart apache and all cgi scripts are working fine again. What can I do to solve this? Have you tried looking in the archives? I have found: http://marc.theaimsgroup.com/?l=apache-modperl&w=2&r=1&s=libthread+panic&q=b In particular: http://marc.theaimsgroup.com/?l=apache-modperl&m=91763462706496&w=2 http://marc.theaimsgroup.com/?l=apache-modperl&m=97363770902299&w=2 __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: libgtop gone?
Perrin Harkins wrote: > http://ftp.gnome.org/pub/GNOME/desktop/2.0/2.0.3/sources/libgtop-2.0.0.tar.gz Thanks to both of you for pointing out that it's on the Gnome FTP site. I'll send Doug a documentation patch to point to this location. And a week later this url will be broken. Notice that it includes a minor version in the path. __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: libgtop gone?
Mithun Bhattacharya wrote: Tried compilling libgtop on a server without X and got the following. The error message seems to be self explanatory. -- configure: error: *** GNOME was not found on this system. *** *** If you want to use LibGTop without GNOME, you need *** to give configure the --without-gnome parameter. So give the configure the --without-gnome parameter, what's the big deal? __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
[mp2] no PerlVINC?
Is there any equivalent to PerlVINC under mod_perl 2? -- "Never offend people with style when you can offend them with substance." - Sam Brown
[OT] Re: pb with theoryx5 ppms archname
On Wed, 29 Jan 2003 09:30:12 -0600, Randy Kobes wrote: >On January 29, 2003 08:45 am, [EMAIL PROTECTED] wrote: Hi Pascal >>with perl 58 /win32 >>I noted that ppm refuses to install More info here. Watch wrap: http://groups.google.com/groups?q=savage+imagemagick+group:comp.lang.p erl.modules&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=at9d1c%242apu%241%40arach ne.labyrinth.net.au&rnum=5 -- Cheers Ron Savage, [EMAIL PROTECTED] on 30/01/2003 http://savage.net.au/index.html
Re: mod_perl and current directory (was Re: Newbie Q on Apache::Include)
At 10:50 AM 1/29/2003, Perrin Harkins wrote: [EMAIL PROTECTED] wrote: I'm not sure whether the company that's hosting my web site will want to install any non-critical module (They ahve done me a favor allowing me to run mod_perl ... ) So I want to see if I have any options installing it under my directory tree. Okay. You need to modify @INC then. Take a look here for examples: http://perl.apache.org/docs/1.0/guide/config.html#The_Startup_File Tks. Dr
Re: mod_perl and current directory (was Re: Newbie Q on Apache::Include)
[EMAIL PROTECTED] wrote: I'm not sure whether the company that's hosting my web site will want to install any non-critical module (They ahve done me a favor allowing me to run mod_perl ... ) So I want to see if I have any options installing it under my directory tree. Okay. You need to modify @INC then. Take a look here for examples: http://perl.apache.org/docs/1.0/guide/config.html#The_Startup_File - Perrin
Re: DBM ties within Apache under Mod Perl
Jim Morrison [Mailinglists] wrote: One of the things I understood mod_perl allowed you to do is to tie a Hash/DBM to the top apache process, so that it's always available throughout the other apache processes? You can only do that for read-only dbms. For read/write, use MLDBM::Sync. PS. Do people think this is a bad idea from the start? Yes. For one thing, there is no way to know when people leave your site. - Perrin
Re: mod_perl and current directory (was Re: Newbie Q on Apache::Include)
Actually I haven't got this to work. I'm yet trying to figure how to load the module (PerlModule Apache::SSI) in the .htaccess with it actuall residing in the "/perl/" directory rather than the standard lib directories. Why? It's a module, not a CGI script. I'm not sure whether the company that's hosting my web site will want to install any non-critical module (They ahve done me a favor allowing me to run mod_perl ... ) So I want to see if I have any options installing it under my directory tree. If you don't want to put it in your standard @INC paths, you can put it under /lib/perl/ which is automatically added to @INC by mod_perl. - Perrin
DBM ties within Apache under Mod Perl
Hey, One of the things I understood mod_perl allowed you to do is to tie a Hash/DBM to the top apache process, so that it's always available throughout the other apache processes? Is that right? Is there a good tutorial somewhere (or is it simple enough to show me in an email?) Thing I want to do is this.. We've just launched a huge site which was never very well designed/structured etc, and we don't reall have time right now to re-do it... We're now getting steady traffic (by accident really) and of course there's quite a high drop off... I want to add a simple popup that appears when someone leaves the site.. What it would do is simply ask .. "Are you leaving the site because.. a) It's not what I'm looking for b) I don't like the look of it c) I was just browsing d) You're too expensive e) Leave me alone and don't bother me" Now I was going to simply link the options to a 'Thankyou' page with a query string we can grep out of the logs at a later date, but while discussing this with a friend last night he said that if he had bothered to vote he would like to know the average voting, so the thankyou page could include a little bargraph of the votes so far. It needs to be very quick (cos I don't want to unneccasarily load the server) but I think all I want to do is +1 to corresponding value in a DBM when they vote and return a graph from each of the values in the DBM in the thanks page. (PS. Do people think this is a bad idea from the start? Would you vote? Or would it just annoy you immensly? ie. is is a bit too much of an intrusion?) Thanks, Jimbo Jim Morrison _ Technology & Development Partner Isotope LLP 9, 2 Laura Place Bath, BA2 4BH UK +44 (0) 1225 444674 +44 (0) 7940 937822 www.mediaisotope.com
Re: pb with theoryx5 ppms archname
On January 29, 2003 08:45 am, [EMAIL PROTECTED] wrote: > with perl 58 /win32 > I noted that ppm refuses to install > packages from http://theoryx5.uwinipeg.ca/ppms (the one for 5.8) > because these packages mention > ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" > while perl 580 built without archname (and the one from > activestate) does not specify "5.8" > but ARCHITECTURE NAME="MSWin32-x86-multi-thread" only > the packages still install after manual donwload and > change of ppd file The specification of ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" in the ppd files (which ActiveState also uses for 8xx ppm packages) is a result of a change in the behaviour of PPM with ActivePerl 8xx - Perl still reports the architecture as MSWin32-x86-multi-thread, but PPM (from ActiveState) for builds 8xx will only install ppm packages whose architecture in the ppd file has the '-5.8' tacked onto the end. This I think was done so that people wouldn't mistakenly install ppm packages for builds 6xx, which report the same ARCHITECTURE but which are binary incompatable with 8xx. The http://theoryx5.uwinnipeg.ca/ppms/ repository should work with ActivePerl 8xx (and also the recent Perl-5.8-win32-bin Perl/Apache distribution from ftp://theoryx5.uwinnipeg.ca/pub/other/), but for a self-compiled perl-5.8 used with the CPAN PPM distribution, a change in PPM.pm is needed - let me know (off-list) if you'd like a copy of the needed patch. -- best regards, randy
Re: [OT] Gkrellm (was: RE: libgtop gone?)
Narins, Josh wrote: Um, can someone provide a link as to what libgtop is supposed to do? Is it just a graphical /usr/local/bin/top? There is a graphical top built on it, but libgtop is just a library that measures memory usage, CPU, etc. GTop.pm is a module which provides a Perl interface to that data. It is referred to in many parts of the mod_perl documentation, like this one: http://perl.apache.org/docs/1.0/guide/performance.html#Measuring_the_Memory_of_the_Process It is the basis of the Apache::GTopLimit module and is used by Apache::VMonitor. - Perrin
[OT] Gkrellm (was: RE: libgtop gone?)
Um, can someone provide a link as to what libgtop is supposed to do? Is it just a graphical /usr/local/bin/top? I can't believe I didn't know about gkrellm until recently, which will cover all the rest of your system monitoring desires (mine monitors my wireless link strenght, for instance) http://web.wt.net/~billw/gkrellm/gkrellm.html According to the FAQ... Quote: To pronounce GKrellM say the "G" then "krellm" as in bell. The name stands for (with a little flexibility, take your pick): GNU (or Gtk) Krell Monitors (or Meters). If you have seen the movie Forbidden Planet, you might recall the Krell had a room with wall to wall meters for monitoring their power systems, and that is what I was thinking of when I came up with the GKrellM name. :unQuote -- This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice.
pb with theoryx5 ppms archname
Hi with perl 58 /win32 I noted that ppm refuses to install packages from http://theoryx5.uwinipeg.ca/ppms (the one for 5.8) because these packages mention ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" while perl 580 built without archname (and the one from activestate) does not specify "5.8" but ARCHITECTURE NAME="MSWin32-x86-multi-thread" only the packages still install after manual donwload and change of ppd file thanks pascal Accédez au courrier électronique de La Poste : www.laposte.net ; 3615 LAPOSTENET (0,13 /mn) ; tél : 08 92 68 13 50 (0,34/mn)"
Re: libgtop gone?
--- Perrin Harkins <[EMAIL PROTECTED]> wrote: > > > http://ftp.gnome.org/pub/GNOME/desktop/2.0/2.0.3/sources/libgtop-2.0.0.tar.gz I dont know how it might affect the users but the above URL seems to be for Gnome 2.0 (RedHat 8.0) users. ftp://ftp.gnome.org/pub/gnome/sources/libgtop/1.1/libgtop-1.1.5.tar.gz seems to be the latest version in the 1.x series This could possibly affect people compiling on workstations with graphical interfaces. I would guess it is best to say dont downgrade libgtop if it is installed. > > Thanks to both of you for pointing out that it's on the Gnome FTP > site. > I'll send Doug a documentation patch to point to this location. Mithun __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
mod_perl and mod_cgi problems
Hi! On my Solaris 5.8 machine I'm running apache 1.3.27 with mod_cgi and mod_perl 1.0. mod_cgi is compiled into apache and mod_perl are loaded in my httpd.conf. When I'm requesting for any .cgi script (tested with: #!/usr/bin/perl or #!/bin/sh) everything works fine, and the scripts compile and return a 200 message to my browser. But after a request that involves mod_perl - .mpl (#!/usr/bin/perl), these cgi scripts crashes with "500: internal server error" This is the error.log: libthread panic: cannot create new lwp : dumping core (PID: 9028 LWP 2) stacktrace: ff052030 0 If I start a truss -p on the apache process (all processes) the request will be OK and reply a 200 OK message. After I've turned off all trusses, the errormessage is still there. Then I need to restart apache and all cgi scripts are working fine again. What can I do to solve this? Regards, Magnar
Re: libgtop gone?
> http://ftp.gnome.org/pub/GNOME/desktop/2.0/2.0.3/sources/libgtop-2.0.0.tar.gz Thanks to both of you for pointing out that it's on the Gnome FTP site. I'll send Doug a documentation patch to point to this location. - Perrin
RE: Installation help
thanks for the help... I got it running now. Attention to detail... -Original Message- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 28, 2003 6:27 PM To: Blankenship, Scott R Cc: '[EMAIL PROTECTED]' Subject: Re: Installation help Blankenship, Scott R wrote: > I'm on SunOS 5.6 (Solaris 2.6) > > I've installed perl 5.8.0 in own test area (not in /usr/local/...) > > Here's a link to the log of my installation efforts: > http://home.earthlink.net/~sblanky/log.html > > Basically, I extract mod_perl 1.27, and apache 1.3.1, go through the > mod_perl isntallation, it adds to my perl libraries, but I can't apache > installed. I go to the src directory, do a make, but the make install at the > end says I have to go to the parent directory to install. But, there's no > Makefile in the parent directory... > > What am I doing wrong? Where have you picked these instructions? Your mistake (as seen from the neat log) is that you go and reconfigure Apache after mod_perl has done this for you already. See: http://perl.apache.org/docs/1.0/guide/install.html __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Stacked Handlers Execution Chain
however, DONE is special - it indicates that all content has been sent and the request cycle should proceed straight to the logging phase. from a handler perspective, DONE behaves the same as an error code - it terminates the request cycle. But the book doesn't say that DONE does break the chain, though it does. an error in a book? I'm shocked. :) I suspect that 1.0 logic handled DONE automatically - DONE was captured and passed back to Apache, which took appropriate action. and I suspect this is what you found in 2.0, since you test for DONE but didn't handle it explicitly. It works exactly the same in 2.0 as in 1.0 (using the current cvs ;), the chain is aborted on !(OK || DECLINED). Any return codes are passed further to Apache. sounds proper to me. nice work. --Geoff
Re: libgtop gone?
Tried compilling libgtop on a server without X and got the following. The error message seems to be self explanatory. -- configure: error: *** GNOME was not found on this system. *** *** If you want to use LibGTop without GNOME, you need *** to give configure the --without-gnome parameter. [root@apex libgtop-1.1.5]# -- This is libgtop downloaded from ftp://ftp.gnome.org/pub/gnome/sources/libgtop/1.1/libgtop-1.1.5.tar.gz Mithun --- Perrin Harkins <[EMAIL PROTECTED]> wrote: > > This guy was on HPUX, and he just wanted source to this one library. > It > used to be available separately. I guess it's not a simple thing to > do > at this point if you don't want gnome and aren't on Red Hat. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com