I know this is not a PERL forum, but I have a question associated to Perl and PHP, if anyone can help me.
I compiled the PERL API scripts required for DataCash(www.datacash.com) - credit card verification. We have Perl version 5.005_03 on Linux server.
When i execute the perlscript from command prompt (installation directory or from cgi-bin directory), it runs fine and gives me the right output - verification of the credit card number.
The same perlscript fails to execute from the Browser, although it resides in the cgi-bin directory and Apache has been configured to run cgi/perl scripts from there.
Here is the error-log entry from Apache.
[Mon Aug 13 11:39:47 2001] [error] (2)No such file or directory: exec of /home/h
ttpd/cgi-bin/perlscript.pl failed
[Mon Aug 13 11:39:47 2001] [error] Premature end of script
headers: /home/httpd/cgi-bin/perlscript.pl
The perlscript uses many perl module files , eg. use strict ;
use DataCash::External;
etc...
I also tried running in a PHP script as
<?
$datacash_string = "perl /home/httpd/cgi-bin/perlscript.pl" ;
system($datacash_string) ;
echo "<br>" ;
exec($datacash_string, $result1) ;
print_r($result1) ;
?>
But no output on the Browser.
I feel Apache server fails to find these modules.
How do I make this script run and execute and return the values back to browser ?
How to make Apache understand the perl module paths ?
Any help will be highly appreciated.
Thank you,
Brij.