Setup Strawberry Perl to work with Lighttpd
[email protected] (Wolfgang Bergner)
| Newsgroups | perl.win32.vanilla |
|---|---|
| Message-ID | <[email protected]> |
Hi guys,
I am not a complete newbie, however, I did not succeed yet in setting
up Strawberry Perl to work with Lighttpd. Steps I've done:
1. Installed Strawberry Perl to C:\strawberry
2. "ppm install FCGI" (don't know if that was necessary)
3. cpan: "install FCGI"
4. Installed Lighttpd to C:\Program Files\Lighttpd
5. Adapted the configuration file, esp. activating fastcgi (see below)
6. Syntax check with "lighttpd -f conf/lighttpd.conf" was ok
7. "LightTPD.exe -D -f conf/lighttpd.conf -m lib"
Alternatively, I installed Lighttpd to C:\Lighttpd already to avoid
spaces in the path name, and instead of
"bin-path" => "C:/strawberry/perl/bin/perl.exe"
I tried
"bin-path" => "/strawberry/perl/bin/perl.exe"
"bin-path" => "/LightTPD/htdocs/test.pl"
But Lighttpd won't startup, for the child exit status I had 0, 2 and
13, but I don't know where I can look up those exit codes.
I highly appreciate any help! Also, if anyone got both to work in a
different way than with FastCGI, performance is not that critical for
me.
Thanks!
Wolfgang
-------------------------------------------------------------
Output:
-------------------------------------------------------------
2010-06-23 10:46:22: (log.c.166) server started
2010-06-23 10:46:22: (mod_fastcgi.c.1367) --- fastcgi spawning local
proc: /strawberry/perl/bin/perl.exe
port: 0
socket TMP/perl-fastcgi.socket
max-procs: 4
2010-06-23 10:46:22: (mod_fastcgi.c.1391) --- fastcgi spawning
port: 0
socket TMP/perl-fastcgi.socket
current: 0 / 4
2010-06-23 10:46:22: (mod_fastcgi.c.1104) the fastcgi-backend
/strawberry/perl/b
in/perl.exe failed to start:
2010-06-23 10:46:22: (mod_fastcgi.c.1108) child exited with status 0
/strawberry
/perl/bin/perl.exe
2010-06-23 10:46:22: (mod_fastcgi.c.1111) If you're trying to run your
app as a
FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2010-06-23 10:46:22: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed.
2010-06-23 10:46:22: (server.c.935) Configuration of plugins failed.
Going down.
-------------------------------------------------------------
lighttpd.conf:
-------------------------------------------------------------
server.modules = (
"mod_access",
"mod_accesslog",
"mod_alias",
"mod_fastcgi",
"mod_ssi",
"mod_status",
)
server.document-root = "HTDOCS/"
server.upload-dirs = ( "TMP/" )
index-file.names = ( "index.php", "index.pl", "index.cgi",
"index.html", "index.htm", "default.htm" )
mimetype.assign = (
".pdf" => "application/pdf",
# ... => ...
)
mimetype.use-xattr = "enable"
url.access-deny = ( "~", ".inc" )
$HTTP["url"] =~ "\.pdf$" {
server.range-requests = "disable"
}
static-file.exclude-extensions = ( ".php", ".pl", ".cgi" )
dir-listing.activate = "enable"
fastcgi.debug = 1
fastcgi.server = ( ".pl" =>
( "localhost" =>
(
"socket" => "TMP/perl-fastcgi.socket",
"bin-path" =>
"C:/strawberry/perl/bin/perl.exe"
)
)
)
status.status-url = "/server-status"
status.config-url = "/server-config"