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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.