eriche Posted December 10, 2007 Share Posted December 10, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/81042-perl-on-sat-receiver/ Share on other sites More sharing options...
zq29 Posted December 10, 2007 Share Posted December 10, 2007 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... Quote Link to comment https://forums.phpfreaks.com/topic/81042-perl-on-sat-receiver/#findComment-411172 Share on other sites More sharing options...
eriche Posted December 10, 2007 Author Share Posted December 10, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/81042-perl-on-sat-receiver/#findComment-411179 Share on other sites More sharing options...
effigy Posted December 10, 2007 Share Posted December 10, 2007 sorry I didn`t find a good place for posting my PERL stuff http://perlmonks.org/?node=Seekers%20of%20Perl%20Wisdom Quote Link to comment https://forums.phpfreaks.com/topic/81042-perl-on-sat-receiver/#findComment-411216 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.