You need mod_perl 1.24_01 to go with Apache 1.3.14. Get it
here.
-dlc | [reply] |
After some digging around on one of the mod_perl mailing lists, it appears that apache_1.3.14 is broken somehow in relation to mod_perl_1.24. The consensus seems to be that you'll need to get mod_perl_1.24_01 in order for it all to work correctly.
Hope this helps!
Guildenstern Negaterd character class uber alles! | [reply] |
I hit this recently. There is a newer version
of mod_perl - 1.24_01 - getting that solved my problem.
Have fun,
rdw
| [reply] |
Just while we're on the subject. Im wondering if anyone can answer these questions for me? Or point me to somewhere that could (please keep it short and easy to understand).
1. What is mod_perl?
2. Are there any differences between coding mod_perl and the regular ol' Perl?
Thanks to all who answer!
Wanna be perl hacker. Dave AKA damian | [reply] |
mod_perl syntax isn't different from perl. It is just a module as far as the perl side (it interacts with the Apache side, which is why apache needs to be patched, but the perl works the same)
_writing_ scripts with mod_perl is fairly significantly different. You can write stuff using Apache::Registry, but that's really a stopgap measure.
mod_perl allows you to write handlers for requests to apache. "Normally", with a cgi script, the request comes in, apache looks at it and does all the various lookups to get the right file. It then says "Ah, this is a CGI request", and hands it to the CGI handler.
This, in turn, reads in the file, executes the she-bang line, and your script runs just as if it had been run from the command line. Output is then handed back to Apache, which passes it to the browser, and the user sees the results.
mod_perl lets you write your own handlers for requests. This is vastly faster, since you don't have to load Perl (it's resident), and perl has already pre-interpreted what it can of the script. It does represent a difference in how you think of requests. Your variables aren't limited to one execution, for example.
mod_perl is cool. The various mod_perl sites tend to assume you know what's going on, so I highly recommend the Eagle book from O'Reilly.
(The above is my simplified and possibly wrong interpretation of how mod_perl and Apache work their magic)
| [reply] |
In short, mod_perl is an extension to Apache to make Perl code run better under Apache. The homepage, or at least a very good starting point seems to be http://perl.apache.org.
For the differences, there are some sites, but I can't find them right now and my best friend just came to visit - sorry, I'll put an update here later ...
| [reply] |
sweet! ++'s for everyone! :) | [reply] |
| [reply] |