Jump to content

PERL on SAT-Receiver


eriche

Recommended Posts

Hello,

 

I use "Apache/2.0.44" and "PHP Version 4.3.0".

But I have problems with getting Perl run  ???

 

I put following Perl Script in "httpd\htdocs"

 

#!/hdd/opt/perl/bin/perl -d

use strict;

print "Content-type: text/html\n\n";
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">', "\n";
print "<html><head><title>Test-Ausgabe</title></head><body>\n";
print "<h1>Hurra, es klappt!</h1>\n";
print "</body></html>\n";

$Zahl = 42;
$Quadrat = $Zahl * $Zahl;
print "Das Quadrat von ", $Zahl, " = ", $Quadrat, "\n";

 

BUT I only get  ::)

 

#!/hdd/opt/perl/bin/perl -d use strict; print "Content-type: text/html\n\n"; print '', "\n"; print "\n"; print "
Hurra, es klappt!
\n"; print "\n"; $Zahl = 42; $Quadrat = $Zahl * $Zahl; print "Das Quadrat von ", $Zahl, " = ", $Quadrat, "\n"; 

 

What do I need to put into httpd.conf to get Perl run?

 

Greets erich

Link to comment
https://forums.phpfreaks.com/topic/81042-perl-on-sat-receiver/
Share on other sites

Considering this is your first post, what tipped your decision into asking this on a PHP forum rather than a Perl forum?

 

As far as I'm aware, you don't need to put anything in your httpd.conf file for Perl to work. Have you made your perl script executable and have you checked the path to perl matches what you have in your shebang line? This can generally be checked by typing 'which perl' into your command line, assuming you're using a variant of Linux...

Link to comment
https://forums.phpfreaks.com/topic/81042-perl-on-sat-receiver/#findComment-411172
Share on other sites

sorry I didn`t find a good place for posting my PERL stuff  ;)

 

root@dm7020:/media/hdd/opt/httpd/htdocs> which perl

/hdd/opt/perl/bin/perl

 

So my Perl Path seems ok!

 

I am sure that I shoul add something to httpd.conf

 

Putting "AddHandler cgi-script cgi pl" to httpd.conf brings now following Message

 

Forbidden

You don't have permission to access /index.pl on this server.

--------------------------------------------------------------------------------

Apache/2.0.44 (Unix) PHP/4.3.0 Server at 192.168.1.88 Port 8080

 

My index.pl has rights 755

 

Greet`s erich

 

Link to comment
https://forums.phpfreaks.com/topic/81042-perl-on-sat-receiver/#findComment-411179
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.