python - Pythonv3.6.0 execution in XAMPP -




i using xampp windows 5.5.30 executing python programs,in have recieved error. had made changes in httpd.conf page ,

addhandler cgi-script .cgi .pl .asp .py scriptinterpretersource registry-strict 

and

<ifmodule dir_module>     directoryindex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \                    default.php default.pl default.cgi default.asp default.shtml default.html default.htm \                    home.php home.pl home.cgi home.asp home.shtml home.html home.htm index.py </ifmodule> 

the simple python code executed testing :

#!c:\users\prabhu\appdata\local\programs\python\python36-32\python  print ("content-type: text/html\n") print ("<html><head><title>hello world python</title></head><body>hello world python cgi script</body></html>") 

this error recieved :

server error!

the server encountered internal error , unable complete request.

error message: couldn't create child process: 720002: hello.py

if think server error, please contact webmaster.

error 500

localhost apache/2.4.17 (win32) openssl/1.0.2d php/5.5.30

and code without #!c:\users\prabhu\appdata\local\programs\python\python36-32\python

print ("content-type: text/html\n") print ("<html><head><title>hello world python</title></head><body>hello world python cgi script</body></html>") 

i recieving error :

server error!

the server encountered internal error , unable complete request. either server overloaded or there error in cgi script.

if think server error, please contact webmaster.

error 500

localhost apache/2.4.17 (win32) openssl/1.0.2d php/5.5.30

help me in executing simple python program in xampp .





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -