how to run a python file on Safari?
I am trying to run any python file on the Leopard web server, accesing it via safari.
also I have set the permissions of the file to 777...
then I have copied the file to library/webserver/documents.When I open this file in Safari, the file is listed, but it is not executed.
also I have copied the file to library/webserver/cgi-executables, but the file is not executed, an error appears:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you@example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log
----
the python file contains only 2 lines:
#!/usr/bin/env python
print 2
-------
I have tested the file in the command line via python test.py and it runs fine... but I dont know what should I have to do to run it on the browser...
do I have to enable mime types for python on leopard client? how to do it?
have a nice day
Quad MaC Pro & Dual 2 GHz PowerPC G5, Mac OS X (10.5.2), 16gb ram,leopard client