Adding Python Support

On Windows

Download and install Python

Declare the interpreter

  • Open Abyss Web Server's console. In the Hosts table, press Configure in the row corresponding to the host to which you want to add Python support.

    If there is no Hosts table in the main screen of your console, this means that you are using an old version of Abyss Web Server. Please upgrade to the latest version before proceeding. Upgrading is free, straightforward, and preserves your current server configuration. Click here to download the latest version.

  • Select Scripting Parameters.
  • Check Enable Scripts Execution.
  • Press Add in the Interpreters table.
  • Set Interface to CGI/ISAPI.

    Note that if you do not find an Interface field, you can ignore this step and continue with the following instructions.

  • In the Interpreter field, press Browse..., go to the directory where you have installed Python, and click on python.exe.
  • Check Use the associated extensions to automatically update the Script Paths.
  • Press Add in the Associated Extensions table.
  • Enter py in the Extension field and press OK.
  • Press OK
  • Press OK in the Scripting Parameters dialog.

Declare a new index file

  • Select Index Files.
  • Press Add in the Index Files table.
  • Enter index.py in the File Name field and press OK.

Apply the modifications

  • Press Restart to restart the server.

On macOS

Download and install Python

  • macOS includes Python by default. There is nothing special to install.

Declare the interpreter

  • Open Abyss Web Server's console. In the Hosts table, press Configure in the row corresponding to the host to which you want to add Python support.

    If there is no Hosts table in the main screen of your console, this means that you are using an old version of Abyss Web Server. Please upgrade to the latest version before proceeding. Upgrading is free, straightforward, and preserves your current server configuration. Click here to download the latest version.

  • Select Scripting Parameters.
  • Check Enable Scripts Execution.
  • Press Add in the Interpreters table.
  • Set Interface to CGI/ISAPI.

    Note that if you do not find an Interface field, you can ignore this step and continue with the following instructions.

  • In the Interpreter field, press Browse..., go to the directory /usr/bin/, and click on python. If for some reason, python is not in there, execute the command which python in the Terminal application (located in the Utilities folder inside the Applications folder) to know in which directory it is.
  • Check Use the associated extensions to automatically update the Script Paths.
  • Press Add in the Associated Extensions table.
  • Enter py in the Extension field and press OK.
  • Press OK
  • Press OK in the Scripting Parameters dialog.

Declare a new index file

  • Select Index Files.
  • Press Add in the Index Files table.
  • Enter index.py in the File Name field and press OK.

Apply the modifications

  • Press Restart to restart the server.

On Linux

Download and install Python

  • Most Linux distributions come with Python. To check if it is installed, execute which python. If not available, download it from http://www.python.org and install it.

Declare the interpreter

  • Open Abyss Web Server's console. In the Hosts table, press Configure in the row corresponding to the host to which you want to add Python support.

    If there is no Hosts table in the main screen of your console, this means that you are using an old version of Abyss Web Server. Please upgrade to the latest version before proceeding. Upgrading is free, straightforward, and preserves your current server configuration. Click here to download the latest version.

  • Select Scripting Parameters.
  • Check Enable Scripts Execution.
  • Press Add in the Interpreters table.
  • Set Interface to CGI/ISAPI.

    Note that if you do not find an Interface field, you can ignore this step and continue with the following instructions.

  • In the Interpreter field, press Browse..., go to the directory where the Python executable is installed and click on python. You can know it by executing the command which python on the shell. It is usually in /usr/bin/ or /usr/local/bin/.
  • Check Use the associated extensions to automatically update the Script Paths.
  • Press Add in the Associated Extensions table.
  • Enter py in the Extension field and press OK.
  • Press OK
  • Press OK in the Scripting Parameters dialog.

Declare a new index file

  • Select Index Files.
  • Press Add in the Index Files table.
  • Enter index.py in the File Name field and press OK.

Apply the modifications

  • Press Restart to restart the server.

Keep in touch with us

Sign up for our low volume newsletter to get product announcements, articles and power tips.

or