[gelöst] mod_fcgid und perl
Posted: 2009-07-06 22:04
Hallo,
ich habe bis jetzt mod_fcgid mit PHP5 unter ubuntu 9.04 erfolgreich ans laufen gebracht. Will nun auch Perl Skripte ans laufen bringen. Dafür habe ich mal ganz naiv das gleiche für Perl gemacht
Aapche VHOST config:
Der Wrapper
Mein test Perl Skript was ich in /var/www/virtual/domain.de/htdocs erstellt habe
Wenn ich die test.pl im Browser ausführe, dann bekomme ich einen 500 Internal Server Error
Meine Error log spuckt dann folgendes aus.
In meiner Suexec log sind keine Fehler
fcgid kann doch Perl?
ich habe bis jetzt mod_fcgid mit PHP5 unter ubuntu 9.04 erfolgreich ans laufen gebracht. Will nun auch Perl Skripte ans laufen bringen. Dafür habe ich mal ganz naiv das gleiche für Perl gemacht
Aapche VHOST config:
Code: Select all
...
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
SuexecUserGroup "itjungs" "kunden"
AddHandler fcgid-script .php .pl
FCGIWrapper /var/www/virtual/domain.de/cgi-bin/php-fcgi-wrapper.bash .php
FCGIWrapper /var/www/virtual/domain.de/cgi-bin/perl-fcgi-wrapper.bash .pl
Alias /fcgi-bin/ /var/www/virtual/domain.de/cgi-bin/
<Location /fcgi-bin/>
SetHandler fcgi-script
Options +ExecCGI
</Location>
...Code: Select all
#!/bin/sh
exec /usr/bin/perlCode: Select all
#!/usr/bin/perl -w
use FCGI;
use strict;
my $Text = "Hallo Welt";
print "Content-type: text/htmlnn";
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">', "n";
print "<html><head><title>Hallo Welt</title></head><body>n";
print "<h1>$Text</h1>n";
print "</body></html>n";Meine Error log spuckt dann folgendes aus.
Code: Select all
[Sat Jun 27 09:49:58 2009] [notice] mod_fcgid: call /var/www/virtual/domain.de/htdocs/test.pl with wrapper /var/www/virtual/domain.de/cgi-bin/php5-default/perl-fcgi-wrapper.bash
[Sat Jun 27 09:49:58 2009] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Sat Jun 27 09:49:58 2009] [error] [client 192.168.1.133] Premature end of script headers: test.pl
[Sat Jun 27 09:50:01 2009] [notice] mod_fcgid: process /var/www/virtual/domain.de/htdocs/test.pl(2307) exit(communication error), terminated by calling exit(), return code: 0fcgid kann doch Perl?