Like most UNIX programs, mod_perl requires
a small startup file that it reads its initial configuration information
from. This file, named startup.pl,
is created in the conf
subdirectory of the Apache installation. Become root using su
or sudo, and use your
favorite text editor to create the startup.pl
file in the Apache conf
directory.
|
Below is the contents of a basic startup.pl
file. Place the below text in the file you have created, save the
file, then exit your text editor.
|
Calling The Startup File From httpd.conf
Once you have created the startup.pl
file, you must instruct the server to call it by placing a few lines at
the bottom of the httpd.conf
file that Apache reads configuration information from. To do this,
become root using su
or sudo and edit the
httpd.conf
file with your text editor of choice.
|
Move to the bottom of the file (use Shift-G
in vi), and add the following lines of text:
|
Save the file, and exit the text editor.