Windows links CGI programs via Appache

Source: Internet
Author: User

1 # ! D:\Python27\23print'content-type:text/plain'4  Print56print'Hello,world'
AppearErrorThe server encountered an internal error or misconfiguration and is unable to complete your request. Please contact the server and inform them of the time the error occurred, and Anyt Hing you might has done so may has caused the error. More information on this error is available in the server error log. Viewing error log Discovery for Appache

[Mon 11 14:51:18 2014] [ERROR] [Client 127.0.0.1] File does not exist:c:/program Files (x86)/apache software Foundation/apache2.2/htdocs/favicon.ico
[Mon 11 14:53:11 2014] [ERROR] [Client 127.0.0.1] (OS 2) The system cannot find the file specified. : Couldn ' t create child process:720002:listing15-4.py
[Mon 11 14:53:11 2014] [ERROR] [Client 127.0.0.1] (OS 2) The system cannot find the file specified. : couldn ' t spawn child Process:c:/program Files (x86)/apache software foundation/apache2.2/cgi-bin/listing15-4.py

Just like that! The first Error:favicon.ico file did not find Google after not know this is a display in the address bar leftmost picture, personally think there should not be much problem, but still online did a, online do Favicon.ico website is quite many, fool-type operation.

The second error:couldn ' t create child process.   This is the main mistake, and it also leads to the following couldn ' t spawn child process. Internet search, said the reason may not find the interpreter.

So at the beginning

 1  #! D:\Python27\   2  3  print   " content-type:text/plain   " 4   5  6  print    hello, World    
 1  #! D:\Python27\python.exe  2  3  print   " content-type:text/plain   " 4   5  6  print    hello, World    

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.