i am fairly certain i have perl installed (although i have no clue how to check).

Run perl -v and you'll find out.

oh yes - i wish to not have to "sudo" into the conf files all the time ...

Run sudo -i. Don't forget to exit when you are done. This is not secure but it'll do what you ask. Better to amend sudoers to increase the timeout - but that's more advanced and for another day.

i had little to no problem just uncommenting "LoadModule cgi_module modules/mod_cgi.so" in the httpd.conf file...but, none of these lines exist in the apache2.conf file

Ubuntu has its own unique way of laying out apache. If you stick with that, then use a2enable to enable modules rather than editing the conf files. You will also need SetHandler in there somewhere, maybe ubuntu does that for you too, so grep the whole conf tree to find it.

Most of this has very little to do with perl. You can just as easily write a demo CGI in bash (say) and you'll have the same problems. If you need ubuntu-specific help you will have better luck asking on an ubuntu forum such as askubuntu. Good luck.


In reply to (Mostly OT) Re: perl and apache2 on ubuntu 17.04 by hippo
in thread perl and apache2 on ubuntu 17.04 by jamroll

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.