After adding the LoadModules to your httpd.conf file, you should have restarted Apache. The output from that will be in your error_log file, before the error messages that you posted originally. What does the signature line (the last output line from the restart) say?

Upload seems a strange place to start your adventures with mod_perl, but probably that's what you're interested in. Most people would start with a small script that just output an HTML or text page (or using a CGI program that they already have). Then you can branch out into uploading.

Typically, one adds several more things to httpd.conf in addition to the LoadModule lines. If you're don't want to get the recommended book, try the following page and click on the "Server Configuration" link: http://perl.apache.org/docs/2.0/user/index.html In particular you need to create a directory to hold mod_perl scripts, and move your script into it. Then you need to put a Location block in httpd.conf that sets the new directory up to use mod_perl, as described in the linked page.

Where on the Apache site did you get the code snippet?

cmac

In reply to Re^3: mod_perl lib problem by cmac
in thread mod_perl lib problem by daveklingler

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.