linux:~ # rcapache2 restart
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1
failed
Mein Script sieht so aus:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/perl
use warnings;
use strict;
use HTML::Template;
use File::Find;
print STDERR "Pre-loading HTML Templates...\n";
find(
sub {
return unless /\.tmpl$/;
HTML::Template->new(
filename => "$File::Find::dir/$_",
cache => 1,
);
},
'/srv/www/htdocs/home/'
);
Das Script zeigt keine Fehler wenn ich aus in der Konsole ausführe.
Eingebunden habe ich es in der /etc/apache2/httpd.conf wie folgt:
PerlRequire /srv/www/cgi-bin/startup.pl
<FilesMatch "(index|thumb)\.pl$">
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
</FilesMatch>
\n\n
<!--EDIT|Froschpopo|1148298399-->