how about cleaning up you Apache2 configuration file? replace this lines:

PerlModule ModPerl::PerlRun #Alias /perl/ /var/www/perl/ ScriptAlias /cgi-bin /var/www/cgi-bin/ ScriptAlias /perl/ /var/www/perl/ <Location /perl> allow from all SetHandler perl-script AddHandler cgi-script .cgi .pl #PerlHandler Apache::Registry #PerlHandler Apache::PerlRun PerlResponseHandler ModPerl::PerlRun Options +ExecCGI PerlSendHeader On </Location> <Directory /var/www/perl> allow from all Options +ExecCGI #AddHandler cgi-script .pl #SetHandler perl-script PerlResponseHandler ModPerl::PerlRun </Directory>

with only this:

PerlModule ModPerl::Registry ScriptAlias /cgi-bin /var/www/cgi-bin/ <Location "/perl"> SetHandler perl-script PerlHandler ModPerl::Registry Options +ExecCGI </Location>

as far as i can tell, the directive shown below is telling Apache to serve content from /var/www/perl as CGI using mod_cgi and because it's written before the mod_perl settings it takes precedence over those, ignoring them:

ScriptAlias /perl/ /var/www/perl/

also, may i suggest that you get in the good habbit of Debian/Ubuntu W.R.T. setting up Apache2 servers? that is create a file in /etc/apache2/sites-available with your settings and enable it using this command

a2ensite myproject && /etc/init.d/apache2 restart

that way you can exclude parts of your configuration in case you need to debug your Apache configuration. more info is in your /etc/apache2/README file.

:)))))

In reply to Re^3: mod-perl configuration under Apache2 by asz
in thread mod-perl configuration under Apache2 by Bruce32903

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.