Question
Plesk no longer licenses ActivePython and ActivePerl for Plesk for Windows. How to avoid violating the license agreement?
Answer
Note: This article is intended for use by server administrators. In case there are no menu Tools & Settings in the Plesk interface and/or no administrative RDP access to the server, contact the server administrator or server provider.
- If the first version of Plesk installed on the server was 12.5.30 or Onyx 17.x, the server is not affected as ActiveState components are not shipped starting from Plesk 12.5.30.
How to check the first version of Plesk installed on the server
-
Go to Tools & Settings > Scheduled Tasks and click Add Task.
-
Leave the option Task type selected as Run a command.
-
Enter the command:
-
The field Command -
"%plesk_dir%ctlplesk.exe"
-
The field with arguments -
db -Ne"select version_info from upgrade_history limit 1"
-
-
Click Run Now.
-
If there is no Python and/or Perl in Tools & Settings > Server Components > Web Scripting, no additional actions need to be taken:
-
If there is Python and/or Perl in Tools & Settings > Server Components > Web Scripting, additional actions should be taken:
How to check on which subscriptions the ActivePython or ActivePerl is used
-
Connect to the server using RDP.
-
Download the archive with the PowerShell script and unpack it:
PS [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
PS Add-Type -Assembly "System.IO.Compression.FileSystem"
PS Invoke-WebRequest -URI https://support.plesk.com/hc/en-us/article_attachments/360020678874/Fi
nd-PerlAndPythonFiles.ps.1.zip -OutFile Find-PerlAndPythonFiles.ps.1.zip
PS [System.IO.Compression.ZipFile]::ExtractToDirectory(($pwd).path + "Find-PerlAndPythonFiles.p
s.1.zip", ($pwd).path) -
Execute the script:
PS .Find-PerlAndPythonFiles.ps1
Perl and Python files were found inside 1 subscriptions.
Launch the same script with parameter -ShowFiles to get exact list of files.
Subscriptions:
example.comPS .Find-PerlAndPythonFiles.ps1 -ShowFiles
C:Inetpubvhostsexample.comhttpdocsindex.py
How to remove ActivePython and ActivePerl from a Plesk server?
Warning: Removing ActivePython and ActivePerl from the server with Plesk 12.0 will make SpamAssassin and AWStats stop functioning. To prevent such a situation upgrade Plesk from 12.x to the latest release.
-
Disable the Perl support and Python support options for all existed service plans in Service Plans > Service_Plan_Name > Hosting Parameters.
Warning: this is a mandatory step: otherwise, handlers will not be removed from domains settings.
-
Connect to the server via RDP.
-
Go to Start > Control Panel > Programs and Features.
-
Select ActivePerl or ActivePython and click the Uninstall button.
How to get a license to use and install the ActivePython and ActivePerl on a Plesk server
If it is necessary to continue using ActivePython and/or ActivePerl, get the license and installation packages directly from the ActiveState.
-
Go to the page https://www.activestate.com/solutions/get-quote/.
-
Submit a request for ActivePython 2.6.x and/or ActivePerl 5.10.x.
-
Communicate with ActiveState to purchase an appropriate license.
After ActiveState provides the installation packages, install them to the following directories so they are properly…
-