I want to run my chatbot in the browser (chatbot code is here)
I have xampp installed on a mac.
When I try to output "Hello World" I get the error:
End of script output before headers: text.py
In the error_log of Xampp is:
(13) Permission denied: exec of '/Applications/XAMPP/xamppfiles/htdocs/chatbot/text.py' failed: /Applications/XAMPP/xamppfiles/htdocs/chatbot/text.py, referer: http: // localhost / chatbot /
[Tue May 14 13:52:48:593860 2019] [cgi: error] [pid 34638] [client :: 1: 56104] End of script output before headers: text.py, referer: http: // localhost / chatbot /
But I have given all the folders the right read and write and also restarted the Xampp. I also changed the httpd.config file so that i can run python code on xampp. (I changed the Handler like this: AddHandler cgi-script .cgi .py)
This ist the code that should run in the browser(simply print hello world)
#!/usr/bin/python3.7
print("Content-type: text/html")
print()
print("Hello, world!")