Hi,
I solved my lighttpd + sq-ledger problem by debugging the issue.
It seems, in the SL/Form.pm file there is a perl interpreter invocation, which use no path to the interpreter.
You just add the absolute path to the perl interpreter and everything seems fine now.
Please note, I used a Hungarian fork of sql-ledger, so, the line number should be different.
How to fix it?
- Open SL/Form.pm
- Locate the redirect subroutine (nearly line #393)
Original code:
Code:
sub redirect {
my ($self, $msg) = @_;
if ($self->{callback}) {
($script, $argv) = split(/\?/, $self->{callback});
exec ("perl", $script, $argv);
} else {
$self->info($msg);
exit;
}
}
New code:
Code:
sub redirect {
my ($self, $msg) = @_;
if ($self->{callback}) {
($script, $argv) = split(/\?/, $self->{callback});
exec ("/usr/bin/perl", $script, $argv);
} else {
$self->info($msg);
exit;
}
}
You should try to find other perl invocation without absolute path and fix those too.
That's all.
Good luck!
István
Recent comments
1 day 10 hours ago
1 day 19 hours ago
1 day 22 hours ago
1 day 23 hours ago
2 days 1 hour ago
2 days 2 hours ago
2 days 4 hours ago
2 days 5 hours ago
2 days 21 hours ago
2 days 22 hours ago