python - (8)Exec format error: exec of ' ' failed - CentOS -
I am using a CentOS VM from backspace with the installed lamp. I have a dragon script that I want to run with CGI-bin. I've browsed the path on my browser and I get a 500 server error. Insured, this is the first time I have ever used the python and CentOS, but I understand very well. But I actually found this error I get this error: [Tuesday, November 04, 2014 12:46:07 2014] [Error] [customer 86.2.110.133] (8) Exec format error : '/ var / www executive / cgi-bin / payment test.cgi' fail [Tue Nov 04 12:46:07 2014] [error] [client 86.2.110.133] script premature header end: pay Test.cgi print # 3 stripe
Here's my script:
Import sys import json import cgi import cgitb import strip # 2 cgitb.enable () Print 'text / json content-type' Apiai_ke = '# 4 Json_deta = Siskstdinkreed () Jason_dikt = Jasonklods (Jason_deta) # 5 stripeAmount = Jason_dikt [' Stripeamunt '] = Stripekrrensi Jason_dikt [' Stripekrrensi '] = Stripetkeँ Jason_dikt [' Stripetkeँ '] Stripedeskripshn = Json_dict [ 'stripedescription'] # 6 json_response = stripe.Charge.create (sum = sum bar, currency = bar credit card = bar talk, Description = stripe details) print json_response
Is there no heading pointing to my Python files? If so, where are they? Please help me have lost so much
thanks
You need the top is.
#! / Usr / bin / env python import system import json import cgi ...
Comments
Post a Comment