Helpful Information
 
 
Category: Python Programming
Python & OSX

Be kind I am fairly inexperienced with UNIX and installing software.

I want to be able to run python with Apache on OSX. I have Apache up and running fine with PHP4 and Mysql. I also have Python installed. I can run python programs through the command line and such. But I cannot run python scripts with Apache?

How would I be able to get Apache and Python to work together?

E.

Are your cgis in /Library/WebServer/CGI-Executables ?

Are you sure you have the right path set in the #! line? (run the cgi from a command line to check - if it says it can't find python, that's your problem)

Are your cgis marked executable? chmod +x /path/to/cgi to be sure

jpb

I acutally got it working. It was a combination of stupid mistakes and assuming something needed to be done when it didn't.










privacy (GDPR)