From: Step <st...@ya...> - 2007-06-13 14:52:50
|
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 > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>------------------------------------------------------------------------- > >> > >> > >>> > >>> > >>> > >>> > >>>>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 > >> > >> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>____________________________________________________________________________________ > >> > >> > >>>Need a vacation? Get great deals > >>>to amazing places on Yahoo! Travel. > >>>http://travel.yahoo.com/ > >>> > >>> > >>> > >>------------------------------------------------------------------------- > >> > >> > >>>This SF.net email is sponsored by DB2 Express > >>>Download DB2 Express C - the FREE version of DB2 > === message truncated === ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL |