Python - CGI 연동 시 에러 메세지 - (8)Exec format error: exec of '파일경로/파일명.py' failed

1.  - cgi error (8)Exec format error: exec of '파일경로/파일명.py' failed
     
파이썬 파일 (x.py) 상단에 아래와 같이 입력

#!/usr/bin/env python

관련URL  : https://stackoverflow.com/questions/41082302/ah01215-8-exec-format-error-exec-of-var-www-python-hello-py-failed-var


2. malformed header from script. Bad header

파이썬 파일 상단에 아래와 같이 입력

print ("Content-Type: text/plain\n\n")

관련 URL : http://blog.boyo.kr/entry/cgi-%EC%82%AC%EC%9A%A9%EC%8B%9C-%EC%97%90%EB%9F%AC-%EB%8C%80%EC%B2%98%EB%B2%95

save image

3. UnicodeEncodeError: 'ascii' codec can't encode characters in position 16-17: ordinal not in range




댓글 없음:

댓글 쓰기

최근 게시물

Volatility 다운로드 페이지

http://www.volatilityfoundation.org/releases