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

For cPanel & WHM 11.48

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

Overview

CGI (Common Gateway Interface) 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

The Simple CGI Wrapper 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 sure that you consult the script’s installation instructions. For example, you may need to define URLs and variables. Use cPanel's File Manager interface (Home >> File >> 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 every time that 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 that you wish to display. Use line breaks to separate each line of text. For example:

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

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

Warning:

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

Simple Guestbook

The 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.

Click View Guestbook to view the 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 Guestbook.
  2. Click Edit Guestbook Template feature.
  3. Edit the template.

    Note:

    You will need to be familiar with HTML to edit the template. Consult your preferred search engine for tutorials and information about HTML.

  4. Click Save.

Advanced Guestbook

Note:

Advanced Guestbook is now available as a cPAddon (Home >> Software/Services >> Site Software ). If Advanced Guestbook is not available for your web site, contact your hosting provider.

The Advanced Guestbook 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)

This script adds a counter to your website that tells you how many times visitors have viewed your web site. You can also use this script to display the current time or date.

To add a counter, perform the following steps:

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

  4. In the Counter Name text box, enter the name that you wish 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 <img src= and ends with >
  8. Paste the text into the HTML file where you want the counter, clock, or date to appear.
    • If you wish 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

This 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 as desired.
  3. Click Create HTML to generate the HTML code that displays the clock.
  4. Copy the text that begins with <applet and ends with </applet>
  5. Paste the text into the web page where you want the clock to appear.

Countdown

This script displays a countdown clock on your website to show visitors how much time is left until a certain event.

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, if you want your website to display Eastern Standard Time (U.S.), then select GMT-0500.
  3. Choose the year, month, day, and hour of the event to which you want 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 <applet> and ends with </applet>
  6. Paste the text into the HTML file where you want the clock to appear.

CGI Email

Warning:

If CGI Email is not available for your web site, contact your hosting provider.

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

CGI email requires a number of steps to set up, and it can be complex to configure. Click cgimail user guide for help to set up a CGI email form. You can also view the documentation at the CGI Email site.

FormMail Clone

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

Warning:

If FormMail Clone is not available 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 setting up FormMail, view the FormMail documentation.

Entropy Search

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

To use Entropy Search, 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 want the search box to appear.
  4. Click ← Go Back.
  5. Click Rebuild Search Index.

    Warning:

    • This 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 larger your website, the longer the Rebuild Search Index function will take.
    • Entropy Search is a file based indexing system. It will index all files with the .txt.html.shtml, and .htm file extensions inside the public_html directory, without regard to file access restrictions. You should not use Entropy Search if your public_html directory contains any sensitive files with these extensions.

If you wish to change the appearance of the results web page that visitors will 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

Entropy Banners allow you to manage a rotation schedule for banner advertisements. This is useful if you would like your visitors to see different logos or advertisements each time that they access your site.

To set up Entropy Banners, you must add banners to your site's banner pool, configure the display schedule, and add the banner code to a web page.

How to upload 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 that you wish to add. You may upload a maximum of 12 images at a time.
  4. If you wish to replace an existing banner, select the Overwrite existing files checkbox.
    • This will replace older ads with newer ones, as long as they have 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 HighMedium, 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 where visitors will go 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 want the banner to appear.

Warning:

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

  • No labels