Some summary of server 500 errors-write to Novice _php
Source: Internet
Author: User
Keywords write novice summary some server error about program yourself this
I remember the first time I approached CGI, it was curious and strange. Now have been able to write their own program, but this is also a tortuous in the middle of the detour, now I am also very able to understand some novice face 500Internal Server error when the state of mind. As the saying goes, the beginning of the difficult, failed to allow beginners to successfully debug the first CGI program, now I have experienced some of the summary written to everyone. Master will not have to see me here swim, hehe
1. Because some programmers provide code when they publish a program the first line of the interpreter path using the path on their own computer and often ignore this when writing instructions, so in the process of debugging often this first pass, put the first line! #c:/perl/bin/perl.exe change to the path provided by your service provider
2. Absolute path Error: In the use of virtual host, because in the browser URL address is not input www this directory, so some users will ignore this directory, thought this directory is the default directory of the host, it is not. For example, error: real= "/usr/home/4232/image" Correct: real= "/usr/home/4232/www/image"
3. The fuel tank input error, in some programs need the administrator in the original code directly enter the mailbox address, some netizens often feel suking\ @yang. com.cn The name is a bit special and ignore, so change to their own mailbox: shohu@21cn.com- The error will appear from this road, then the system will be treated as an array of @21cn, here, if your mailbox is: Shohu@21cn.com should be changed to shohu\@21cn.com
4. The system environment variable error, some systems (such as my) the value of the variable is incorrect, such as {script Name} in my system monitoring is wrong, so, any call to these variables of the program, I would like to start from scratch, if you are a beginner, such a program should give up, or abandon the host, or convince your service provider.
5. CGI file property settings. There are many netizens said will not set the file attributes, here to tell you a quick way. In Coutftp, first upload the file, 2 then shock the uploaded file to select it, 3 press the shift CTRL a cocktail immediately to talk about a window, enter 755 in the window and press OK.
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.