Summary of server 500 errors-for beginners

Source: Internet
Author: User
I remember that when I first came into contact with cgi, I was curious and unfamiliar. Now I have been able to write my own program, but this process has gone through a tough detour. now I am very well aware of the feelings of some new users facing the internalservererror. remember the first time I came into contact with cgi, curious and unfamiliar. Now I have been able to write my own program, but it has gone through a difficult detour. now I am very well aware of the feelings of some new users facing the 500 Internal Server Error. As the saying goes, everything is difficult at the beginning, and it fails to allow beginners to debug the first cgi program. now I will write some summary I have experienced to you. You don't have to watch me make an axe in this class.

1. The first line of the code provided by some programmers when declaring the program indicates that the path of the tool is applied to the path on the computer, which is often neglected when writing the clarification, therefore, in the debugging process, the first line is often unable to pass! # C:/perl/bin/perl.exe change to the path provided by your service provider

2. Incorrect path: when using a VM, because the url address in the browser does not need to be input into the www Directory, some netizens may have neglected this directory, this directory is the default directory of the host.
For example, error: real = '/usr/home/4232/image'
Accurate: real = '/usr/home/4232/www/image'

3. tank input error. when some programs require the administrator to directly enter the mailbox address on the original code, some netizens may feel that the name suking \ @ yang.com.cn is special and does not care about it, so change to their mailbox: shohu@21cn.com-errors are presented from this road, then the system will @ 21cn as an array to handle, here, if your mailbox is: the shohu@21cn.com should be changed to shohu \ @ 21cn.com

4. an error occurs in system environment variables. some systems (such as mine) provide inaccurate variable values. for example, {script name} is incorrect when it is monitored in my system, any program that has called these variables should start from scratch. if you are a beginner, such a program should give up, give up the host, or persuade your service provider.

5. Cgi file attribute settings. Many netizens say they will not set file attributes. here is a quick method. In coutftp, upload the file first. 2. select the file uploaded by electric shock. 3. Press shift ctrl a to open a window, enter 755 in the window and press OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.