Answer the question
In order to leave comments, you need to log in
Why does the script not work when accessed from apache?
When I try to run the file from the Apache side, I see the following error in the logs:
[Fri Jun 09 12:46:49.231510 2017] [cgi:error] [pid 2232] [client 178.129.221.81:31492] AH01215: (2)No such file or directory: exec of '/var/www/html/callback.py' failed: /var/www/html/callback.py
[Fri Jun 09 12:46:49.233515 2017] [cgi:error] [pid 2232] [client 178.129.221.81:31492] End of script output before headers: callback.py
[email protected]:~$ python /var/www/html/callback.py
Content-Type: text/html
somedata
Answer the question
In order to leave comments, you need to log in
call exec directly to Python and pass the filename as a parameter, to Python - the full path
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question