Child pages
  • CGI Center
Skip to end of metadata
Go to start of metadata

 

For cPanel & WHM version 11.50

(Home >> Software and Services >> CGI Center)

Overview

A Common Gateway Interface (CGI) allows you to run scripts. cPanel’s CGI Center interface provides a list of CGI scripts that display and manage guestbooks, clocks, hit counters, and banner ads.

Simple CGI wrapper

This feature creates the public_html/scgi-bin directory. When you add scripts to this folder, your web server handles them as CGI scripts.

 

Notes:

  • Every CGI script has unique configuration needs. Make certain that you consult the script’s installation instructions. For example, you may need to define URLs and variables. To do this, use cPanel's File Manager interface (Home >> Files >> File Manager) or a text editor in the command line interface.
  • If your web hosting provider uses suEXEC to run CGI scripts, the Simple CGI Wrapper is unnecessary. Contact your web hosting provider to determine whether they use suEXEC.

Random HTML Generator

The Random HTML Generator script randomly selects and displays a line of user-defined text when a visitor views your website.

To insert random text on a web page, perform the following steps:

  1. Click Random HTML Generator.
  2. In the text box, enter the text to display. Use line breaks to separate each line of text, for example:

  3. Click Save.
  4. Paste the text to display into the HTML file where you wish for a randomly-selected line of text to appear. The code will appear similar to the following example:

Whenever a visitor views the web page, the interface displays a randomly-selected line from the list that you entered in the Random HTML Generator interface.

Warning:

The file must use the .shtm or .shtml file extension.

Simple Guestbook

The Simple Guestbook script allows visitors to leave comments about your website. To add a guestbook, copy and paste the HTML code at the bottom of the interface into your web page.

To view the guestbook, click View Guestbook. To delete entries from the guestbook or email a guest, click Manage Guestbook.

To edit the appearance of the guestbook, perform the following steps:

  1. Click Simple Guestbook.
  2. Click Edit Guestbook Template.
  3. Edit the template.

    Note:

    The Edit Guestbook Template feature uses HTML code. For more information about HTML code, consult your preferred search engine.

  4. Click Save.

Advanced Guestbook

Note:

The Advanced Guestbook script now exists as a cPAddon (Home >> Software and Services >> Site Software ). If the Advanced Guestbook script does not exist for your web site, contact your hosting provider.

The Advanced Guestbook script allows visitors to leave comments and greetings. You can configure it to allow visitors to add photos and preview their entries.

Counter (Add a Counter, Clock, or Date)

The Counter script adds a counter to your website that displays how many times visitors view your website. You can also use this script to display the current time and date.

To add a counter, perform the following steps:

  1. Click Counter.
  2. Under Please select functionality, select Counter, Clock, or Date.
  3. Configure the appearance of the counter, clock, or date display as desired.

  4. In the Counter Name text box, enter the counter's name to use to save the configuration.
  5. To preview the counter, clock, or date display, click Preview.
  6. Click HTML to generate the HTML code that displays the counter, clock, or date.
  7. Copy the text that begins with the <img src= tag and ends with the > tag.
  8. Paste the text into the HTML file where you wish for the counter, clock, or date to appear.
    • To change the name of the script, enter the new name in the Counter Name text box and click Commit Changes.
    • To reset the count, enter a number in the New Count text box and click Commit Changes.

Clock

The Clock script displays a clock on your website.

To create a clock, perform the following steps:

  1. Click Clock.
  2. Configure the appearance of the counter, clock, or date display.
  3. Click Create HTML to generate the HTML code that displays the clock.
  4. Copy the text that begins with the <applet tag and ends with the </applet> tag.
  5. Paste the text into the web page where you wish for the clock to appear.

Countdown

The Countdown script displays a countdown clock on your website to inform visitors how much time remains until a certain event occurs.

To add a countdown clock, perform the following steps:

  1. Click Countdown.
  2. From the Select your TimeZone menu, choose the correct zone.
    • For example, to display Eastern Standard Time (U.S.), select GMT-0500.
  3. Select the year, month, day, and hour of the event to which to count down.
  4. Click Create HTML to preview the countdown clock. The HTML code that creates the countdown clock will appear.
  5. Copy the text that begins with the <applet tag and ends with the </applet> tag.
  6. Paste the text into the HTML file where you wish the clock to appear.

CGI Email

Warning:

If the CGI Email interface does not exist for your web site, contact your hosting provider.

The CGI Email script allows visitors to email comments to you.

CGI email requires several steps to set up. For information on how to set up a CGI email form, click cgimail user guide.

For more information, view the CGI Email documentation.

FormMail Clone

The FormMail Clone script allows visitors to send email messages through a customizable form on your website.

Warning:

If the FormMail Clone interface does not exist for your web site, contact your hosting provider.

To use FormMail Clone, perform the following steps:

  1. Click FormMail Clone.
  2. Copy the text that appears after The actual script is here.
  3. Paste this text into the HTML file, in a <form action> tag.

To learn more about FormMail, view the FormMail documentation.

Entropy Search

The Entropy Search script allows visitors to quickly find information on your website.

To use Entropy Search engine, perform the following steps:

  1. Click Set up Search Engine.
  2. Copy the text that begins with <form> and ends with </form>.
  3. Paste the text into the HTML file where you wish for the search box to appear.
  4. Click ← Go Back.
  5. Click Rebuild Search Index.

    Warning:

    • The Rebuild Search Index function sets up an internal list of your website’s contents to allow searches. Click this link whenever you add new pages to your website.
    • The Rebuild Search Index function executes more slowly on larger websites.
    • The Entropy Search engine is a file based index system. It indexes all files that use the .txt, .html, .shtml, and .htm file extensions inside the public_html directory, without regard to file access restrictions. Do not use the Entropy Search engine if your public_html directory contains any sensitive files with these extensions.

To change the appearance of the results web page that visitors see, perform the following steps:

  1. Click Edit Search Results Template.
  2. Customize the background color, add a background image, and edit the title of the results web page as desired.
  3. Click Save.

Entropy Banners

The Entropy Banners script allows you to manage a rotation schedule for banner advertisements. This script allows your visitors to see different logos or advertisements whenever they access your site.

How to add banners

To add banners to your site's banner pool, perform the following steps:

  1. Click Entropy Banners.
  2. Click Add Banners.
  3. Click Choose File and select the image to upload from your computer.
    • Repeat this process for each banner to add. You may upload a maximum of 12 images at one time.
  4. To replace an existing banner, select the Overwrite existing files checkbox.
    • This action replaces older ads with newer ones, as long as they use the same filename.
  5. Click Upload.

How to control a banner's schedule

To control a banner's display schedule, perform the following steps:

  1. In the Entropy Banners interface, click Modify Rotation.
  2. Select High, Medium, or Low priority for the banner, which determines how often the banner will appear on your site.
  3. Click Save.
  4. In the Linked to text box, enter the URL to which the system will redirect visitors when they click the banner.
  5. Click Save.

To delete a banner, click Delete.

How to add rotating banners to a web age

To add rotating banners to a web page, perform the following steps:

  1. Copy the text that begins with <!--#include virtual and ends with -->.
  2. Paste the text into the HTML file where you wish for the banner to appear.

Warning:

The file must use the .shtm or .shtml file extension.