Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Chris Winters
On Fri, 2002-10-18 at 17:46, Tobyn Baugher wrote: > As someone fairly new to mod_perl could you make a suggestion of a good > alternative to Apache::Cookie? I was using it just because, like > Apache::Request, it was *there*. The pure-perl CGI::Cookie works fine. Chris -- Chris Winters ([EMAIL

Re: SSL <-> mod_gzip <-> mod_perl = mod_proxy error

2002-10-18 Thread Igor Sysoev
On Fri, 18 Oct 2002, Nigel Hamilton wrote: >Even better ... is there a way to do SSL compression in mod_perl >with only one server? mod_deflate. http://sysoev.ru/mod_deflate/mod_deflate-1.0.15.tar.gz Documentation is in Russian only but feel free to ask me directly. There is also Babelfish trans

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread dbohling
Perrin Harkins wrote: [EMAIL PROTECTED] wrote: This is a bug introduced by having to insert workarounds for segfaults caused by Apache::Cooke/mod_perl. I've been asking for help with this issue for off and on for months now. I suggest you stop using Apache::Cookie and see if the segfaults

SSL <-> mod_gzip <-> mod_perl = mod_proxy error

2002-10-18 Thread Nigel Hamilton
Hi, I'm trying to hand all SSL requests to a backend mod_perl server with mod_gzip installed for compression. This means that SSL content is pre-compressed by the backend server before being encrypted by the frontend (Mini How To - below). Apparently mod_gzip an

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread dbohling
Ged Haywood wrote: Hello there, On Fri, 18 Oct 2002 [EMAIL PROTECTED] wrote: Hardware is definitely not at fault. [snip] [snip] [snip] first backtrace shows the segfault happening in mod_perl_sent_header(), and the second shows it happening in the ap_make_array() which was from Apache::Co

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread Ed
On Fri, Oct 18, 2002 at 03:54:22PM -0400, Perrin Harkins wrote: > Ed wrote: > >Could be bad hardware. Search google for Signal 11. > > That's actually pretty rare. Segfaults are usually just a result of > memory-handling bugs in C programs. I saw the problem when someone had their memory speed

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Tobyn Baugher
On Fri, Oct 18, 2002 at 03:26:17PM -0400, Perrin Harkins wrote: > I suggest you stop using Apache::Cookie and see if the segfaults go > away. There are pure Perl modules that handle cookies well, and it's > not an expensive operation. Apache::Cookie is probably overkill in most > situations.

Re: SSL <-> mod_gzip <-> mod_perl = mod_proxy error

2002-10-18 Thread Thomas Eibner
On Fri, Oct 18, 2002 at 09:46:38PM -0500, Nigel Hamilton wrote: > Hi, > > I'm trying to hand all SSL requests to a backend mod_perl server > with mod_gzip installed for compression. > > This means that SSL content is pre-compressed by the backend > server before being encrypte

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread Perrin Harkins
Ed wrote: Could be bad hardware. Search google for Signal 11. That's actually pretty rare. Segfaults are usually just a result of memory-handling bugs in C programs. - Perrin

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Cory 'G' Watson
Randal L. Schwartz wrote: What confuses me is how anyone with a *programming* background admires PHP over Perl, or can say that Perl "doesn't scale" or PHP is better for "large web sites". Obviously, they're comparing Perl-CGI with PHP, not mod_perl/$templating_system with PHP, which would be a m

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread Ged Haywood
Hello there, On Fri, 18 Oct 2002 [EMAIL PROTECTED] wrote: > Hardware is definitely not at fault. > [snip] > >>Some info: > >>/usr/apache-perl/bin/httpd -l > >>Compiled-in modules: > >> http_core.c > >> mod_env.c > >> mod_log_config.c > >> mod_mime.c > >> mod_negotiation.c > >> mod_sta

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Perrin Harkins
[EMAIL PROTECTED] wrote: This is a bug introduced by having to insert workarounds for segfaults caused by Apache::Cooke/mod_perl. I've been asking for help with this issue for off and on for months now. I suggest you stop using Apache::Cookie and see if the segfaults go away. There are pure P

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread Eric van Oorschot
I experienced the same segfaults after building/installing mod_perl 1.27, apache_1.3.27. At first I built mod_perl inside the apache tree (USE_DSO=1), this resulted in 'make test' without any errors, but segfaults as soon as i tried to contact the apache server if got errors (Segmentation fault

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread dbohling
Whoa guys, we do actually have somewhat of a clue over here. That piece was a mistake (for the same reasons all of you took issue with) and was pulled as soon as I explained the problems with it (and before I'd ever seen any of the comments on list). The url to the story, and most of our site,

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Jordan Ward
I don't say too much about other programming languages, but I find that people will use whatever they are most comfortable with. It really comes down to preference, I enjoy perl and don't really like php, but thats just me. -jordan - Original Message - From: "Eric" <[EMAIL PROT

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Eric
Hi, I am always happy to join into some PHP bashing. :) I feel the same way as you. I even tried to like PHP for a while. What really bugs me is the situation that I learned about when I first came to work at this job. They needed to use PHP to do a POST and the programmer here had chosen CURL

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
> "jjore" == jjore <[EMAIL PROTECTED]> writes: jjore> If you completely left CPAN out of the picture then just as a jjore> language and syntax it isn't all that nice anyway. *shrugs* jjore> I've yet to understand what the appeal is. PHP is just barely limited enough that an ISP can leave i

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread jjore
I thought that was rather odd as well. I started in on PHP for a bit during the summer and eventually dropped it after discovering that OO-PHP is deprecated by those Zend folks (supposedly it's "slow" and there are no destructor methods). I also didn't want to deal with their useless use of s

RE: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Jesse Erlbaum
Hey All - > based on the article, i am surprised that anyone at newsfactor > would get the > objections, much less remove the article. After scanning a few NewsFactor (Factory?) articles, particularly those written by "Mike Martin", it's pretty clear that they have a successful Internet business

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread dbohling
Thanks for the reply Ed. Hardware is definitely not at fault. Our site proxies requests off to several backend servers and they all segfault in the same way. I believe that there's a problem with libapreq or with mod_perl itself. Unfortunately I'm not skilled enough in C programming (yet) to fi

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Cory 'G' Watson
Randal L. Schwartz wrote: Dzuy> What do you expect from (PHP) amateurs? Apparently Perl is too Dzuy> complicated for them to comprehend, Dzuy> never mind mod_perl. And according to my thread at use.perl , the article just got pulled! The article says P

Re: repost: [mp1.0] recurring segfaults on mod_perl-1.27/apache-1.3.26

2002-10-18 Thread Ed
Daniel, Could be bad hardware. Search google for Signal 11. Probably your memory (usual cause I've seen). good luck. Ed On Tue, Oct 08, 2002 at 09:46:16AM -0700, [EMAIL PROTECTED] wrote: > Sorry for the repost, but no responses so far, and I need some help with > this one. > > I've managed

RE: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Wiswell, Virginia
based on the article, i am surprised that anyone at newsfactor would get the objections, much less remove the article. -Original Message- From: Jeff AA [mailto:jaa.perl@;aquabolt.com] Sent: Friday, October 18, 2002 12:06 PM To: [EMAIL PROTECTED] Subject: RE: [OT] Perl vs. PHP. but wher

RE: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Jeff AA
- I get The requested story: 19716 has not been published (set live) yet. when I visit http://www.newsfactor.com/perl/story/19716.html Do you think the lists comments upset someone? 8-)

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
> "Dzuy" == Dzuy Nguyen <[EMAIL PROTECTED]> writes: Dzuy> What do you expect from (PHP) amateurs? Apparently Perl is too Dzuy> complicated for them to comprehend, Dzuy> never mind mod_perl. And according to my thread at use.perl , the article just go

Re: Memory leak on reload when the 'Pg' driver is preloaded

2002-10-18 Thread Keith G. Murphy
Juha-Mikko Ahonen wrote: I looked into it with the following setup: apache 1.3.26-0woody1 libapache-mod-perl 1.27-2 postgresql 7.2.1-2woody2 There was a Test.pm module handling all requests for /. It opened a connection to the database and fetched a couple of rows. With DBI->install_driver('Pg

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Dzuy Nguyen
What do you expect from (PHP) amateurs? Apparently Perl is too complicated for them to comprehend, never mind mod_perl. Randal L. Schwartz wrote: "allan" == allan juul <[EMAIL PROTECTED]> writes: allan> odd yes, they are up to date it seems allan> head('http://www.newsfactor.com/perl/story/1

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
> "allan" == allan juul <[EMAIL PROTECTED]> writes: allan> odd yes, they are up to date it seems allan> head('http://www.newsfactor.com/perl/story/19716.html') allan> returns: allan> Apache/1.3.26 (Unix) PHP/4.2.2 mod_perl/1.27 allan> bad article BTW IMHO allan> ./allan Heh. They really *

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Randal L. Schwartz
> "Richard" == Richard Clarke <[EMAIL PROTECTED]> writes: Richard> List, Richard> http://www.newsfactor.com/perl/story/19716.html Richard> ...sigh? mod_perl is still in the bucket of clues that they didn't dip in to. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777

Re: [OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread allan juul
odd yes, they are up to date it seems head('http://www.newsfactor.com/perl/story/19716.html') returns: Apache/1.3.26 (Unix) PHP/4.2.2 mod_perl/1.27 bad article BTW IMHO ./allan Quoting Richard Clarke <[EMAIL PROTECTED]>: > List, > > http://www.newsfactor.com/perl/story/19716.html > > ...sigh

[OT] Perl vs. PHP..... but where is mod_perl?

2002-10-18 Thread Richard Clarke
List, http://www.newsfactor.com/perl/story/19716.html ...sigh? Ric

Re: getting the PID for a request

2002-10-18 Thread Oleg Shaikhatarov
Damyan Ivanov wrote: > On Thu, Oct 17, 2002 at 03:56:55PM +0530 Sylbert L wrote: > > Is there any way I can get the Process Id or thread ID for a particular > > process / thread that is handling my request ? thanks a bunch .. > > What's wrong with $$ ? or $PID (or $PROCESS_ID) when "use English"

Re: getting the PID for a request

2002-10-18 Thread Damyan Ivanov
On Thu, Oct 17, 2002 at 03:56:55PM +0530 Sylbert L wrote: > Is there any way I can get the Process Id or thread ID for a particular > process / thread that is handling my request ? thanks a bunch .. What's wrong with $$ ? -- dam

[MP2] Net::LDAP/Convert::ASN1 and mod_perl 2

2002-10-18 Thread Mrs. Brisby
I'm using Mod_perl (1.99_07), Apache 2, and using the threaded MPM. I have ithreads installed and most everything works excellently. I am having a problem using Net::LDAP- specifically with $ldh->add() operations. $ldh->search() works fine, $ldh->modify also seems to work. Has anyone else experi

Re: [BUG] Losing GET/POST-data

2002-10-18 Thread Hakan Nilsson
Hello. I have posted a note here before, and want to thank those that took time to try to solve this strange problem, but unfortunately none of the suggestions have helped us so far, except for helping us ruling out things that could have been incorrect. Now I have received some more information

GD with mod_perl

2002-10-18 Thread Ganesan Muthusubramanian
Hello all, I am running into a terrible problem that I couldn't get GD working with mod_perl. I am able to run the same program from command line as a user. But if I run it through Apache with mod_perl I am getting the following error. ** [Thu Oct 17 15:39:19

Compilation problems with mod_perl

2002-10-18 Thread Benny Jensen
  Hello,   I'm trying to compile mod_perl for apache2. But i got a error message that i dont know how to solve. The following message is what i get:   LD_RUN_PATH="" cc  -shared -L/usr/local/lib APR.o  -o ../../../blib/arch/Apache2/auto/APR/APR.so   -lapr -laprutil/usr/bin/ld: cannot fin

AuthCookieDBI semi working, one more testing question

2002-10-18 Thread George Valpak
Thanks to everyone for your help so far. I still haven't figured out why it is not working out of the box, but I kluged the BEGIN block that gets executed at server startup time to hardcode the name of the secretkeyfile. All else seems fine in the browser after that. I guess that is how it has t

Re: Apache::AuthcookieDBI issue - NS broswers display login form incorrectly?

2002-10-18 Thread Perrin Harkins
George Valpak wrote: The browser is getting what appears to be the right html for the login form, but it thinks the content-type is text/plain for some reason. This sounds like a known bug in IE: if it doesn't get a content-type header it will guess based on the file extension. Netscape does n

Re: Memory leak on reload when the 'Pg' driver is preloaded

2002-10-18 Thread Juha-Mikko Ahonen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > OK, it gets weirder. The following script produces the leak. If I > comment out the install_driver line, I get a big old segfault! Same > if I comment out the Apache::DBI line in addition. This works with > plain apache, or apache-ssl. > > #!/usr

Re: Do all apache childs create persistant mysql connections?

2002-10-18 Thread Victor Tsang
> 1) We have no idea why this happens at that particular time. There are > no crons that run then, and we think have a finite ammount of users > accessing the system who do not do anything different at the time the > spike happens. The site is public though, so perhaps spiders could be > doing this

Do all apache childs create persistant mysql connections?

2002-10-18 Thread John Cameron
Hi. We are using Apache::DBI to connect mod_perl to mysql.   Suddenly (at about 21:00 GMT every day) the number of mysql processes spirals into chaos. From a stable 8 to 20 processes, it jumps up to 70 processes. This uses up all our 510MB RAM, swap-space gets used, and the system grinds to

Re: question about using a proxy with mod_perl

2002-10-18 Thread Lyle Brooks
I believe that the Rewrite rule matches only the document root portion of the URL. So for a request http://a.blah.com/mypath/mypage.html All you will get to match on is this much /mypath/mypage.html To do what you are trying to do, I believe you'll need to use some Rewri

[RFC] Apache-GeoIP module

2002-10-18 Thread Randy Kobes
Hi, I've placed at ftp://theoryx5.uwinnipeg.ca/pub/other/Apache-GeoIP-0.26.tar.gz a package providing a mod_perl interface to the GeoIP library, which is used to look up in a database the country of origin of an IP address. See http://www.maxmind.com/ for details. Two modules are provided - A

getting the PID for a request

2002-10-18 Thread Sylbert L
Is there any way I can get the Process Id or thread ID for a particular process / thread that is handling my request ? thanks a bunch ..

Problems under OpenBSD3.1 (fwd)

2002-10-18 Thread Leif Snorre Schøyen Boasson
Hi. I installed an OpenBSD3.1 machine, put in apache2.0.43 using the OpenBSD-layout, and tried putting in mod_perl1.99_07 (the one from the 2.0-current tarball). However, when I add the -directive to set mod_perl to handle .pl's, apache won't come up anymore. It's, as far as I can tell, the Locatio

Re: $r->requires

2002-10-18 Thread Geoffrey Young
[snip] Despite not having a location tag anywhere, nor a require valid-user directive, the above code is able to accomplish my objective: loading an AccessHandler on the fly from the TransHandler for specific urls on my site. Although, I must admit that I'm not sure why it is working. _check

Re: Do all apache childs create persistant mysql connections?

2002-10-18 Thread Perrin Harkins
John Cameron wrote: 2) Does Apache create a new mysql connection/process for EVERY child apache process that is spawned? It creates one in each process that uses the database. I assume some apache processes are spawned to handle simple non-database actions such as retrieving a graphic or st

Re: Do all apache childs create persistant mysql connections?

2002-10-18 Thread John Cameron
Perron Harkins Wrote: > No, if they never use the database they will never create a connection (unless you use connect_on_init). Thankyou! We are using connect_on_init, so this may explain our problem. What happens if I turn off connect_on_init? Do I need to change our code in any way? Or will th

Re: GD with mod_perl

2002-10-18 Thread Tim Tompkins
Chances are you're running a different perl on the command line than mod_perl was built with. Try typing, perl -v, at the shell prompt to see what version it is. You could either rebuild mod_perl with the (probably) newer perl as runs from shell, or install GD under perl 5.6.0. Note that perl 5.

Re: question about using a proxy with mod_perl

2002-10-18 Thread Charlie Garrison
Good afternoon, On 17/10/02 at 2:46 PM, Lyle Brooks <[EMAIL PROTECTED]> wrote: >To do what you are trying to do, I believe you'll need to use some RewriteCond >directives, something like (read: I'm just doing this from memory, you'll >need to test)... > >RewriteCond %{HTTP_HOST} ^b >RewriteRule ^

question about using a proxy with mod_perl

2002-10-18 Thread Brian Hirt
I have a question about setting up a proxy for a mod_perl server. I've got a simple proxy set up that listens on port 80 and proxies to the mod_perl server running on a different port. For example. http://blah.blah.com/anything/ will go to http://blah.blah.com:4374/anything/ and the rules to

Re: Do all apache childs create persistant mysql connections?

2002-10-18 Thread Nigel Hamilton
Hi John, Maybe consider using MyTop (http://jeremy.zawodny.com/mysql/mytop/) to view the state of queries when your server comes under load. It will show what your database is doing to choke your system. Has a table become too big to insert into quickly? Move to an archive. Cons

Re: Do all apache childs create persistant mysql connections?

2002-10-18 Thread Perrin Harkins
John Cameron wrote: Thankyou! We are using connect_on_init, so this may explain our problem. What happens if I turn off connect_on_init? Do I need to change our code in any way? Or will the connection be made automatically? The connection will be made when you first do a DBI connect in that p