chrrutgers has asked for the wisdom of the Perl Monks concerning the following question:

Hi There,

I am looking for a solution to the following problem.

I have installed a ledger program on my server in the cgi_bin directory because it is a full perl program. Unfortunatly the CGI-BIN directory doesn't show graphics and css styles.

Now I have moved all the files to a directory in my httpdocs directory and when I try to call the script I get a Internal Server Error on my screen.

The error log gives the following error:

[Sun Sep 23 17:44:50 2007] [error] Can't locate bin/mozilla/login.pl i +n @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi / +usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread- +multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib +/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_pe +rl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386- +linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-m +ulti /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /u +sr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/ +perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/s +ite_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /us +r/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/ +vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/ +5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-l +inux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread- +multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8 +.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 +/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /us +r/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at /var/ww +w/vhosts/domain.tld/subdomains/login/httpdocs/sql-ledger/login.pl lin +e 113.\n
My server is configured for perl and cgi outside the cgi-bin directory!

I found several possible solutions like this one: http://kb.swsoft.com/en/1746

But with no luck!!

My server is operating with Plesk 8.2, Apache 2.x and Perl 5.8.5

Is there anyone who can help me!

Best Regards,

Chris

Replies are listed 'Best First'.
Re: Error Can't locate bin/mozilla/login.pl in @INC
by throop (Chaplain) on Sep 24, 2007 at 04:56 UTC
    Gentle chrrutgers

    The question is – is the file not being found because @INC isn't looking in the right place? Or because the file isn't on your system?

    Do you know where bin/mozilla/login.pl is? If you don't know, do you know how to use the unix find command to find the file?

    If the file is actually there, check the permissions. (not likely the problem, but still.)

    Is the file in one of the directories in @INC? Probably not. If so, you can add a line to your file

    use lib "/the/path/where/the/darn/thing/is/actually";
    or where ever you found it.

    Or you could move the file into one of the places @INC is searching.

    throop

Re: Error Can't locate bin/mozilla/login.pl in @INC
by Gangabass (Vicar) on Sep 24, 2007 at 05:14 UTC

    I think it is path problem. Try to search your script for bin/mozilla/login.pl and replace this string into real path to login.pl

Re: Error Can't locate bin/mozilla/login.pl in @INC
by Anonymous Monk on Sep 24, 2007 at 08:58 UTC
    I have located the file in one of teh sub directories of my ledger program. When i put the files in miy cgi_bin this error doesnot show. I am getting a little bit frustrated! When I change the path to the right one I get the same error on a other file :-( Can any one help me??