I'm sorry if I am annoying you, but I am new at this.

I installed Apache and I am now able to access the files using the 'http://abc/abc' format. However, whenever I tried to run the Perl script, I get asked if I want to "save it as".

So, I went and tried to edit 'httpd.conf'. I put the following lines in hoping that it would allow me to run the scripts:

<Directory /myfolder> Options ExecCGI </Directory>

But that didn't work. I even put in the following instead:

<Directory /myfolder> AllowOverride None Options +ExecCGI -Include SetHandler cgi-script .cgi <IfDefine PERL> AddHandler perl-script .pl </IfDefine> </Directory>

...or something like that(I'm writing off the top of my head). Failure once again. Can you please help me out?

-- zdog (Zenon Zabinski)
   Go Bells!! '¿'

Update: I finally got it after hacking into 'httpd.conf' for three hours. Thank you for everybody's help.


In reply to (zdog) Re: (2) Linux - Perl problem by zdog
in thread Linux - Perl problem by zdog

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.