Re: Installing modperl under different directory tree

2004-02-06 Thread David Hodgkinson
On 6 Feb 2004, at 19:54, Hamilton, Henrique H wrote: Does anyone know of a way to install modperl 2 under a different directory tree (say under /opt/modperl_1.9.12) in Redhat Linux 7.X? What are you doing with apache? Typically, there are two courses of action: 1. Be a slave to Redhat and do th

Re: Installing modperl under different directory tree

2004-02-06 Thread David Hodgkinson
On 6 Feb 2004, at 21:37, Hamilton, Henrique H wrote: I'm building modperl2 from source. Against a stock RH RPM? I was hoping that since I plan on building it as a dso I would be able to compile the dso to point to a different directory. Why? -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://ww

Re: Installing modperl under different directory tree

2004-02-06 Thread David Hodgkinson
On 6 Feb 2004, at 21:53, Hamilton, Henrique H wrote: I haven't found anywhere that has rpm's for modperl2 on RH 7.3. I also haven't had much luck building modperl2 statically into apache2.0.48. Which means I have to build the rpm myself. (This rpm will eventually be part of an apache2/Tomcat5 rp

Re: CDB_File

2004-03-19 Thread David Hodgkinson
On 20 Mar 2004, at 0:54, Lester Vecsey wrote: I'm serving many web requests with an apache modperl handler, and I'm doing lookups on a CDB_File within the handler, using 'tie' to open the cdb file for every request that comes through. Is there a way to gain more performance by somehow doing a ti

Re: mod_perl performance question

2004-04-09 Thread David Hodgkinson
On 8 Apr 2004, at 16:48, Pascal Felber wrote: We have noticed some "strange" behavior when stress-testing one of our perl modules and we haven't managed to find an explanation or workaround in the mod_perl documentation. We have reproduced this problem with a minimal module, installed as a PerlRe

Re: which API to use for listing files ? (newbie question)

2004-05-09 Thread David Hodgkinson
On 9 May 2004, at 0:29, aravind elango wrote: Hi, I am new to programming in modperl and am trying to do a recursive listing of files in a directory. Sounds like you need the File::Find module from CPAN. -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com/ Web sites for rock b

Re: environment not getting reset

2004-05-15 Thread David Hodgkinson
On 15 May 2004, at 19:38, Alex Krohn wrote: Hi, I'm facing a weird problem that's proving difficult to track down. After a certain number of hits to our mod_perl apps, the environment no longer gets reset per request. For example, if you have a script that just dumps the environment, after hitting

Re: One and Two again.

2004-07-09 Thread David Hodgkinson
On 9 Jul 2004, at 19:25, David Arnold wrote: My question to the people on this list: How to proceed? Can modperl1 and modperl2 coexist? Can they both run with the latest apache? Can someone outline the steps I should take to achieve my goal? Especially if there is someone on the list who has expe

Re: Light image server in low-traffic conditions?

2004-08-04 Thread David Hodgkinson
On 4 Aug 2004, at 00:48, Larry Leszczynski wrote: On Tue, 3 Aug 2004, Philippe M. Chiasson wrote: I've had lots of success with a light reverse proxy (httpd or squid) in front of my mod_perl servers. I would recommend it, as it's simpler than 2 completely separate servers for dynamic content and

Re: Hosting provider disallows mod_perl - "memory hog / unstable"

2004-09-13 Thread David Hodgkinson
On 11 Sep 2004, at 20:35, Will Yardley wrote: But businesses don't just let various random people off the street write code and then load it on their servers. Explain the success of PHP then. Apparently the cross-site holes were tolerable for long enough... Will Yardley (of DreamHost) You guy suck

mod_perl hosting

2004-10-25 Thread David Hodgkinson
Hi all, I'm currently hosting a site which is to be hosted elsewhere. It's got a small mod_perl gadget embedded that does a little magic with charsets and the Template Toolkit. The site runs to about 60G of bandwidth per month and has a faar few mailing lists. And thoughts on reasonable cost hostin

Re: How to get a core dump

2004-11-08 Thread David Hodgkinson
On 8 Nov 2004, at 14:39, Marc Gracia wrote: So, my question is... There is any way to force apache to dump a coredump file? I suppose I'm forgotting something but I really desperate... Yes. As root, you need to do the ulimit magic and then start the server. My question is: do you *really* need to d

Re: Email::Valid returns "invalid domain" for goood email addresses?

2004-11-26 Thread David Hodgkinson
On 26 Nov 2004, at 17:43, Mike Ward wrote: Hi, I'm using Email::Valid to check the validity of submitted email addresses, and for some reason, it thinks that "mike[at)skybird-travel.com" (replace [at) with @, obviously) contains a invalid domain. I'm using the module like so: eval { $addr = Email

Apache::ExtUtils

2017-08-24 Thread David Hodgkinson
Hi, I have a little C code that’s bound into mod_perl 1.3, 2005-era code. We’re trying to get everything up to date, so 2.0.10 from EPEL it is. However, this code uses Apache::ExtUtils which no longer exists. Is there a replacement or is binding C code in easier these days? Thanks, David

Re: Apache::ExtUtils

2017-08-24 Thread David Hodgkinson
> On 24 Aug 2017, at 11:10, David Hodgkinson wrote: > > Hi, > > I have a little C code that’s bound into mod_perl 1.3, 2005-era code. We’re > trying to get everything up to date, so 2.0.10 from EPEL it is. > > However, this code uses Apache::ExtUtils which no longer

Re: Compiling with Apache 2.4

2017-09-30 Thread David Hodgkinson
> > This doesn't work. I just throw up my hands at this point. ModPerl is > obviously so broken now that it can no longer be used. Having spent a few months coaxing some 2005-era apache and mod_perl into modern life, I kicked out all the self-build apache, mod_perl, perl from Bamboo and went

Re: Future MPM Support?

2018-06-07 Thread David Hodgkinson
We’re all about the Plack these days. > On 7 Jun 2018, at 18:21, John Dunlap wrote: > > Are there any plans for mod_perl to support mpm_event, mpm_worker? Every time > I try to use something other than mpm_prefork I am plagued by segfaults. > > -- > John Dunlap > CTO | Lariat > > Direct: >

Re: Future MPM Support?

2018-06-07 Thread David Hodgkinson
No. Different concept. > On 7 Jun 2018, at 18:52, John Dunlap wrote: > > Is Plack backwards compatible with mod_perl? > >> On Thu, Jun 7, 2018 at 5:44 PM, David Hodgkinson wrote: >> We’re all about the Plack these days. >> >>> On 7 Jun 2018, at 18:21,

Re: Future MPM Support?

2018-06-07 Thread David Hodgkinson
PM, Clive Eisen wrote: >>> On 7 Jun 2018, at 19:13, David Hodgkinson wrote: >>> >>> No. Different concept. >>> >>>> On 7 Jun 2018, at 18:52, John Dunlap wrote: >>>> >>>> Is Plack backwards compatible with mod_perl? >

Re: CGI::Session or CGI::Application

2005-01-15 Thread David Hodgkinson
On 15 Jan 2005, at 05:29, Octavian Rasnita wrote: Hi, If I want to use CGI::Session or CGI::Application, can I do it if I use mod_perl or there are better modules for using with MP? CGI::Application JFW for me under mod_perl. -- Dave Hodgkinson CTO, Rockit Factory Ltd. http://www.rockitfactory.com

Re: modperl 2.0.0-rc4 statically linked with httpd-2.0.53

2005-03-01 Thread David Hodgkinson
On 1 Mar 2005, at 21:58, Gokul P. Nair wrote: how do i find out if mod_perl is statically linked to apache or dynamically? the reason i need to know this is because in order to install HTML::Mason, it is strictly reccomended that mod_perl be statically linked to apache. httpd -l Try it as a dso. on

Re: is there a templating system that....

2005-08-15 Thread David Hodgkinson
On 15 Aug 2005, at 06:06, jonathan vanasco wrote: HTML::Template got ruled out because the only way to get templates to render as xhtml valid is to use info as comments Huh? you want to validate templates? A template is just that. What it renders to should be validated!

Re: is there a templating system that....

2005-08-15 Thread David Hodgkinson
On 15 Aug 2005, at 23:02, David Nicol wrote: (getting tired of this thread) It's also now firmly off topic of the mod_perl list! Dave // Having spent most of today explaining the principle of doing \\ the least possible computation at run time...

Re: apache children waits for each other?

2005-08-16 Thread David Hodgkinson
On 16 Aug 2005, at 06:55, Badai Aqrandista wrote: Badai Aqrandista wrote: My mod_perl web app uses memcached to cache most of the (MySQL) database query results and as the session storage (Apache::Session::Memcached). Would it be a problem for your application if you suddenly lost

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread David Hodgkinson
On 18 Aug 2005, at 18:18, Jonathan Vanasco wrote: Instead of connecting to the DB and having DBI cache the handle after-the-fork, would it make sense to subclass Apache::DBI, have the parent process create a defined number of connections, and then use some sort of roundrobin/checkout to si

Re: Question about using Apache::DBI with Postgres/MySQL

2005-08-18 Thread David Hodgkinson
On 18 Aug 2005, at 18:58, Jonathan Vanasco wrote: i'm thinking about moving to pgsql for stored procedures too (yes my5 has it, but its beta), but thats an entirely OT discussion. And you have pgpool too. But you're still trying to optimise prematurely. Treat your fat apaches as application

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-29 Thread David Hodgkinson
On 29 Aug 2005, at 01:15, Badai Aqrandista wrote: I think I have to write some of the code in C. I can't find any other places in the code to optimize (or probably I uncounciously don't want to make changes because I don't have any test suites)... Then how do you know what to write in C?

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-30 Thread David Hodgkinson
On 30 Aug 2005, at 01:56, Badai Aqrandista wrote: You *do* have KeepAlive off in your httpd, right? No... I mean in the backend Apache, not the frontend whatever. When you're happering your server, is the CPU on the server running at or near 100%? If not, you have other problems.

Re: maintaining shared memory size (was: Re: swampedwithconnection?)

2005-08-31 Thread David Hodgkinson
On 30 Aug 2005, at 10:16, Badai Aqrandista wrote: I used to use A::S::MySQL, but it created 2 connections for every process. This caused 'Too many connections' error. So I tried to use memcached. Now that I know how to make one connection per process (using database.table identifier on al

Re: a faster html::template?

2005-09-04 Thread David Hodgkinson
On 2 Sep 2005, at 03:53, Foo Ji-Haw wrote: Hi all, I'm a happy user of HTML::Template on my mp2 setup. But when it comes to performance, I notice that to populate a loop of some 1500 records, the system takes 2-3 seconds on my P4 2GHz machine. I think that's way too long, especially on a

Re: a faster html::template?

2005-09-07 Thread David Hodgkinson
On 7 Sep 2005, at 21:07, Perrin Harkins wrote: On Wed, 2005-09-07 at 20:41 +0300, Octavian Rasnita wrote: I have used Template-Toolkit, and the time used for parsing those templates used to double the whole time the program needed to run, so the speed of template parsing could be importan