SHARE
Facebook X Pinterest WhatsApp

Trouble Shooting Page 7

Jul 20, 2010
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



The best thing to do is to first try and determine where your error occurred. Did it occur when you tried to execute the script? If so, make sure that you transferred the file in ASCII or text format. Then check that you set the appropriate permissions for the script.sFinally, see that the first line of your program points to your Perl interpreter. If the error occurred after you edited some variables, odds are that you made a typo or specified an invalid path.

s

Things to remember:s

    s
  • Scalar variables should look like this:
    s$VariableName = “String”;
    sMake sure you have the string surrounded in quotation marks and the line is terminatedswith a semi-colon.

s

    s
  • Make sure you check with your ISP to find out your server path and tossee where/whether you are allowed to execute Perl scripts.

s

    s
  • Always transfer your files in ASCII or text mode.

s

    s
  • When in doubt consult your server’s log files. They will oftenscontain important messages that can help you debug a program.

s

Common Server Errors and what they mean:

s

“403 Forbidden”
This is tells you that the file/directory permissions, are most likely, set incorrectly.

s

“404 File Not Found”
This means that you are trying to access a file that does not exist on the server. Double check your URL and where you put the file. Remember some servers are case sensitive (Unix).

s

“500 Server Error”
This is the bad one. This means that your program is producing output that your server cannot understand. Check your server’s log files to see if they help at all, and more importantly, look over your variables again to make sure that you did not make any typos.

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
What Is a Network Policy Server (NPS)? | Essential Guide
Virtual Servers vs. Physical Servers: Comparison and Use Cases
Ray Fernandez
Nov 14, 2023
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.