Problem running 'make test' on MacOSX

2005-03-09 Thread Ron Grunwald
Dear modperl users, I'm attempting to build and install mod_perl 2 for Apache 2.0.53 on MacOSX 10.3 (Darwin kernel 7.7.0). The source distribution for mod_perl (2.0.0-RC4) compiled cleanly without any problems. However, when I attempt to run "make test", the test Apache server fails to start and co

mod_perl/Apache troubles with cell phone

2005-03-09 Thread Rodger Castle
I've been pulling my hair out this evening trying to resolve a problem serving content to a cell phone. Phone is a LG VX-4500. I've written a simple handler as a start to just send "Hello" to the phone along with a Content-Length and Connection: Close header but the phone just times out. With

How to link mod_perl with a debugging libperl?

2005-03-09 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello mod_perl hackers, Contrary to what I (mis?)understood from the documentation, MP_DEBUG does not allow one to link mod_perl against the debugging libperl.a: ~ $ debugperl Makefile.PL MP_INST_APACHE2=1 MP_APXS=/usr/bin/apxs2\ ~ MP_APR_CO

[JOB] Apache/mod_perl Programmer for Teacher's Union in New York

2005-03-09 Thread Aaron Ross
Hi, Get involved in NY politics! A major mayoral slugfest is underway in New York. Commercials are airing. Newspapers are picking sides. You will help the Teacher's Union get their candidate and issues heard. Our client is looking to hire someone to start and lead a team of Apache/mod_perl deve

Re: Problem running 'make test' on MacOSX

2005-03-09 Thread Stas Bekman
Ron Grunwald wrote: Dear modperl users, I'm attempting to build and install mod_perl 2 for Apache 2.0.53 on MacOSX 10.3 (Darwin kernel 7.7.0). The source distribution for mod_perl (2.0.0-RC4) compiled cleanly without any problems. However, when I attempt to run "make test", the test Apache server f

Re: mod_perl/Apache troubles with cell phone

2005-03-09 Thread Stas Bekman
Rodger Castle wrote: I've been pulling my hair out this evening trying to resolve a problem serving content to a cell phone. Phone is a LG VX-4500. I've written a simple handler as a start to just send "Hello" to the phone along with a Content-Length and Connection: Close header but the phone just

Re: How to link mod_perl with a debugging libperl?

2005-03-09 Thread Stas Bekman
Dominique Quatravaux wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello mod_perl hackers, Contrary to what I (mis?)understood from the documentation, MP_DEBUG does not allow one to link mod_perl against the debugging libperl.a: ~ $ debugperl Makefile.PL MP_INST_APACHE2=1 MP_APXS=/usr/bin

Re: mod_perl/Apache troubles with cell phone

2005-03-09 Thread Jonathan Vanasco
Assuming the mod_perl works with a normal browser, I would ask this: a_ is the mod_perl serving the 'phone' directly, or is there an intermediary cache in between (ie, squid proxies to mod_perl or vanilla httpd, or a vanilla httpd proxies certain content to mod_perl) if not, i suggest that you

Re: How to link mod_perl with a debugging libperl?

2005-03-09 Thread Dominique Quatravaux
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stas Bekman wrote: | | Dominique, I guess we (developers) all have perl built with debug | enabled, so we never needed this feature. I suppose you could | change the code to check whether libperld exists and link it | instead of libperl under MP_DEBUG=1

Re: mod_perl/Apache troubles with cell phone

2005-03-09 Thread Ofer Nave
Rodger Castle wrote: I've been pulling my hair out this evening trying to resolve a problem serving content to a cell phone. Phone is a LG VX-4500. I've written a simple handler as a start to just send "Hello" to the phone along with a Content-Length and Connection: Close header but the phone j

Re: mod_perl/Apache troubles with cell phone

2005-03-09 Thread Tom Schindl
Is the content-type set appropiately? I don't know what its supposed to be on for a cell-phone. Any could to help you would be appreciated. Tom Rodger Castle wrote: I've been pulling my hair out this evening trying to resolve a problem serving content to a cell phone. Phone is a LG VX-4500. I'v

Re: mod_perl/Apache troubles with cell phone

2005-03-09 Thread Scott Gifford
Tom Schindl <[EMAIL PROTECTED]> writes: > Is the content-type set appropiately? I don't know what its supposed > to be on for a cell-phone. Any could to help you would be appreciated. It should be text/vnd.wap.wml ScottG.

[newbie] [mp2] when are inline/anonymous subs compiled?

2005-03-09 Thread John ORourke
Hi folks, apologies if this is well known information, I did search! My response method-handler reads a template and I want to call a different sub for each type of 'field' I find. I also want other packages to be able to 'register' new subs for new 'field' types. I'm not sure wether to use a ha

Re: How to link mod_perl with a debugging libperl?

2005-03-09 Thread Stas Bekman
Dominique Quatravaux wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stas Bekman wrote: | | Dominique, I guess we (developers) all have perl built with debug | enabled, so we never needed this feature. I suppose you could | change the code to check whether libperld exists and link it | instead

Re: [BUG MP1/MP2] Apache should bail out in case of syntax errors in section

2005-03-09 Thread Philippe M. Chiasson
I've identified the source of the problem I believe, so can you try this patch and let me know if it works for you? If so, I'll be working it up a bit more and get it in. Index: src/modules/perl/modperl_cmd.c === --- src/modules/perl/m

Re: [newbie] [mp2] when are inline/anonymous subs compiled?

2005-03-09 Thread Stas Bekman
John ORourke wrote: Question is, do anonymous subs assigned to hash values and placed in the 'new' method get compiled every time a new object is created or just when the module file is initially loaded? if using anon subs, define them here: $$code{type1} = sub { do something cool;

Problem with apache and mysql

2005-03-09 Thread Alejandro Galue
Hello All, I'm using Fedora Core 3 with this packages version (RPM): httpd-2.0.52-3.1 mod_perl-1.99_16-3 perl-DBI-1.40'5 perl-DBD-MySQL-2.9004-4 libdbi-0.6.5-10 libdbi-dbd-mysql-0.6.5-10 mysql-4.1.9-1 mysql-server-4.1.9-1 mysqlclient10-3.23.58-4 I downloaded source rpm for Mysql from fedora-d

Re: PerlTransHandler question

2005-03-09 Thread Tony Clayton
Quoting shawn <[EMAIL PROTECTED]>: So far this working on my development environment, but what I am really wondering about is if this will actually take the load off mod_perl? (it's a little hard for me to tell without significant traffic) Will the mod_perl server execute the page and release the

[BUG] Bad refcounting in Apache->push_handlers()

2005-03-09 Thread Dominique Quatravaux
-8<-- Start Bug Report 8<-- 1. Problem Description: I'm trying to make a PerlFixupHandler that reads: sub ssl_is_mandatory { my $r = shift; require Apache::RequestRec; return 403 unless defined($r->subprocess_env("SSL_SERVER_S_DN")); return 0 } Apache->pu

Re: Problem with apache and mysql

2005-03-09 Thread Tom Schindl
Are there any messages in the Apache-Errorlog or in the one of MySQL. Maybe you are opening connections and don't close them, ... . You could also run the DBI in Debugging mode. Do you use Apache::DBI? Tom Alejandro Galue wrote: Hello All, I'm using Fedora Core 3 with this packages version (RPM

Re: Problem with apache and mysql

2005-03-09 Thread Gokul P. Nair
My suggestion would be to use Apache::DBI too if ur not already doing so. my guess is that the database handles open by DBI (not to be mistaken for Apache::DBI) might remain open eventually leading to inability to access mysql anymore. hope that helps. Gokul --- Alejandro Galue <[EMAIL PROTECTED

Foolish Q - 2.0_RC4?

2005-03-09 Thread William A. Rowe, Jr.
I can't seem to locate the source repository point for _RC4... Looked in; http://svn.apache.org/repos/asf/perl/modperl/tags/ as well as http://cvs.apache.org/viewcvs.cgi/ (which I see modperl2 is now gone.) Any pointers? Would like to give this a thorough drubbing so I can toss my ++ into the

RE: PerlTransHandler question

2005-03-09 Thread shawn
Thanks for the detailed response; all your assumptions are correct almost... Maybe if I give a bit more detail on the structure someone could suggest a better strategy. I have one apache server with mod_perl enabled. I have done a fair bit of tuning and preloading so it runs quite well, one of it

Re: Foolish Q - 2.0_RC4?

2005-03-09 Thread Geoffrey Young
William A. Rowe, Jr. wrote: > I can't seem to locate the source repository point for _RC4... > > Looked in; > > http://svn.apache.org/repos/asf/perl/modperl/tags/ from the Changes file I think it's this http://svn.apache.org/repos/asf/perl/modperl/tags/1_999_21/ > > as well as > > http://c

Re: Foolish Q - 2.0_RC4?

2005-03-09 Thread Geoffrey Young
> official releases are also always on > > http://svn.apache.org/viewcvs.cgi/perl/modperl/ blarg, cut and paste error. I meant http://perl.apache.org/dist/ --Geoff

Re: Foolish Q - 2.0_RC4?

2005-03-09 Thread William A. Rowe, Jr.
At 07:05 PM 3/9/2005, Geoffrey Young wrote: >> official releases are also always on >> >> http://svn.apache.org/viewcvs.cgi/perl/modperl/ > >blarg, cut and paste error. I meant > > http://perl.apache.org/dist/ I hope you ment http://www.apache.org/dist/perl/ since that's what our mirrors cap

RE: PerlTransHandler question

2005-03-09 Thread David J Radunz
On Wed, 2005-03-09 at 17:53 -0700, shawn wrote: > Thanks for the detailed response; all your assumptions are correct > almost... Maybe if I give a bit more detail on the structure someone > could suggest a better strategy. > > I have one apache server with mod_perl enabled. I have done a fair bit

Re: PerlTransHandler question

2005-03-09 Thread Perrin Harkins
shawn wrote: I am aware that I could just change the links to the pdfs but that is allot of code changes and may cause problems with the image upload code etc. Or you could use a proxy server. Another reason why I would like the mod_perl server to be the front end is because it has ssl enabled and

Re: [BUG] Bad refcounting in Apache->push_handlers()

2005-03-09 Thread Stas Bekman
Dominique Quatravaux wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: I'm trying to make a PerlFixupHandler that reads: sub ssl_is_mandatory { my $r = shift; require Apache::RequestRec; return 403 unless defined($r->subprocess_env("SSL_SERVER_S_D

Solved: Problem running 'make test' on MacOSX

2005-03-09 Thread Ron Grunwald
Hello Stas, Thank you for your suggestion. I read through the thread as you suggested, and the underlying fault seems to be permissions related. I built mod_perl under my own login, which is an ADS network account, and noticed that the UID is a very large integer. I somehow thought that this

Re: Solved: Problem running 'make test' on MacOSX

2005-03-09 Thread Stas Bekman
Ron Grunwald wrote: Hello Stas, Thank you for your suggestion. I read through the thread as you suggested, and the underlying fault seems to be permissions related. I built mod_perl under my own login, which is an ADS network account, and noticed that the UID is a very large integer. I somehow t

[mod_perl2] Apache::DBI Win2K

2005-03-09 Thread Tom Pfeifer
I have installed Apache-2.0.53, ActivePerl-5.8.6.811, Apache-DBI 0.94. Anyone been successful at actually creating persistent database connections with the above setup, or something similar with Apache2, ActivePerl and Apache-DBI.  I find the Apache::DBI module to have a "require Apache" at th