Articles in this section

The Python support is missing from domain's Hosting Settings page in Plesk

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

The Python support option is missing in Domains > example.com > Hosting Settings. As a result, it is not possible to execute Python scripts on a server. 

Cause

The Python module for Apache is deprecated since Plesk 17.8.

Resolution

Apply one of the solutions below:

Note: the solutions below were not officially tested with the Plesk, we cannot guarantee the stability of the workarounds.

For RHEL based systems (CentOS/CloudLinux)
  1. Log into the server via SSH.

  2. Install mod_python from third-party resource:

    # wget http://repo.iotti.biz/CentOS/7/noarch/lux-release-7-1.noarch.rpm
    # rpm -Uvh lux-release*rpm
    # yum install mod_python -y

  3. Restart the Apache service:

    # service httpd restart

  4. Log in to Plesk.
  5. Refresh Plesk components by pressing the Refresh button in Tools & Settings > Server Components.

  6. Enable the Python support checkbox in Service Plans > Hosting Plans > ServicePlanName > Hosting Settings.

  7. Scroll down and press the Update & Sync button.

  8. Enable the Python support checkbox in Domains > example.com > Hosting Settings.

  9. Scroll down and press the OK button to apply the changes.
For Debian based systems (Ubuntu/Debian)
  1. Log into the server via SSH.

  2. Install mod_python by executing the command below:

    # apt install libapache2-mod-python

  3. Restart the Apache service:

    # service apache2 restart

  4. Log in to Plesk.
  5. Refresh Plesk components by pressing the Refresh button in Tools & Settings > Server Components.

  6. Enable the Python support checkbox in Service Plans > Hosting Plans > ServicePlanName > Hosting Parameters tab.

  7. Scroll down and press the Update & Sync button.

  8. Enable the Python support checkbox in Domains > example.com > Hosting Settings.

  9. Scroll down and press the OK button to apply the changes.
Was this article helpful?

Comments

3 comments
Date Votes
  • One of the most useless Control Panel that doesn't support Phyton is PLESK. I wasted my money on my hosting server, and in the end Plesk doesn't support Phyton.

    1
  • No documentation and proper tutorials that actually working, it's a fully waste of time. NEVER USE PLESK if you are planning for Phyton Development. NO SUPPORT AT ALL.

    0
  • No documentation and proper tutorials that actually working, it's a fully waste of time. NEVER USE PLESK if you are planning for Phyton Development. NO SUPPORT AT ALL.

     
    0

Please sign in to leave a comment.