Getting Started with mod_perl in
30 Minutes Page 5

This is very very insecure and you should not follow this
approach on the production machine. This is good enough when you just want to
try things out and want to have as few obstacles as possible. Once you
understand how things work, you should tighten the permissions of files served
by Apache. In future articles we will talk about setting proper file
permissions.

Save this script in the /home/httpd/perl/mod_perl_rules1.pl
file. Notice that the shebang line is not needed with mod_perl,
but you can keep it if you want. So the following script can be used as well:

Now make both of the scripts executable and readable by the server.
Remember that when you execute scripts from a shell, they are being executed by
the user-name you are logged with. When instead you try to run the scripts by
issuing requests, Apache needs to be able to read and execute them. Apache is
running under a user-name specified by the User directive. If the
server is running under user-name nobody, the following will do: