Under an old Apache server on a SunBlade 1500 system running Solaris 10, I have written Perl cgi programs that in turn call Fortran programs via a system command. These programs work under an old (circa 2000) Apache server.

I would like to upgrade to Apache 2 (provided as part of the Solaris 10 distribution). When I run the same Perl cgi programs under the Apache 2 server (as opposed to the old Apache server), the Perl portions of the cgi programs work. Also they can successfully run, for example,

@proglist = ("echo","hello, world!<br>"); system(@proglist);
but under the Apache 2 server, the Perl cgi programs produce no output from, for example,
@proglist = ("tolerance.test","$content","$conflev","$n"); system(@proglist);
where tolerance.test is a Fortran executable in the cgi directory and the other values are inputs to the Fortran program.

The Fortran executable DOES produce output if I am running under the old Apache server.

I realize that it is possible that the problem lies with the two different httpd.conf files (for the Apache and Apache 2 servers) or with "permissions" or with something else. I haven't been able to identify the problem. Any suggestions?

An example of a working (under the old Apache server) web program with a link to the underlying Perl and Fortran code can be found at http://www1.fpl.fs.fed.us/conversion.html


In reply to cgi/perl/fortran web program by sverrill

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.