Applicable to:
- Plesk
Symptoms
The following error is shown when attempting to open Plesk interface or update a license key:
PLESK_ERROR: Error: The license key is invalid. In order to use Plesk, you need to obtain and install a new valid license key.The license key is intended only for use with Plesk operating inside the following virtual environments: Virtuozzo containers, VMWare, Microsoft Hyper-V, Xen, KVM, Virtuozzo Server, LXC, Docker.
Cause
There are several possible causes:
- Plesk is installed on a not supported virtualization environment;
- Hacked BIOS on the physical machine;
- A misconfigured virtual machine is detected as physical host;
- Increased limits on a container.
Resolution
Plesk supports only the following virtualization solutions:
- VMware
- XEN
- Virtuozzo (former Parallels Cloud Server 6)
- OpenVZ
- Virtuozzo containers 4.6 for Linux
- Virtuozzo containers 4.6 for Windows
- Virtuozzo containers 4.7 for Linux
- LXC (Docker)
- KVM
- Hyper-V
If virtualization environment is not supported, upload dedicated Plesk license, not a VPS one.
To see how Plesk detects the environment it runs in, use either of the following methods:
-
Use the following script, both Linux and Windows. Create a file with the following code (named as
info.php
):CONFIG_TEXT: <?php
require_once('api-common/cu.php');
cu::initCLI();
$cu = new cu();
try {
$si = var_export(getServerInfo(), true);
cu::print_stdout($si);
} catch(Exception $e) {
cu::print_stderr("Error: " . $e->getMessage());
cu::cuExit(1);
}
cu::cuExit(0); -
Then execute it:
-
Windows:
C:\>"%plesk_bin%\php.exe" info.php | findstr platform
-
Linux:
# /usr/local/psa/bin/sw-engine-pleskrun info.php | grep platform
-
-
On a screen you will see a result of Plesk detection:
-
dedicated
ornone
stands for physical hardware. - If
parallels-server
is shown, runsysteminfo
command to get BIOS Version:Parallels Software International Inc. 6.11.25122.123124
stands for Virtuozzo version 6, update 11.
-
execute the following command:
-
Windows:
C:\>"%plesk_bin%\php.exe" -dauto_prepend_file= -r "echo get_virtualization();"
-
Linux:
# /usr/local/psa/bin/sw-engine-pleskrun -dauto_prepend_file= -r "echo get_virtualization();"
-
On Linux, other utilities you can use (not related to Plesk) include
dmidecode
andlspci
. -
Additionally, on Windows, the following steps may be followed to get BIOS information:
-
Run
wbemtest
in the command line. -
Click Connect twice.
-
Click Query.
-
Execute:
mysql> SELECT * FROM Win32_BIOS
If this results in BIOS information similar to
Version='ACRSYS - 1'
, the BIOS was hacked and the hack should be deactivated, or the license for Dedicated servers needs to be obtained.If the output suggests the lack of a virtual platform, there is no other way to make Plesk detect it other than to re-deploy it properly with the correct settings.
-
-
Make sure that Plesk Management Service is up and running. Restart Plesk management services:
-
Windows:
Login into server as Administrator Start menu > All programs > 'plesk services monitor' > Restart 'Plesk Management Services'
-
Linux:
# /etc/init.d/psa stop $ /etc/init.d/psa start
-
-
Confirm it using below command on the server:
C:\> "%plesk_bin%\php.exe" -dauto_prepend_file= -r "echo get_virtualization();"
xen
Note: If this article did not help, check /usr/local/psa/admin/logs/panel.log
file for exact error when trying to install or retrieve a license. If there are "Fork failed - Cannot allocate memory" errors found in panel.log
, visit: Error: Fork failed - Cannot allocate memory
Comments
0 comments
Please sign in to leave a comment.