Thread startup (14 answers)
Opened by Froschpopo at 2006-05-22 14:33

Froschpopo
 2006-05-22 15:46
#30089 #30089
User since
2003-08-15
2653 Artikel
BenutzerIn
[default_avatar]
Code: (dl )
1
2
3
4
5
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:
Code: (dl )
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:
Code: (dl )
1
2
3
4
5
6
7
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-->

View full thread startup