Thread: Python & OSX

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    266
    Rep Power
    14

    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.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Posts
    0
    Rep Power
    0

    Where are your cgis?


    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
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Posts
    266
    Rep Power
    14
    I acutally got it working. It was a combination of stupid mistakes and assuming something needed to be done when it didn't.

IMN logo majestic logo threadwatch logo seochat tools logo