cPanel® Blog

Developing with LiveAPI

In earlier versions of cPanel, developers included a script called LivePHP. This technology is essentially an internal window on the server to make API 1 and API 2 calls to the local machine via a socket to cpsrvd. Through LivePHP, you could use API functions through API tags and our Remote XML or JSON API. This is the suggested best practice for accessing cPanel functionality from your Plugins for reasons of simplification and …

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 …

Managing Multiple Domains from a Single Hosting Account

Introduction Managing multiple domains from a single hosting account is relatively easy but will require you to correctly configure some DNS settings and create addon domains. For this post, I’m going assume you’ve already registered a few domains and have access to your hosting interface via a main domain. Before going any further, let’s specify some working examples: …

Making your script work with security tokens in cPanel & WHM

What is a security token? “Security token” URLs were added in cPanel & WHM 11.25 as a security measure, and they were enabled by default in version 11.28. They help combat a common type of attack called a Cross-Site Request Forgery (XSRF). So, what does a “security token” look like? Take, for example, this URL: https://example.com:2087/i/love/cpanel With security tokens enabled, this would become: https://example.com:2087/cpsessYYYYYYY/i/love/cpanel In that example, cpsessYYYYYYY is the token unique to that logged-in …

Preview of the new Logaholic website analytics feature.

Logaholic is a new feature that is now available in the the 11.31.1 EDGE build. Logaholic is a web site statistics program that provides you with a visual representation of your web site visitors. Logaholic is a powerful web analytics (log file processor) solution that delivers reliable, objective visibility reports about the performance of your web site traffic, content, keywords and marketing. cPanel & WHM EDGE tier releases are development preview releases …

LivePHP

Currently, if you want to write a Plugin for cPanel, you can write it in either LivePHP or cPPHP. Last year, we put some major effort into refactoring LivePHP. We added better debugging information, optimized the socket communication protocol, and added a few other tweaks. After a year of vetting by external developers, I can say with confidence: there is no longer any reason to use cPPHP when developing your application. …

Why you should use RPMs to distribute your application

As a developer, it is important to understand who you are developing for. When developing an application for cPanel & WHM servers, there are 5 potential customer profiles to be aware of: Data centers Developers Website owners System administrators Hosting providers Understanding these profiles will help you scope and define a project. In this article, we will focus on Data centers and the various problems you might encounter when working with them. …

Spotlight On: Creating DNS Modules

In cPanel & WHM 11.30, we added the ability to add 3rd party systems to your DNS cluster. With this ability, we added functionality that allows you to create dnsadmin plugins. You can use these plugins to control and configure remote nodes of your DNS cluster.  The plugins themselves consist of a few Perl modules. Creating a dnsadmin plugin will require some familiarity with Perl. To begin building a dnsadmin plugin, please read the documentation. …

«...5...272829...»