[afnog] FreeBSD, Apache24, mod_python, CGI, Genshi - SOLVED
Frank Habicht
geier at geier.ne.tz
Wed Sep 14 17:32:00 UTC 2016
Hi,
"The python executable is not in the webservers executable PATH."
http://stackoverflow.com/questions/9521055/why-cant-i-execute-another-python-script-using-the-subprocess-module-via-a-webs
so in the main script I changed the first line from:
#!/usr/bin/env python
to:
#!/usr/bin/env /usr/local/bin/python
and now I get much more colourful error messages! in my browser!
:-)
And that one was fixed by chmod of the socket that the script is accessing.
All looking good now.
https://stats1.tix.or.tz/ulg/ulg.py
Thanks,
Frank
More information about the afnog
mailing list