sverrill has asked for the wisdom of the Perl Monks concerning the following question:
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,
but under the Apache 2 server, the Perl cgi programs produce no output from, for example,@proglist = ("echo","hello, world!<br>"); system(@proglist);
where tolerance.test is a Fortran executable in the cgi directory and the other values are inputs to the Fortran program.@proglist = ("tolerance.test","$content","$conflev","$n"); system(@proglist);
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: cgi/perl/fortran web program
by Corion (Patriarch) on Dec 14, 2016 at 08:26 UTC | |
|
Re: cgi/perl/fortran web program
by huck (Prior) on Dec 14, 2016 at 02:32 UTC | |
|
Re: cgi/perl/fortran web program
by soonix (Chancellor) on Dec 14, 2016 at 07:33 UTC | |
|
Re: cgi/perl/fortran web program
by sverrill (Novice) on Dec 14, 2016 at 23:57 UTC | |
by huck (Prior) on Dec 15, 2016 at 00:40 UTC | |
by haukex (Archbishop) on Dec 15, 2016 at 08:38 UTC | |
by hippo (Archbishop) on Dec 15, 2016 at 09:49 UTC | |
|
Re: cgi/perl/fortran web program
by sverrill (Novice) on Dec 16, 2016 at 20:40 UTC |