Really, it shouldn't be that hard in Apache, on whatever platform you're running it on (*nix-slanted instructions are here).

You're probably missing something easily fixed, but which has to work right; it's hardly worth the effort to reinvent this wheel. CGI is a protocol that has to be implemented in a certain way to work right (e.g. the user input has to get to the right place). Although I'm pretty sure one could implement something like it in HTTP::Daemon, unless you're looking for a wacky project stick with the tried-and-true solution (one could, in the same sense, replicate the Empire State building in downtown London all by oneself).

Try putting something like this in your httpd.conf file; if it doesn't work, say what's not working (500 error? Just shows the source code?) and look at your webserver's error_log.

# might need to be /apache/cgi-bin -> points to a directory on your ha +rd drive Alias /cgi-bin c:\apache\cgi-bin <Location /cgi-bin> AllowOverride None Order allow,deny Allow from all Options +ExecCGI </Location>

HTH

Philosophy can be made out of anything. Or less -- Jerry A. Fodor


In reply to Re: CGI web server in Perl by arturo
in thread CGI web server in Perl by HTTP-404

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.