Chibimagic's Weblog

Posts Tagged ‘apache

After I updated my machine to Mavericks, I remembered that every OS X update kills your custom Apache settings. Here’s the minimum changes you need to get Python working again.

  1. Edit the Apache config file as root
    • sudo pico /etc/apache2/httpd.conf
    • Enter your password if prompted
  2. Find “<Directory “/Library/WebServer/Documents”>”, then find the line the starts with “Options” and add “ExecCGI” to it. Example:
    • <Directory "/Library/WebServer/Documents">
          # Possible values for the Options directive are "None", "All",
          # or any combination of:
          #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
          # Note that "MultiViews" must be named *explicitly* --- "Options All"
          # doesn't give it to you.
          # The Options directive is both complicated and important.  Please see
          # for more information.
          Options Indexes FollowSymLinks MultiViews ExecCGI
          # AllowOverride controls what directives may be placed in .htaccess files.
          # It can be "All", "None", or any combination of the keywords:
          #   Options FileInfo AuthConfig Limit
          AllowOverride None
          # Controls who can get stuff from this server.
          Order allow,deny
          Allow from all
  3. If you have an index file with a python extension, add “” to the “DirectoryIndex” module. Example:
    • <IfModule dir_module>
          DirectoryIndex index.html
  4. Tell Apache to process “.py” files as CGI. Find “AddHandler” and add the following line:
    • AddHandler cgi-script .py
  5. Restart Apache.
    • sudo apachectl graceful


  • None
  • Marketing Consultant: You're an great writer. You have brought up some really interesting insights. Just wanted to say fantastic blogs! I know tons of people see your write
  • optical franchise opportunities: Right now it looks like Wordpress is the preferred blogging platform out there right now. (from what I've read) Is that what you are using on your blo
  • startup speaker: Interesting content. A magnificent article. It is very informative and you are obviously very knowledgeable in this area.