View Single Post
  #20  
Old 25th December 2010, 22:08
pongraczi pongraczi is offline
Junior Member
 
Join Date: Nov 2008
Location: Hungary
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pongraczi Send a message via Skype™ to pongraczi
Default Maybe Solved for you: SQL-Ledger login.pl

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
Reply With Quote