I am running Centos OS with a LAMP stack. I have perl5.8.8 installed. When I try to run a login script through a browser I get the script itself not the Login page that should be coming up. If I run the script from the command line I get the following error "Can't locate bin/xterm/login.pl in @INC.." I have checked my paths, permissions I am at a loss. I know it should be and easy fix but I can't figure it out. I originally developed the scripts on a local Ubuntu Machine the migrated to a hosting service.

Here is part of my HTTPD conf file
<VirtualHost petro-traxx.com.443> DocumentRoot /var/www/html/petro ServerName petro-traxx.com ServerAlias www.petro-traxx.com ServerAdmin webmaster@petro-traxx.com CustomLog /usr/local/apache/domlogs/petro-traxx.com-bytes_log "%{% +s}t %I .\n%{%s}t %O ." ErrorLog /usr/local/apache/domlogs/petro-error-logs CustomLog /usr/local/apache/domlogs/petro-traxx.com combined ScriptAlias /cgi-bin/ /var/www/cgi-bin/ Include sql-ledger-httpd.conf Alias /sql-ledger /var/www/html/petro/sql-ledger/ <Directory /var/www/html/petro/sql-ledger> AllowOverride All AddHandler cgi-script .pl .cgi AddDefaultCharset On Options ExecCGI Includes FollowSymlinks Order Allow,Deny Allow from All </Directory> <Directory /var/www/html/petro/sql-ledger/users> Order Deny,Allow Deny from All </Directory> </VirtualHost>
the referenced included config file is below.
Alias /petro /var/www/html/petro/ <Directory /var/www/html/petro> AllowOverride All AddHandler cgi-script .pl Options ExecCGI Includes FollowSymlinks Order Allow,Deny Allow from All </Directory> <Directory /var/www/html/petro/users> Order Deny,Allow Deny from All </Directory> Alias /sql-ledger /var/www/html/petro/sql-ledger/ <Directory /var/www/html/petro/sql-ledger> AllowOverride All AddHandler cgi-script .pl Options ExecCGI Includes FollowSymlinks Order Allow,Deny Allow from All </Directory> <Directory /var/www/html/petro/sql-ledger/users> Order Deny,Allow Deny from All </Directory>
any Ideas would be great. Thanks

In reply to Scirpts Don't Run by Mtnbkr777

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.