What flavor of linux are you using?

This might be a permission issue (chmod). Or if you're running SELinux it could be a security context issue (chcon). I think Fedora comes with this feature on by default, so it's a common "gottcha".

A good sanity check is to try running the cgi script from the command line. If that works, you know that the script runs as *you*, so the problem has to do with running the script as the apache user ('nobody' or 'www-data').

If your distribution provides a package manager for installs, did you use it? Ubuntu (and other Debian variants) have apt-get. RedHat (and variants) have yum. If you use those systems to install things like apache, mysql, etc. then everything should "just work". The only time I've ever had to muck around with LD_LIBRARY_PATH, etc. is when I downloaded tar balls and tried to compile/install "custom" versions of stuff myself. In fact, I even prefer apt-get for installing perl modules over CPAN, especially if the module has a binary component (i.e, things like DBI).


In reply to Re: Do XS-components require special considerations with CGI? by scorpio17
in thread Do XS-components require special considerations with CGI? [SOLVED] by locked_user sundialsvc4

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.