From: Jerome J. A. <jer...@bo...> - 2007-06-13 17:57:25
|
I'm not sure if this would work but might be worth a shot. The idea is to add your installation directory in the @INC variable. Try this: add in /usr/local/sql-ledger/login.pl: use lib '/sql-ledger-install-dir/'; If this works, you need to find a way to add your sql-ledger installation directory as a default location where to look for library files. http://www.techsier.com - Blog http://www.boholweb.com - Bohol tourism website http://www.auza.net - enabling e-services in Bohol Step wrote: >used to be: >-rw-r--r-- 1 apache apache 7.4K May 18 17:12 >bin/mozilla/login.pl > >I chmod'it to 755 just to test > >-rwxr-xr-x 1 apache apache 7.4K May 18 17:12 >bin/mozilla/login.pl > >and same for admin.pl in mozilla and in ./ > >Nothing, same problem: Can't locate >bin/mozilla/login.pl in @INC (@INC... and so on > > > >--- Bob Gustafson <bo...@rc...> wrote: > > > >>What about permissions of the actual (missing) >>files, i.e. >>bin/mozilla/admin.pl >>bin/mozilla/login.pl >> >>On Jun 13, 2007, at 09:52, Step wrote: >> >> >> >>>Than you for all the help Jerome. >>> >>> >>> >>>>...read permissions on the files and directories. >>>> >>>> >>>Permissions are OK, I even chown'ed those to >>> >>> >>apache >> >> >>>drwxr-xr-x 11 apache apache 1.1K Jun 13 17:25 >>>sql-ledger >>> >>>and >>>-rwxr-xr-x 1 apache apache 2.6K Nov 26 2006 >>> >>> >>admin.pl >> >> >>>... >>>drwxr-xr-x 2 apache apache 752 Mar 30 04:47 lynx >>>drwxr-xr-x 2 apache apache 752 May 9 23:41 >>> >>> >>mozilla >> >> >>>I added a small Perl test script to bin/mozilla/. >>>URL: >>> >>> >>http://localhost/sql-ledger/bin/mozilla/test.pl >> >> >>>runs just fine. >>> >>> >>> >>> >>>--- "Jerome J. Auza" <jer...@bo...> >>> >>> >>wrote: >> >> >>>>Ah, check the file permissions. It's possible >>>> >>>> >>that >> >> >>>>apache doesn't have >>>>read permissions on the files and directories. >>>> >>>>http://www.techsier.com - Blog >>>>http://www.boholweb.com - Bohol tourism website >>>>http://www.auza.net - enabling e-services in >>>> >>>> >>Bohol >> >> >>>> >>>>Step wrote: >>>> >>>> >>>> >>>>>I moved the sql-ledger, fixed apache the conf >>>>> >>>>> >>files >> >> >>>>>and restarted the apache2. >>>>>Still the same problem: >>>>>Can't locate bin/mozilla/login.pl in @INC (@INC >>>>>contains: /home/httpd/perl /etc/perl >>>>>/usr/lib/perl5/vendor_perl/5.8.8/i686-linux >>>>>/usr/lib/perl5/vendor_perl/5.8.8 >>>>>/usr/lib/perl5/vendor_perl >>>>>/usr/lib/perl5/site_perl/5.8.8/i686-linux >>>>>/usr/lib/perl5/site_perl/5.8.8 >>>>>/usr/lib/perl5/site_perl/5.8.0/i686-linux >>>>>/usr/lib/perl5/site_perl/5.8.0 >>>>>/usr/lib/perl5/site_perl >>>>>/usr/lib/perl5/5.8.8/i686-linux >>>>> >>>>> >>>>/usr/lib/perl5/5.8.8 >>>> >>>> >>>>>/usr/local/lib/site_perl . /usr/lib/apache2) at >>>>>/usr/local/sql-ledger/login.pl line 112.\n >>>>> >>>>> >>>>>And the login.pl file: >>>>>... >>>>> if ($form{terminal}) { >>>>> $form{terminal} =~ s/%2f/\//gi; >>>>> $form{terminal} =~ s/\.\.\///g; >>>>> >>>>> $ARGV[0] = >>>>>"path=bin/$form{terminal}&script=$script"; >>>>> map { $ARGV[0] .= "&${_}=$form{$_}" } keys >>>>> >>>>> >>>>%form; >>>> >>>> >>>>>(line 112) require >>>>> >>>>> >>"bin/$form{terminal}/$script"; >> >> >>>>> } else { >>>>> >>>>> print "Content-Type: text/html\n\n" if >>>>>$ENV{HTTP_USER_AGENT}; >>>>> print qq|\nUnknown terminal\n|; >>>>> } >>>>> >>>>>} >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>--- "Jerome J. Auza" <jer...@bo...> >>>>> >>>>> >>>>wrote: >>>> >>>> >>>>> >>>>> >>>>> >>>>>>Step, >>>>>> >>>>>>Check if you are using apache Alias directive. >>>>>> >>>>>> >>I >> >> >>>>>>think SQL-Ledger >>>>>>should be run under an Alias directive rather >>>>>> >>>>>> >>than >> >> >>>>>>as a directory under >>>>>>/htdocs. Also don't forget to restart apache >>>>>> >>>>>> >>if >> >> >>>>you >>>> >>>> >>>>>>already have the >>>>>>directive. >>>>>> >>>>>>This is what I have in my conf/httpd.conf file: >>>>>> >>>>>>Alias /sql-ledger /usr/local/apps/sql-ledger/ >>>>>> <Directory /usr/local/apps/sql-ledger> >>>>>> AllowOverride All >>>>>> AddHandler cgi-script .pl >>>>>> AddDefaultCharset On >>>>>> Options ExecCGI Includes FollowSymlinks >>>>>> Order Allow,Deny >>>>>> Allow from All >>>>>> </Directory> >>>>>> >>>>>> <Directory /usr/apps/local/sql-ledger/users> >>>>>> Order Deny,Allow >>>>>> Deny from All >>>>>> </Directory> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>http://www.techsier.com - Blog >>>>>>http://www.boholweb.com - Bohol tourism website >>>>>>http://www.auza.net - enabling e-services in >>>>>> >>>>>> >>Bohol >> >> >>>>>> >>>>>>Step wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>Perl version in 5.8.8 >>>>>>>All other Perl scripts/applications run OK >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>... just use cgi. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>Can you please elaborate. >>>>>>> >>>>>>> >>>>>>> >>>>>>>--- Mark Bucciarelli >>>>>>> >>>>>>> >><ma...@hu...> >> >> >>>>>>>wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>>On Jun 11, 2007, at 12:15, Step wrote: >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>>mod_perl 2.0.3-r1 >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>Are you trying to run under mod_perl? If so, >>>>>>>> >>>>>>>> >>>>just >>>> >>>> >>>>>>>>use cgi. >>>>>>>> >>>>>>>>m >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >-------------------------------------------------------------------- > > >>>>>----- >>>>> >>>>> >=== message truncated === > > > > >____________________________________________________________________________________ >Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. >http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow > >------------------------------------------------------------------------- >This SF.net email is sponsored by DB2 Express >Download DB2 Express C - the FREE version of DB2 express and take >control of your XML. No limits. Just data. Click to get it now. >http://sourceforge.net/powerbar/db2/ >_______________________________________________ >sql-ledger-users mailing list >sql...@li... >https://lists.sourceforge.net/lists/listinfo/sql-ledger-users > > > > |