saintmike has asked for the wisdom of the Perl Monks concerning the following question:

Esteemed monks, has anyone ever tried to get a perl built with 'usethreads' to run with mod_perl and apache 1.3.x? I know this doesn't sound right, and indeed, it lets apache core dump at startup.

But is there a dirty trick I could pull to make it work anyway? (Using apache-2 or a different perl doesn't count.)

Any pointers highly appreciated.

  • Comment on Multi-threaded perl, mod_perl and apache-1.3.x?

Replies are listed 'Best First'.
Re: Multi-threaded perl, mod_perl and apache-1.3.x?
by perrin (Chancellor) on Jan 07, 2006 at 19:03 UTC
    Just enabling threads should not be a problem for mod_perl 1.x. Indeed Red Hat's perl is shipped with threads enabled, and many people use it (although they suffer a performance penalty for doing so). Can you explain a bit more about what you're trying to do and how it fails?
      Interesting, if I have apache load the libperl.so produced by a multi-threaded perl, it cores. I don't need perl's threads at all, it's just that I need to use a particular build.

      Your comment about Red Hat is encouraging. I'm looking for a combination of usethreads, use5005threads, useithreads, and usemultiplicity settings that works, I'll check out theirs, maybe I get lucky.

        Did you build mod_perl yourself against this perl? If so, it should work. You might want to look at the build instructions on the mod_perl site and possibly post your issue to the mailing list.