cPanel Blog

Archives: February 2012

Create Custom cPanel Modules

Nearly all cPanel actions are governed by cPanel API1 and API2 functions. For your application, instead of creating your own API from scratch, we’re created the ability to add your application’s logic to the cPanel XML/JSON API. Essentially speaking, your custom cPanel Perl Module can create a remote window of access to your application’s functions to be used through the XML/JSON APIs, LiveAPI, or cPanel tags. The ability to build and use Custom cPanel Modules …

Test it in the User Interface

After spending time in the Developer section of the cPanel Community Forums, we’ve found a commonly asked question: “Why won’t my script work with XYZ function using the XML/JSON-API?” Rewinding a bit, the purpose of the XML/JSON API is to allow usage of cPanel & WHM functions through applications or scripts. Naturally, the first question we often ask, when trying to figure out why a script isn’t working, is if the user is trying to …

Pointing two URLs to the same website

Introduction Pointing two URLs to the same website is a good way to direct traffic to your site from several different domain names. You can accomplish this in two ways: either redirect one of the URLs to your primary domain, or park one of the URLs, which points that domain towards your primary domain. Redirecting a website A redirect occurs when typing a web address in the address bar sends a visitor to another website …