Unable to compile libapreq2

2006-09-20 Thread Foo JH
Hi guys, I'm using FBSD6.0. I've done the latest cvsup on the ports, installed apache 2.0.59 and mod_perl 2.0.2,3 and and trying to install libapreq2-2.0.08. Halfway through the compilation, I get this error: cc -shared .libs/util.o .libs/version.o .libs/cookie.o .libs/param.o .libs/parser.

Re: Unable to compile libapreq2

2006-10-03 Thread Foo JH
+ libapreq2, it reports 'cannot find -lexpat' error. 3. If I install FBSD6.1 + cvsup-without-gui + Apache2 + MP2 + libapreq2, it reports 'cannot find -lexpat' error. Is there something in cvsup-without-gui that screws up expat? Philip M. Gollucci wrote: Foo JH wrote:

Setting mp2 script timeout

2006-10-23 Thread Foo JH
Hi all, Quick qn: does anyone know how to set the timeout for a running script? I'm thinking of using mp2 to execute an offline program, and if the running takes too long, I hope apache can timeout the script and abort it somehow...or alternatively leave it running for as long as it takes. I

Re: mod_perl install under Win32

2006-10-23 Thread Foo JH
Any particular reason why you stopped using the ActivePerl combo? It's a painkiller, and I depend on it most of the time. Devin Austin wrote: Hey everyone, i'm brand new to this, so bear with me: I'm trying to install mod_perl under strawberry-perl-5.8.8-alpha-2.exe

Re: [mp2] PAR in production?

2006-11-06 Thread Foo JH
I've tried using Apache::PAR, but I think it needs some work to get it working on MP2 or MP2.2. There is a lazy way to go about it: 1. In your httpd.conf insert: PerlRequire startup.pl 2. In your startup.pl load your PAR files. Hope this helps. Ali ISIK wrote: Hi there, folks -- is the use of

Re: [mp2] PAR in production?

2006-11-09 Thread Foo JH
I don't understand. What do you mean by 'perl is not relocatable'? I've put (Active)Perl in the same directory as the apache server in a copy-paste operation. But this is in Windows. Michael Peters wrote: Fred Moyer wrote: I like this approach, but it still requires a perl binary to make

Re: [mp2] PAR in production?

2006-11-13 Thread Foo JH
Are you guys referring to this tool ActiveState released for relocating Perl: http://aspn.activestate.com/ASPN/docs/ActivePerl/5.8/site/lib/ActiveState/RelocateTree.html Frank Wiles wrote: On Mon, 13 Nov 2006 10:24:21 +0200 Issac Goldstand <[EMAIL PROTECTED]> wrote: Frank Wiles wrote:

Re: Web development platform contest and Perl / mod_perl

2006-11-18 Thread Foo JH
Agreed. I believe at this point in time (mod)Perl's extensive library support + Apache integration is still a unique value proposition. However I suspect because it is not based on a oop foundation, people tend to favour languages like Ruby instead. To be realistic, whatever the outcome of thi

Re: [mp2] PAR in production?

2006-11-18 Thread Foo JH
Depends if you plan to make money out of it. Otherwise iirc it doesn't cost you a cent. Issac Goldstand wrote: Cool! But, what license does it have? Foo JH wrote: Are you guys referring to this tool ActiveState released for relocating Perl: http://aspn.activestate.com/ASPN/docs/Activ

Windows + MP2 in a production environment

2006-11-18 Thread Foo JH
Hello guys, Just want to get some feedback from people here who use MP2 on Windows for their production enviromment. For myself I have done MP2 on both FreeBSD and Windows platforms, and it seems to me that the FreeBSD combo is more reliable. The Windows version on occasion (but sure to happen

Re: JOB [CONTRACT] + Re: Windows + MP2 in a production environment

2006-11-19 Thread Foo JH
I don't have the time to look into it properly. If anyone thinks that they are capable of identifying and fixing the problem, please email me. Issac Foo JH wrote: Hello guys, Just want to get some feedback from people here who use MP2 on Windows for their production enviromment. For m

Re: JOB [CONTRACT] + Re: Windows + MP2 in a production environment

2006-11-19 Thread Foo JH
operly. If anyone thinks that they are capable of identifying and fixing the problem, please email me. Issac Foo JH wrote: Hello guys, Just want to get some feedback from people here who use MP2 on Windows for their production enviromment. For myself I have done MP2 on both FreeBSD and Window

Re: Windows + MP2 in a production environment

2006-11-19 Thread Foo JH
Issac Goldstand wrote: We were originally using 5.8.3, but reproduced the problem with both activeperl 5.8.8.819 with mod_perl-2.0.3-dev (from your PPM repository) as well as our own built perl + mod_perl 2.0.3-rc2 I wonder if modperl on apache 2.2 will resolve this issue...

Re: SV: JOB [CONTRACT] + Re: Windows + MP2 in a production environment

2006-11-21 Thread Foo JH
Henrik Schak Hansen wrote: Hi All, I think we are a lot of windows users experiencing the same problem with mod_perl/apache: "The famous 3221225477 exit status". My company will also be willing to donate some money If it will help solving the problem. Yes! It's really (in)famous! :) The more d

Re: SV: JOB [CONTRACT] + Re: Windows + MP2 in a production environment

2006-11-21 Thread Foo JH
In the list of all modules you are using in your application, are you sure that all modules are thread-safe ? If only one is not thread-safe, you may encounter an error at a time while running your application ? For my part, I use mainly CPAN libraries. This includes: HTML::Template DBI DBD::

Re: SV: JOB [CONTRACT] + Re: Windows + MP2 in a production environment

2006-11-21 Thread Foo JH
William A. Rowe, Jr. wrote: Foo JH wrote: Yes! It's really (in)famous! :) The more detailed error message seems to be captured in the Event Application log instead. I wonder why error.log wasn't more verbose on this one. Because, once it crashes it's no longer loggin

Re: JOB [CONTRACT] + Re: Windows + MP2 in a production environment

2006-11-21 Thread Foo JH
_perl 2.0.3-rc2 Randy Kobes wrote: On Sun, 19 Nov 2006, Foo JH wrote: Issac Goldstand wrote: YES! While it's acceptable for light and smallish applications, I've never found it to be really usable once you're serving concurrent connections. On that note, I have a contract (j

Re: Windows + MP2 in a production environment

2006-11-22 Thread Foo JH
est crashing subroutine in a Visual C __try {} block, as I understand; I haven't seen it myself yet), as soon as I can. Issac Randy Kobes wrote: On Sun, 19 Nov 2006, Issac Goldstand wrote: Foo JH wrote: Issac Goldstand wrote: We were originally using 5.8.3,

Re: mod_perl installation

2007-01-14 Thread Foo JH
If you're running on Linux/ Sun, I think most people avoid threading for performance reasons. If you're going to be on Windows, you don't have a choice: threading is compulsory. You may want to read up on the various MPM models for each OS. Octavian Rasnita wrote: Hi, How it is recommended t

Re: How to extract a parameter

2007-01-14 Thread Foo JH
Fred Moyer wrote: Tracy12 wrote: Hi, Is there a easy way to extract the ticket(may be using a Regular Expression) parameter from a URL as follows http://localhost/myTest.pl?ticket=ST-2-zbwAtOlYlfzoC6knUXP9&name=test There is an easy way, that emulates CGI's methods. It's called libapreq2,

Re: Modperl crashes on win32

2007-01-28 Thread Foo JH
For your reference, I am running Apache 2.2.3 + mp2 2.0.3 + libapreq 2.6.0 dev + Perl 5.8.8 fine on my 2K3 and XP boxes, regardless of the concurrency setting. No special config used. You may want to relook your setup, or try installing on a clean machine. Tümer Garip wrote: Hi, No need for a

Re: ANNOUNCE: HTML::Template v2.9

2007-01-30 Thread Foo JH
Just want to comment that I enjoy using HTML::Template. :) Sam Tregar wrote: CHANGES - New Feature: the force_untaint option makes sure you do not pass tainted values to param(). [Sven Neuhaus] - New Feature: Added ESCAPE="none" as a synonym for ESCAPE="0". Fixed both to work wi

How to obtain the raw http content?

2007-02-13 Thread Foo JH
Hi all, Can anyone point me in the right direction? I am expecting POST with XML content, so the usual parser won't work...I think. Hope this helps.

Re: mod_perl 2 and Forms?

2007-02-20 Thread Foo JH
Install libapreq2, which emulates the CGI->param() method. Depending how refactored your existing codes are, you may not need to rework much. [EMAIL PROTECTED] wrote: I'll admit that I'm a mod_perl newbie. I've always just used plain ol' CGI scripts in the past. Obviously I have relied's up

Re: Have I got mod_perl installed?

2007-02-28 Thread Foo JH
To be really sure, turn on the server signature and see what your telnet trick gives you. amend in your http.conf: ServerSignature on Beginner wrote: Hi, I am a bit confused. If I do: telnet localhost 80 I get: HTTP/1.1 403 Forbidden Date: Wed, 28 Feb 2007 16:53:29 GMT Server: Apache/2

Re: Have I got mod_perl installed?

2007-03-01 Thread Foo JH
If the signature is on and you don't see it, chances are it's not loaded properly. Beginner wrote: Lot's of replies, thanx. On 1 Mar 2007 at 10:50, Foo JH wrote: To be really sure, turn on the server signature and see what your telnet trick gives you. amend in

Re: Perl and ASP.Net

2007-04-25 Thread Foo JH
ASP.Net tries to do both the server and client side (sometimes the programmer doesn't even know if his C# code is actually going to be run on the server or the client). Perl (and on this list mod_perl) takes care of the server side but leaves the client side up to you. I believe that's the gr

Re: Perl and ASP.Net

2007-04-26 Thread Foo JH
Boysenberry Payne wrote: One of the draw back that seems to be evident to me as I've looked into the client side frameworks is changes in the code are ought of your control. WIth a purely server side solution it would seem to give the coder the choice to upgrade when there is time, etc. With the

Re: Weird startup includes

2007-04-26 Thread Foo JH
Are you running Apache on Windows? Martin Moss wrote: I seem to have something weird going on. a Module I've written seems to be being included twice at server startup, but the second time its included the Apache::ServerStarting flag is set to 0... and is therefore causing all sorts of grief...

Re: Apache::DBI - Can two different connection handles have the same reference/address at different times?

2007-05-07 Thread Foo JH
My suspicion is that when you do a disconnect, the connection is actually not released. That's the idea of connection pooling isn't it? You can confirm this by checking the number of connections stated on your sql server after a call. Lionel MARTIN wrote: Hello, As you know, use Apache::

Re: After retrieving data from DB, the memory doesn't seem to be freed up

2007-05-10 Thread Foo JH
I would even say PER THREAD or PER PERL INTERPRETER. Indeed, I'm running Per/mod perl under Windows, and there's one unique Apache process (except the parent one) hosting all perl interpreters. Something to ask about modperl and memory in Windows. I know modperl uses threads in Windows. But

Re: catching a segmentation fault

2007-05-16 Thread Foo JH
Are you running Apache 2.0 on Windows? Tyler Bird wrote: Hi all, I was wondering how I could use the %SIG has to catch a segmentation fault. I am setting up a new server with mod_perl + apache 2.0 + some legacy code and am sporadically rececing a segmentation fault to my apache logs like s

Re: What would cause a SEGFAULT on startup

2007-05-20 Thread Foo JH
If you're starting modperl from scratch, I'd suggest that you go with modperl2 on apache 2.2 than legacy apache 1.3 + modperl 1 Tuc at T-B-O-H.NET wrote: Hi, I'm running : apache+mod_ssl+mod_deflate-1.3.37+2.8.28 perl-threaded-5.8.8 mod_perl-1.30 all installed via the FreeBS

Re: File Handle Issues in Mod_Perl 2.0

2007-05-20 Thread Foo JH
Could be some internal optimsation issue. But I'd say that your best bet is to really close the file after you're done with it, and not let it hang around. This so especially when you are expecting multiple threads/ processes accessing the same file. Justin Luster wrote: Hi, A while back I

Re: File Handle Issues in Mod_Perl 2.0

2007-05-21 Thread Foo JH
What kind of errors specifically are you getting? Justin Luster wrote: I'm not closing the file on purpose to try and simulate an error condition. My main question is why would it work differently from mod_perl 1.0 to 2.0? Thanks, Justin -Original Message- From: Foo JH [m

Re: What would cause a SEGFAULT on startup

2007-05-21 Thread Foo JH
Tuc at T-B-O-H.NET wrote: Hi, Thanks for the reply, but unfortunately I can't on both accounts. I realize this sounds weird, because of certain issues I need to bring this up like another server. The only reason difference was I wanted to see if I could get threaded perl running on this

Is it advisable NOT to limit MaxRequestsPerChild in Win32 modperl?

2007-05-24 Thread Foo JH
Hi all (my turn to ask modperl questions this time), My persistent peeve with the Win32 Apache2.2 modperl is that it sometimes throws out this odd error: [Mon Mar 05 21:19:47 2007] [notice] Parent: child process exited with status 3221225477 -- Restarting. It's not very nice to have clients

Re: Is it advisable NOT to limit MaxRequestsPerChild in Win32 modperl?

2007-05-25 Thread Foo JH
Hello Perrin and Lionel, Lionel MARTIN wrote: Unless I'm mistaken, and even if there is only one (child) Apache process and several thread under Windows (winnt MPM), the only directive that can be used is MaxRequestsPerChild and not MaxRequestsPerThread. It is not possible to restart indivi

Re: Is it advisable NOT to limit MaxRequestsPerChild in Win32 modperl?

2007-05-25 Thread Foo JH
Lionel. - Original Message - From: "Foo JH" <[EMAIL PROTECTED]> To: "Lionel MARTIN" <[EMAIL PROTECTED]> Cc: "Perrin Harkins" <[EMAIL PROTECTED]>; Sent: Friday, May 25, 2007 10:29 AM Subject: Re: Is it advisable NOT to limit MaxRequestsPerC

Re: Is it advisable NOT to limit MaxRequestsPerChild in Win32 modperl?

2007-05-25 Thread Foo JH
Perrin Harkins wrote: On 5/25/07, Lionel MARTIN <[EMAIL PROTECTED]> wrote: Unless I'm mistaken, and even if there is only one (child) Apache process and several thread under Windows (winnt MPM), the only directive that can be used is MaxRequestsPerChild and not MaxRequestsPerThread. You're

Re: Which template engine is best to create a perl site

2007-06-06 Thread Foo JH
Sorry, but I suspect there's a mistake in your test. Possibly you counted the time for JIT to do the initial compile, which is slow but only happens once. HTML::Template::Compiled is fast, but it's not as fast as JIT. I don't recommend actually using JIT though, since it's harder to debug tem

Loading Win32::OLE in a modperl package

2007-06-08 Thread Foo JH
Hi all, I wonder if I am alone in experiencing this. Simply put: putting 'use Win32::OLE' in my modperl package will cause the Apache to fault. It basically can't start at all. A window will pop up complaining about 'Apache HTTP Server has encountered a problem and needs to close'. No entry in

Re: Loading Win32::OLE in a modperl package

2007-06-08 Thread Foo JH
} 1; Lionel MARTIN wrote: Basically, Doing, in test.pl, run by ModPel::Registry, something like: use Win32::OLE; print 'Hello'; Works prefectly... Which versions (Apache, MP and Perl) are you running? ----- Original Message - From: "Foo JH" <[EMAIL PROTECTED]> To: &q

Re: Loading Win32::OLE in a modperl package

2007-06-08 Thread Foo JH
out. Lionel. - Original Message - From: "Foo JH" <[EMAIL PROTECTED]> To: "Lionel MARTIN" <[EMAIL PROTECTED]> Sent: Friday, June 08, 2007 11:21 AM Subject: Re: Loading Win32::OLE in a modperl package Thanks Lionel. Damn. I was hoping I won't need to &

Re: Loading Win32::OLE in a modperl package

2007-06-10 Thread Foo JH
Thanks for the clarification. In other words: avoid Win32::OLE in modperl? Jan Dubois wrote: On Fri, 08 Jun 2007, Foo JH wrote: I wonder if I am alone in experiencing this. Simply put: putting 'use Win32::OLE' in my modperl package will cause the Apache to fault. It basically c

Re: [mp2] The right way to use CGI parameters in a handler

2007-06-10 Thread Foo JH
I've kinda moved out of CGI since I started using modperl for primarily 2 reasons: speed and functionality. You'd see that Apache2::Request exposes more stuff, which you can (lazily) use. Unless you are looking for some backward compatibility to tradditional CGI programming, why not embrace th

Re: which module for this purpose?

2007-06-14 Thread Foo JH
A couple of ways I can think of. Code-wise, you can have modperl handle all requests to /download/. So a request to /download/test.flv will activate a modperl script which can do the checks you want (and return 404 if needed). Otherwise it will load the file specified in the uri and send it bac

Re: which module for this purpose?

2007-06-14 Thread Foo JH
and close() functions 3. convert to base64 and send it over Jen mlists wrote: 2007/6/14, Foo JH <[EMAIL PROTECTED]>: Otherwise it will load the file specified in the uri and send it back. Then how can I "load the file and send it back" under modperl?Do I need to call some routi

modperl2 + apache2.2 unable to restart

2007-06-14 Thread Foo JH
Hi all, I was hoping to migrate my apps to the apache2.2 platform. The apps are fine, except that I notice now it's not possible to restart the app - the message 'The requested operation has failed!' pops up. I am running mp2 + libapreq2 + apache2.2 + perl 5.8.8 Can anyone confirm if they ha

Re: which module for this purpose?

2007-06-14 Thread Foo JH
All you need to do (assuming mod_perl2) is: - set the content-type (to whatever file type you are sending) - use $r->sendfile('filename') See http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#C_sendfile_ Good point. Something learnt today.

Re: which module for this purpose?

2007-06-14 Thread Foo JH
Yes I did also consider using mp2.But when I searched on this list and found many guys mentioned they install/run mp2 unsucessfully,so I picked the easy way of mp1.:-) You SHOULD seriously consider mp2. There's 2 platforms on mp2: Apache 2.0 and Apache 2.2 If you're on Windows I'd suggest 2.0

Re: modperl2 + apache2.2 unable to restart

2007-06-15 Thread Foo JH
Perrin Harkins wrote: On 6/14/07, Foo JH <[EMAIL PROTECTED]> wrote: I was hoping to migrate my apps to the apache2.2 platform. The apps are fine, except that I notice now it's not possible to restart the app - the message 'The requested operation has failed!' pops up. Wh

Unable to install libapreq2-2.0 from theoryx5

2007-06-17 Thread Foo JH
Hello all, Since the issue with the Apache restart has not been resolved, I've been looking into downgrading my Apache framework to 2.0 (instead of 2.2). I have hit a minor issue: I can't install libapreq2-2.0. I keep getting this error: ppm install failed: Can't find any package that provide

Re: mod perl version

2007-06-20 Thread Foo JH
2 ways: 1. If you're using Apache 2, you can only using modperl2. There's no other way. 2. If you turn on ServerSignature in httpd.conf, you will see the signature at the footer of a http error page. [EMAIL PROTECTED] wrote: Hi Folks, How will I find which mod perl version I am using, I am

Re: Where to store uploads

2007-07-03 Thread Foo JH
Depending on the number of files you're expecting, you may want to limit the number of files you put in a single folder. For example, in your shared folder you may want to create 26 subfolders - one for each letter of the alphabet. Then you drop the files in the subfolder matching the first let

Re: First time being here, Need Big help here!

2007-07-08 Thread Foo JH
I'm not too good with Debian either, but since you're installing a new OS, my guess is you can also choose the version of the applications as well. Try installing Apache 2 or 2.2 with modperl 2, instead of Apache 1.3 + modperl. The latter is running on legacy support now. Xin Chen wrote: Hi

Re: Performance Questions

2007-07-08 Thread Foo JH
Let us know how it goes - using XSLT that way is often desirable from a developer's point of view, but is usually impractical due to the processing overhead. If you end up successfully using this technique in production without complaints from users please let the list know, I'm sure a few

Re: First time being here, Need Big help here!

2007-07-08 Thread Foo JH
I doubt. Apache2 is a major overhaul. You're better off installing apache2 or 2.2 from scratch. Do note that modperl1 is not compatible with apache 2. Xin Chen wrote: Can I just update from apache1.3 to apache 2, and modperl 2 ? I will try this. Thanks! Foo JH wrote: I'm not too

ModPerl on Apache 2.2 not suitable for Windows platform

2007-07-09 Thread Foo JH
Hi all, This is a summarised follow-up on my earlier post detailing my concerns with modperl on Apache2.2 (with the latest installations of ActivePerl + modperl) not being to restart gracefully. In other words, during a restart it crashed and stopped. I have received similar observations fro

Re: First time being here, Need Big help here!

2007-07-09 Thread Foo JH
Don't understand what you mean. To rephrase myself: Apache 1.3 uses modperl 1 Apache 2.0 and 2.2 uses modperl 2 Does this help? [EMAIL PROTECTED] wrote: In the sentence "> Do note that modperl1" is that mod_perl 1.x or is that an extra 'el'? i assume mod_perl 2 works with apache 2.x On Mon,

Re: DBI and threaded MPM

2007-07-11 Thread Foo JH
Anthony Gardner wrote: Perrin, I never received your mail (actually, I hardly receive any mails form this list) I have to go to the archives to see if I've received any replies or to see what's been posted in general!! You may want to check with your email admin on this. There's posting on this

Re: UTF-8 in mod_perl

2007-07-11 Thread Foo JH
You will want to do 2 things: 1. Set the content type to utf8 ($r->content_type) 2. Encode your output to utf8 (if it's not done already. Sometimes it's just latin1) Cristina Nunes wrote: Hi. I was wondering how I could set the mod_perl (1.x) STDOUT (and STDERR) to expect utf8 char encoding?

Re: Can't call method "prepare" on an undefined value

2007-07-22 Thread Foo JH
Does this happen during idle period? MySQL does disconnect when the idle is too long. Dustin D. wrote: I'm having countless problems with mod_perl and not even sure where to start. I thought I had mod_perl up and running in my development environment, so I pushed the new changes + apache conf

Re: [mp2+Win32] Frustration over Apache 2.0/ 2.2 restart failure

2007-08-10 Thread Foo JH
still not good enough. Apache must still be able to perform a restart on its own. Any suggestions? Foo JH wrote: Hi all, I am rather disappointed (and a little frustrated as well) on modperl's inability to survive an Apache restart on the Windows platform. The platform combo tested are Windo

Re: SV: [mp2+Win32] Frustration over Apache 2.0/ 2.2 restart failure

2007-08-10 Thread Foo JH
fare I haven't experienced any problems (except having to tweak different parameters). So I cross my fingers and hope it will stay this way. Not much of help for you I know, but I remember we have talked about this before Regards Henrik Schak Hansen -Oprindelig meddelelse- Fra: F

[mp2+Win32] Frustration over Apache 2.0/ 2.2 restart failure

2007-08-10 Thread Foo JH
Hi all, I am rather disappointed (and a little frustrated as well) on modperl's inability to survive an Apache restart on the Windows platform. The platform combo tested are Windows 2003 + Apache 2.2 (and Apache 2.0) + modperl2 + libapreq2 I have come to accept the fact that once in a while

Re: SV: [mp2+Win32] Frustration over Apache 2.0/ 2.2 restart failure

2007-08-11 Thread Foo JH
od_perl.so LoadFile bin/libapreq2.dll LoadModule apreq_module modules/mod_apreq2.so Apache/ modperl starts up fine, but if I try to restart the service, it will not survive. Please share with me any tips to improve the situation. I'm open to any ideas. Thanks. Perrin Harkins wrote: On

Re: SV: [mp2+Win32] Frustration over Apache 2.0/ 2.2 restart failure

2007-08-12 Thread Foo JH
William, the point I was trying to make is: 1. My restart test scope merely loads modperl + libapreq. There is ZERO application code loaded. In other words, all I did after installing modperl + libapreq is to ONLY load them into httpd.conf: LoadFile c:/Perl/bin/perl58.dll LoadModule perl_modul

Frustration over Apache 2.0/ 2.2 restart failure => possible package found

2007-08-13 Thread Foo JH
any problems (except having to tweak different parameters). So I cross my fingers and hope it will stay this way. Not much of help for you I know, but I remember we have talked about this before Regards Henrik Schak Hansen -Oprindelig meddelelse- Fra: Foo JH [mailto:[EMAIL PROTECTED] Se

Using modperl from ApacheLounge

2007-08-14 Thread Foo JH
Hi all, Earlier on I was sharing the discovery of an alternative binary for Apache on Win32 at Apache Lounge (http://http://www.apachelounge.com). Here are some updates on the implementation: 1. There are binaries for Apache 2.2 and modperl2, but none for libapreq2. The ppd from theoryx5 wor

Using Apache 2.2 from ApacheLounge for Win32 modperl

2007-08-18 Thread Foo JH
Hi all, While ApacheLounge makes available a Win32 binary of Apache2.2 that seems to work better for modperl than the distribution from apache.com, be advised that if you intend to use libapreq2, you may not want to use the mod_perl binary from ApacheLounge. I don't have the technical detail

Re: Using Apache 2.2 from ApacheLounge for Win32 modperl

2007-08-20 Thread Foo JH
Actually note that it isn't a release and is being rerolled. Seems Apachelounge is doing themselves and their users a disservice, again. I disagree. ApacheLounge's binary distribution is the only one that (configured with modperl) survives an application restart. As I posted in an earlier

Re: Using Apache 2.2 from ApacheLounge for Win32 modperl

2007-08-20 Thread Foo JH
This might be a result of what was mentioned before about possible problems using the binaries from http://www.apachelounge.com/download/ (which is compiled with VC++ 2005) with ActivePerl and ActivePerl-compatible ppm packages (which are compiled with VC++ 6). Mixing these can lead to conf

Re: Configuring Mod_perl and Apache web Server

2007-08-21 Thread Foo JH
Read up on this document and other related ones: http://perl.apache.org/docs/2.0/user/config/config.html Read this also: http://perl.apache.org/docs/2.0/os/win32/index.html usha rani wrote: hi, We would like to have information regarding configuration of MOD_PERL 2.0.3 with Apache Server

Re: Internal Server Error

2007-08-21 Thread Foo JH
So on the first case,we need to write the handler as sub handler { my $r = shift; ...} because Apache may call the function directly as Package::Name::handler. on the second case,we write handler as, sub handler { my $class = shift; my $r = shift; ... } because '->' is a method calling. Am I

Re: Internal Server Error

2007-08-23 Thread Foo JH
Hello Perrin, I'm interested in how you defined your handler with the 'method' attribute: sub handler : method { ... I've read http://perldoc.perl.org/attributes.html about attributes, but it does not seem to suggest that tagging the method attribute to subroutine has any programming advantage

Re: Migrate LWP::UserAgent + HTTP::Request to mod_perl2

2007-08-27 Thread Foo JH
What's the error msg you see? Nguyen Vu Hung wrote: > Hi all, > > The following code run without problems under Apache 1.3.29, Perl 5.6.1, > mod_perl 1.29. > > Under the new environment which is Apache 2.0.52, Perl 5.8.8, mod_perl > 2.0.3 ( Cent OS 4.5 ), it won't run. > > I have read through mod_

Re: PerlRequire executed 4 times on apache startup

2007-08-28 Thread Foo JH
I've had this same experience on Win32 Apache 2 as well. It could be related to the MPM model that the Win32 implementation employs. Tobias Zeising wrote: Hi all, I have a weird problem: on startup apache executes 4 times a Perl Script I included via PerlPostConfigRequire startup.pl in the

Re: The "mod_perl2 User's Guide" book is out

2007-09-10 Thread Foo JH
I've been waiting for this book for the longest time... Stas Bekman wrote: Hi everybody, Jim Brandt, Allison Randal and I are happy to announce that the first book about mod_perl2: The "mod_perl2 User's Guide" has been published and available for purchase. See the book's site: http://modperl

Re: apache2 graphs

2007-09-19 Thread Foo JH
You can consider ImageMagick. It works on standard Perl apps as well. Eli Shemer wrote: Hey there What replacement do I have for Apache::GD to work on mod_perl 2 ? Thanks.

Re: Newbie - Samples or Tutorials

2007-09-23 Thread Foo JH
aqua wrote: Thanks for your email. I am actually looking for current "mod perl" related tutorials and not just Perl related. This HoptScripts site contains 3 mod_perl related tutorials and they are very old (2000). Why not drop by Amazon and pick up the mod_perl 2 book instead? It's just relea

Re: booking should be captured only on the last page

2007-09-23 Thread Foo JH
Is there a qn to this? Perl wrote: I have two different pages having different form. All the forms are having the same Action(input.htm). I need to modify the code such that that the details can be recorded in the database only after parsing the second page .That means for the first page it sho

Best version of Apache for Win32 deployment

2007-10-02 Thread Foo JH
Hi all, Just want to share something I read today (fairly old news) at ApacheLounge: http://www.apachelounge.com/forum/viewtopic.php?t=1907 Since many (most?) people who use Apache from Apache Lounge also use mod_fcgid and/or mod_perl, it seems that 2.2.5 will remain the best Apache version to

Re: Best version of Apache for Win32 deployment

2007-10-03 Thread Foo JH
Right. Except there is no 2.2.5; 2.2.5 is not released on the Apache web site. Those who want this version can get it at ApacheLounge. Of course 2.2.4 essentially worked, while 2.2.7 will give the modperl'ers on Windows something they have BEGGED for forever, the chance to see parsing error

Re: Best version of Apache for Win32 deployment

2007-10-03 Thread Foo JH
Octavian Rasnita wrote: Regarding the best Apache for Windows, I have a problem running Apache under windows and I think this thread might help me. I tried Apache 2.2.4 with and without SSL support, and Apache 2.2.6 from apachelounge, but they still don't work. I'm using 2.2.4 now on Win32, and

Re: Best version of Apache for Win32 deployment

2007-10-03 Thread Foo JH
Because you used theoryx5's perl/modperl/libapreq2 built for VC8, along with the AL build of 2.2.4 ALSO built for VC8, everything is dandy. Equally if you used ActiveState perl (built VC6) + a VC6 build of modperl and libapreq2 with the ASF distribution of httpd 2.2.4, everything is dandy. I

Re: Best version of Apache for Win32 deployment

2007-10-03 Thread Foo JH
I haven't looked into this, but the fact that AL's mod_perl (compiled, presumably, with VC8) doesn't work with, again presumably, ActivePerl (compiled with VC6) may be another example of the dangers of mixing components compiled with VC6 and VC8. Point taken.

Re: Best version of Apache for Win32 deployment

2007-10-03 Thread Foo JH
Sorry man, I'm not too familiar with Catalyst, so I can't pinpoint the problem. But if your tests are good with a clean install of Apache2 + mp2, you may want to check compiler used to build Catalyst (see Randy's email on the VC used for ActivePerl, Apache, and modperl). I suppose Catalyst is n

Re: Apache 2.2.6 and mod_perl 2.0.3

2007-10-03 Thread Foo JH
You may want to hold back on 2.2.6. Use either 2.2.4 from ASF or 2.2.5 from ApacheLounge. Tracy E Schreiber wrote: Hi, I believe that mod_perl 2.0.3 is not compatible with Apache 2.2.6. Starting Apache gives this error: httpd.exe: Syntax error on line 31 of D:/Apache/conf/httpd.conf: Cannot

Re: Apache 2.2.6 and mod_perl 2.0.3

2007-10-04 Thread Foo JH
Why don't you read about what's new in 2.2: http://httpd.apache.org/docs/2.2/new_features_2_2.html Jeff Pang wrote: Hello, Does apache2.2+mp2 have much advantage than apache2.0+mp2? 2007/10/4, Foo JH <[EMAIL PROTECTED]>: You may want to hold back on 2.2.6. Use either 2

Re: Apache crashing

2007-10-09 Thread Foo JH
What's your modperl config like? Ian G. Tyndall wrote: Ok, I decided to upgrade my Apache to see if that would fix things. I installed 2.2.4, and I was getting the same error as originally reported... but more often. Then, I upgraded to 2.2.6 from the Apachelounge... and now I'm getting an erro

Re: Apache crashing

2007-10-10 Thread Foo JH
PerlHandler ModPerl::Registry PerlSendHeader On Earlier in the conf, I'm doing: PerlSwitches -IX:/perl/5.8.8/site/lib PerlInitHandler Apache2::Reload PerlHandler ModPerl::Registry -----Original Message- From: Foo JH [mailto:[EMAIL PROTECTED] Sent: Tuesday, Octo

Re: mod_perl MVC framework.

2007-10-24 Thread Foo JH
What is fast to cook, good to eat is HTML::Template. No XML, easy abstraction between your web designer and developer. Tyler Bird wrote: Hi List, Hey I was wondering if there was any MVC framework that anybody on this list could point me to that work work well with mod_perl. We are having d

Re: mod_perl.so is garbled - expected signature 41503232 but saw 41503230

2007-10-31 Thread Foo JH
Hello Noah, I'm using FreeBSD as well, but I'm usually too scared to run cvsup because that usually (almost always) will cause my make install to fail. Can you confirm if you did a cvsup-nogui as well? Can you explain how you do the 'apache configuration file update'? Noah wrote: thanks An

modperl on Win32 is still happening

2007-12-05 Thread Foo JH
Looking at the (albeit small) stream of entries to the mailing list, I'm actually quite happy to notice that people are: 1. Still using modperl. Some newbie questions may suggest fresh blood... 2. Still using modperl on Win32 (despite the 'limitations'). Good news for Microsoft, but I personally

Looking for a career in Perl overseas

2007-12-05 Thread Foo JH
For what it's worth, I'm gonna try anyway... I'm a Perl/ C# developer in Singapore with some 9 years in development, looking forward to enjoy a career in a new culture and environment (outside of Singapore). No criminal records, though some will claim I've sinned for learning C# instead of Jav

Re: modperl on Win32 is still happening

2007-12-11 Thread Foo JH
Firstly: mod_perl is a good choice. :) There are other languages out there which can probably do the same job 90% of the time. But what you have chosen is a language that is: 1. OS independent 2. Highly extensible via CPAN 3. Fast to cook, good to eat It's not a question of whether you can do j

Re: Theory and practice of mod_perl win32

2008-01-06 Thread Foo JH
Thinking from the perspective of the developer who tries very hard to avoid dealing with C/C++, can the ApacheLounge patches and compilation do the trick? Caveat: have not read the dialog on the mailing list described. William A. Rowe, Jr. wrote: Anyone following the dialog on [EMAIL PROTECTE

Re: Caching & Packaging

2008-01-09 Thread Foo JH
If you're running your scripts in Apache2::Registry, your scripts are compiled on first go, and remain in memory subsequently. When your script changes, the change should be detected, and recompilation is automatic. IMHO this is a real time saver as development goes. do() is bad for speed op

Re: Apache2::Upload partial upload

2008-01-09 Thread Foo JH
Is there any value in receiving an incomplete upload? Are you better off deciding how to avoid the timeout instead? Malcolm wrote: Is there any way to get some of the pieces of an incomplete multi-part post? The situation I have is a client uploading multiple files as pieces of a POST, but th

  1   2   >