top of page
Search
Writer's pictureHTS Hosting

How to Downgrade Your Server’s Local License Files for Testing

The steps to downgrade the local license file of a server for the purpose of testing are documented here. The hint file, /var/cpanel/license.cfg can be used to request a restricted cPanel & WHM license for the purpose of testing. Such restricted license benefits those developers that experiment with user limitations or test custom code.

The /var/cpanel/license.cfg file is used by the system as a hint for the license request in order to downgrade a local license file. This file cannot be used to upgrade your license. The /var/cpanel/license.cfg file is available in cPanel & WHM version 84 and in its later versions.


What is cPanel & WHM? It is a suite of tools that has been built for Linux OS. It enables the automation of web hosting tasks through a simple GUI (Graphical User Interface). cPanel & WHM is meant for ensuring that server management is easy for the service providers and website management is convenient for those owning the websites. In the context of websites, these are made available through the service of web hosting, which is provided by web hosting companies. In web hosting, server space is made available for hosting the files (web content) of websites. Through the service of hosting and the technologies involved in it, the files are delivered over the Internet from the server to the client (Internet-connected devices) that had generated the request for the web content. In this way, web hosting makes it possible to render websites accessible. This service is not only responsible for ensuring that websites are continuously accessible but also for ensuring that the sites are up and running securely without any interruption. Website hosting can be of many types, such as shared, dedicated, cloud, VPS, reseller, and WordPress. Each of these caters to specific web hosting requirements and is made available through various plans at different prices. Usually when opting for the “Best Website Hosting Company” or the “Top Cloud Hosting Company”, the factors that are given priority are the availability of high uptime, fast page loading, data backup facility, a high standard of security, SSD, availability of 24*7 technical support, along with budget-friendly plans.


Now let us elaborate on the process to downgrade your local license file.


The Process to Downgrade Your Local License File


You need to carry out the below-mentioned steps to downgrade your local license file for testing.


  • Log in to your cPanel & WHM server from the command line. This needs to be done as the root user.


  • Use your favourite editor to open the /var/cpanel/license.cfg file.


  • Edit the producttype and maxusers values to your desired settings.


  • Save the file.


  • Refresh the license by running the script, /usr/local/cpanel/cpkeyclt


Available Values


  • producttypeIt refers to a server profile. Its type is string. Its possible values are as follows-


  • databasenode – The Database Node profile.


  • dnsnode – The DNS Node profile.


  • dnsonly – The DNSOnly mode.


  • mailnode – The Mail Node profile.


  • standardnode – The Standard Node profile.


  • maxusers It is a numeric value. This value has to be lower than the maximum number of users that is allowed by your license. It should be a positive integer, which doesn’t exceed your license’s maximum user count.


3 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page