[Solved] Apache with pyhton running on Centos 7

empty empty empty empt

Do you have a HTML "button" or something with the "action" = to your Python script location?

Or, are you using event driven JS to call the script when the page loads or some other event? If so are you using document.write("/path/to/script.py)?

(Sorry starting at square one here - don't be offended please)

I don't know if its the best solution but for my personal server at home I was using PHP to execute python scripts and programs that I had written in C++. Over time when I gotten more comfortable with PHP, I started converting those scripts over to PHP.