What could cause this 500 Internal Server Error???

Posted on 2006-05-02
Last Modified: 2010-03-04
A client of mine is using Apache web server and Perl CGI scripts to handle some actions.  One of the things they've already got setup is a perl script that uses the Authorize.NET API to charge credit cards and returns the results to a browser page.

Well, they're starting a different company that they want to keep seperate from the current one, but they want to use all of the same technology and procedures.  So what I've done is simply take the file that gets called and made a copy called, so now it's its own file.  Within the file, the ONLY thing I changed is the username and password values held in their variables.  I then placed the file in the same directory as the that is currently working.

When I try and run, though, I'm getting a 500 Internal Server Error:

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Of course, bo@dealexpress doesn't work there any longer, and they didn't part ways under good he's not gonna be any help.  The thing I don't get is why I get this error only for this .pl file when it's almost exactly the same as the other one that works.  the application actually passes a bunch of variables along to it in querystring values, but even when i try and test simply by going to I get the error.  If I go to directly like that, I get a blank white page.

Any information on why this might be happening would be greatly appreciated.  thanks!
Question by:Andrew Angell
    LVL 9

    Accepted Solution

    could be a file permissions problem.  Does the new file not have execute access for whoever is trying to run it?  The old file could have permissions that are different than the one that was copied.  Instead of doing a direct copy "cp", try creating a blank script, copying the contents of the old .pl file, and placing it into the new file.  Also make sure you set the file properties exactly as the one that is working.
    LVL 27

    Assisted Solution

    You should always start with the error.log. Can you find anything logged there?
    LVL 10

    Assisted Solution

    Besides the username and password, you changed the name of the script file.  That can matter sometimes.

    From what little I can find about this module, there is a corresponding file: shop.cfg that has config values used by this script.

    One of those is $auth_refer, which sets the URL it will check for as the referrer.  I am guessing that the referring URL might be different for your two sites, so it may not pass the check.

    This is all just a guess though.

    LVL 38

    Assisted Solution

    check your error_log file to see more details about the problem, then have a look at the instructions in the following doc:

    to see if you can fix the problem

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now