[ Team LiB ] |
Recipe 2.4 Installing mod_perl on a Unixish SystemProblemYou want to install the mod_perl scripting module to allow better Perl script performance and easy integration with the web server. SolutionDownload and unpack the mod_perl source package from http://perl.apache.org/. Then use the following command: % perl Makefile.PL \ > USE_APXS=1 \ > WITH_APXS= /usr/local/apache/bin/apxs \ > EVERYTHING=1 \ > PERL_USELARGEFILES=0 % make % make install Restart your server. Discussionmod_perl is quite a complex module, and there are several different ways to add it to your server. This recipe is the fastest and lowest-impact one; if it doesn't suit your needs, check the various README.* files in the package directory after unpacking. Because its primary language is Perl rather than C, the installation instructions are significantly different from those for most other modules. Once you have restarted your server successfully, mod_perl should be available and configured as part of it. You can test it by making some changes to the httpd.conf file, adding a few scripts, and seeing whether the server processes them correctly. Here is a sample set of steps to test mod_perl's operation.
If your configuration is valid, the response should be a page containing simply the words, "Hello, world! Love, mod_perl." See Also
|
[ Team LiB ] |