How Tos > General

Create a simple Python CGI script

  1. Confirm the wsgi module is checked on your Apache Server.
  2. Create a standard host, name it “MyPythonHost”.
  3. Copy the “hello world” script from here, name it “test.cgi”, put it into your /Applications/MAMP/cgi-bin folder.
  4. Type the following to see your host, http://MyPythonHost:8888/cgi-bin/test.cgi.