Article ID: 8489, created on Apr 28, 2010, last review on Jun 15, 2015

  • Applies to:
  • Plesk 12.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Windows


How to check if Python script engine is enabled and working for a domain?


There are 2 ways to check if Python scripting engine is enabled for a domain:

  1. Using the default Plesk domain page content (http://domain.tld/index.html) - then by the "Python" item. The domain name should be resolved locally at least and the web-content should be Panel domain default content.

    The test looks successful if a page with a list of environment variables is shown.

  2. Using a simple script like this:

    #!/usr/bin/env python
    # -*- coding: UTF-8 -*-
    # enable debugging
    import cgitb
    print "Content-Type: text/plain;charset=utf-8"
    print "Hello World!"

    It is necessary to put the content into a text file and save in the domain web-accessible folder (like $HTTPD_VHOSTS_D/domain.tld/httpdocs) on the server with .py extension ( for example). Then try to open the file via browser by the http://domain.tld/ URL. The domain name should be resolved locally at least.

    The test looks successful if a page shows the "Hello World!" string. If an error or full script listing is visible, it means that Python engine is not configured for the domain properly.

    Note: To enable Python scripting engine go to Tools & Settings > Apache Web Server > check python.

Search Words


85a92ca67f2200d36506862eaa6ed6b8 a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 29d1e90fd304f01e6420fbe60f66f838 ed7be2b984f9c27de1d2dc349dc19c6d a766cea0c28e23e978fa78ef81918ab8 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f

Email subscription for changes to this article
Save as PDF