Ruby, Ruby Gem, Rails and Mongrel Troubleshooting Guide

You’ve taken the plunge and installed Ruby on your cPanel system using our /scripts/installruby command. Now, you are preparing to run Rails applications to step into the Web 2.0 world. This guide will cover some of the common issues that might prevent your application from working. Continue reading

Category: Product Development | 1 Comment

The Admin’s Toolbox, Vol. 1 – tcpdump and you.

Hey there! In this instance of The Admins Toolbox, I’ll be discussing the tcpdump utility and some common uses. Sit back, crack open a frosty beverage of your choosing, and let’s learn about packet inspection for fun and profit. :)

Tcpdump is by no means a new program. Written by Van Jacobson, Craig Leres, and Steven McCanne, while working at Berkley in 1987, tcpdumps popularity quickly rose due to its high caliber of features. Soon after its release, it was ported to Continue reading

Category: Product Development | Leave a comment

Maintaining Application Compatibility

With version 11.28 of cPanel & WHM making it’s way into the production update tiers, now is a great time to discuss your application testing strategies. It’s every developer’s responsibility to test and verify their applications within their actual deployment environments. cPanel & WHM is a constantly evolving product. With each new version we aim to improve not only the end user experience, but also its suitability as a platform for your applications. We work hard to maintain a stable and consistent application platform, but sometimes changes for the better will require an additional effort from developers. We want to ensure that those changes happen before our customers and your end users notice a problem. Continue reading

, , , , , , , | Category: Product Development | Leave a comment

Upcoming Improvements to LivePHP

This past week, we have been working to improve livePHP. For those of you not familiar with livePHP, it is a PHP class that allows access to the cPanel & WHM API1 and API2 system within an object-oriented PHP environment.

We improved the backend of the livePHP system to use JSON for socket communication, which utilizes PHP’s native JSON internally. Our testing shows that this is a great deal faster (3X) than the previous XML-based serialization with custom PHP parsing functions.

Our intent has been to maintain compatibility with the legacy interface provided by the cpanel.php class. However when changes of this nature are made, there is always a possibility of conflict. If you have an application, either for your internal use or public distribution, then we would love to get feedback on how this change has improved your product. We recommend that you submit a support request directly to us, so that we can help coordinate your testing. Please reference this article so that we can ensure your request gets the priority it deserves.

It should be noted that this is not available in public builds yet, so a ticket will need to be opened in order to coordinate your testing.

, , , , , | Category: Product Development | Leave a comment

How to integrate applications with cPanel/WHM

Do you have a product or service offering that you would like to integrate with cPanel? I can help you with that. We are frequently approached by companies and individuals who have realized the incredible opportunity presented by integrating their offerings with the cPanel & WHM control panel. We are committed to providing a product that can easilybe extended to meet your needs. The sections below contain more information about integrating with cPanel and WHM. Continue reading

Category: Product Development | 4 Comments

Frequently Asked Scripts: “How do I automate XYZ after creating an account?”

This is a very common question on the cPanel forums. Many times ‘XYZ’ is adding a particular DNS zone or creating a MySQL database. In this blog post, we’ll go through the basics of script hooks and make a post hook that utilizes the XML-API to achieve ‘XYZ.’ Continue reading

Category: Product Development | Leave a comment

Skipping the WHM Getting Started Wizard

In this article we detail the steps required to remove the Getting Started Wizard.  Someone may want to do this for the purpose of delivering servers in a “Configured” state. Continue reading

Category: Tips & Tricks | Leave a comment

More Details About DB Mapping

As mentioned in A General Overview of Database Mapping , DB Mapping is available with the launch of cPanel 11.25.1. Let’s recap what DB Mapping is and then we can chew on the details:

  • DB Mapping is core code in 11.25.1
  • DB Mapping exposes DB Prefixing behaviors
  • DB Mapping provides an interface for importing non-cPanel accounts

Continue reading

Category: Product Development | Leave a comment

Spotlight On: API Docs & Writing a cPanel Plugin

As of today, cPanel’s API1 and API2 are fully documented. cPanel’s x3 interface is entirely API-driven, meaning that every action you can perform in the cPanel interface is now documented and can be automated through our XML-API or reimplemented in a unique theme.

Accompanying the complete release of our API documentation is a guide called Writing cPanel Plugins. These documents cover all of the steps required to create a cPanel plugin, in addition to some tools you can use.

These tools include:

  • LivePHP – A PHP class that allows you to use object-oriented programming to access cPanel’s APIs
  • cPanel Template Toolkit (cptt tags) – A template-driven API2 parser that utilizes the Template::Toolkit library, making API2 easier to use.

As always, if you need help, don’t hesitate to post in the Developer Discussion forum.

Category: Product Development | Leave a comment

A General Overview of Database Mapping

Inside of 11.25.1 we are introducing a new feature called “database mapping” .  Despite the vague name, this feature has huge implications for integrated applications, transfers from non-cPanel servers and custom themes.  What this does is remove the restraint of MySQL database and usernames having to be prefixed by the cPanel account’s username.

The benefit of the DB Mapping feature is that when transferring accounts from non-cpanel systems, the database name will now be preserved rather than having to hunt it down in configuration files and waste extra time on account migrations.  The other benefit is that users will not longer have the confusion of having their username automatically prefixed to the database name.  When they create a database it will be the string that they type into cPanel.

The core DB Mapping functionality has been factored into the cPanel code, however the new behavior is not exposed in the cPanel interface until you enable it, i.e. ‘opt-in.’  This design provides two key benefits. 1) If you’re migrating from  a non-cPanel system the database names will stay perfectly intact and 2) It eases the transition from the old, username prefixes, to the new non-prefix database names; you can chose when the best time is to offer this functionality and it’s just a click away.

To enable DB Mapping and remove the prefix behavior, a Tweak Settings toggle as been added.  Enabling ones cPanel system will have no effect on pre-existing databases.  CPanel interfaces and database creation will still continue to function as it has until you ‘opt-in’ from this Tweak Setting.

The affect of this on themes and integrated applications is that there will be the addition of new API calls to handle the new system of managing databases.  Some backwards compatibility may be broken in the move to the new system, so please beware!

We will have a blog post detailing the technical details of this system around the same time that we release 11.25.1 to EDGE.

Category: Product Development | Leave a comment
Page 10 of 12« First...89101112