How can I add my own module for WHM or Cpanel?

A lot of people have been asking over the last 24 hours how they can extend cPanel to give them an edge of their competition. I've put together a short howto on creating a cPanel module and a WHM cgi. Please redistribute this document freely.

Please read the below if you feel inclinded: ==================== cPanel Module How-TO ==================== cPanel modules need to be located in /usr/local/cpanel/Cpanel for cpanel to load them when it runs. An example module has been included since version 4. ExampleModule.pm is located in the above directory.

This howto will cover how to design a simple module to convert a windows newline (\r\n) to a unix new line (\n) in all of a user's cgi scripts. You should begin your module with a #! /usr/bin/perl as all perl scripts usually do.

You'll then need to call your package something unique. For this example we will use CgiFix. The corresponding perl line is: package Cpanel::CgiFix; The following modules names are reserved and should not be used: ... more.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions