Archive for March, 2011

SBDavid

Files Involved in Legacy System

Files Involved in Legacy System

English language and the x3 theme.

The Legacy System

Root-specific files:

/usr/local/cpanel/lang/english — The base file
/usr/local/cpanel/lang/english.local — The local file

Theme-specific files:

/usr/local/cpanel/base/frontend/x3/lang/english — The base file
/usr/local/cpanel/base/frontend/x3/lang/english.local — The local file

The Locale System

Root-specific files:

/usr/local/cpanel/locale/en.yaml — The base file
/var/cpanel/locale.local/en.yaml — The local file

Theme-specific files:

/usr/local/cpanel/base/frontend/x3/locale/en.yaml — The base file
/usr/local/cpanel/base/frontend/x3/locale/en.yaml.local — The local file

Note: If you want to add or modify the value of a key, you should always modify the local file. Otherwise, your changes will eventually disappear.

Any editing with user interfaces in WHM and cPanel will edit the local files.

Reference: http://cpanel.net/

SBDavid

Cpanel::Locale Introduction

Cpanel::Locale is a modern localization system in cPanel and WHM. This new system is easier for developers to work with and facilitates higher quality localization. The end goal of this new system is the full coverage of localization throughout WHM, cPanel, and their command-line scripts. While this new system is flexible and robust, Cpanel has made every effort to ensure it exceeds our strict resource usage efficiency standards.

How to hide the user interface elements related to mail services from the Control Panel:

1. In the Server Administration Panel, go to Settings > Mail Server Settings (in the Mail group
2. Clear the Enable mail management functions in Panel checkbox.
3. Click OK.

Alternately, you can hide these elements by using the server_pref command line utility:

On Linux systems

/usr/local/psa/bin/server_pref -u -disable-mail-ui true

If you need to restore the mail management controls, you can do so either by going to Server Administration Panel > Settings > Mail Server Settings, and selecting the Enable mail management functions in Panel checkbox, or by using the command line utility:

On Linux systems

/usr/local/psa/bin/server_pref -u -disable-mail-ui false

Reference: http://parallels.net/

How to customize or remove Panel License and Add-On Keys

In Server Administration Panel > Tools & Utilities > License Management, there are links that can be customize or remove:

If you need to customize these links so as to point at your company’s website, create a text file named panel.ini and place the following lines there:

[marketplace]
panelAndAddonsLicensesStore = “”

If you want to remove these links from the Panel, leave the URL empty:

[marketplace]
panelAndAddonsLicensesStore = “”

Save the file and place it in the following directory on the Panel-managed server:

On Unix/Linux: /usr/local/psa/admin/conf/

To undo the customization and return to default values, remove these strings from panel.ini.

Reference: http://parallels.net

How to customize link to Provider’s Website

To customize the URL that opens when the View Services button is clicked:

On Linux systems, issue the following command:

/usr/local/psa/bin/interface_template -p -mpc_portal_url [url]

To remove the View Services button:

On Linux systems, issue the following command:

/usr/local/psa/bin/interface_template -p -extras true

Location of link to Provider’s Website

Server Administration Panel > Tools & Utilities > View Services button.

Reference: http://parallels.net

« Prev - Next »