Portal Home > Knowledgebase > Software > CGI Center?


CGI Center?




Short for “Common Gateway Interface,” CGI lets a web server run pieces of software called scripts. cPanel’s CGI Center provides CGI scripts that can do many useful things for your website, like create a guestbook, clock, hit counter, countdown clock, and banner ads.

 

  • Simple CGI Wrapper
  • Random HTML Generator
  • Simple GuestBook
    • Add a Guestbook
    • View Your Guestbook
    • Delete Guestbook Entries
    • The Edit Default CGI and Edit Guesbook Template Links
  • Advanced GuestBook
    • Configure the Advanced Guestbook
    • Delete an Advanced Guestbook
    • Additional Information About the Advanced Guestbook
  • Counter (Add a Counter, Clock, or Date)
  • Clock
  • Countdown
  • CGI Email
  • Entropy Search
  • Entropy Banners
    • Configure Rotating Banners
    • Control a Banner's Schedule
    • Add Rotating Banners to a Page

 


 

Simple CGI Wrapper

CGI scripts are pieces of software that can do many useful things for your website; for example, a CGI script can create a chat room or shopping cart.

The Simple CGI Wrapper creates a special folder, called /scgi-bin, inside the /public_html directory. When you add scripts to this folder, your web server knows to handle them as CGI scripts.

You can access the simple CGI wrapper in the CGI Center by clicking the appropriate link. CGI scripts will need to be placed in /public_html/scgi-bin for cPanel to handle them as CGI scripts. Once a script has been placed in this folder, it will run whenever a visitor uses a web browser to view, as an example, http://www.example.com/scgi-bin/examplescript.cgi. CGI scripts can also be embedded in a webpage using the tag.

Please note that every CGI script will have unique setup needs; be sure to consult the script’s installation instructions. For example, URLs and variables may need to be defined. You can do this using cPanel’s File Manager, or from the command line interface (CLI). (To use the CLI, you will need SSH access to the web server as well as a command line text editor.)

ALERT! Note: Your web host may provide a feature called suEXEC that lets it run
CGI scripts, making the Simple CGI Wrapper unnecessary for your website. Contact your web host or review the terms of your agreement to find out whether this is the case.

 


 

Random HTML Generator

If you would like to show a different fact, quote, or other piece of text every time a visitor views your website, you can use the Random HTML Generator.

To insert random text on a web page:

  1. At the CGI Center, click the Random HTML Generator link.
  2. Enter any information you would like to display into the text box.
    • Seperate each comment by line.
  3. Click Save.
  4. Add the line of HTML code shown on the Editing the Random HTML Template screen to your web page’s HTML.
    • Make sure to save the web page with a name ending in .shtml.

Every time a visitor views the web page, he will see a fact or quote from the text box

 


 

Simple GuestBook

cPanel can generate a simple guestbook for your website. Guestbooks allow visitors to leave comments about your website.

The Simple Guestbook screen shows an sample of what the guestbook will look like on your website.

Add a Guestbook

To add a simple guestbook:

  • Copy and paste the HTML code from the bottom of the screen into your web page.

Once this is done, visitors to your site will be able to sign your guestbook and view others’ greetings.

View Your Guestbook

  • To view the guestbook on your website, click the View Guestbook link.

Delete Guestbook Entries

  • To delete entries or email a guest, click the Manage Guestbook link.

 

The Edit Default CGI and Edit Guesbook Template Links

These links, located at the top of the Simple Guestbook main page, allow you to edit the appearance of the guestbook. To accomplish this you will need to be familiar with HTML. Consult your preferred search engine for tutorials and information about HTML.

ALERT! Remember: Click Save when you are finished modifying the
HTML code in the text box.

 


 

Advanced GuestBook

ALERT! Note: The Advanced Guestbook is a deprecated feature and may not be enabled for use on your site.

The Advanced Guestbook allows your visitors to leave comments and greetings. You will also be able to configure it to allow visitors to add photos and preview their entries.

Configure the Advanced Guestbook

To configure the Advanced Guestbook:

  1. Read the License Terms before filling out the information below.
  2. Type your desired username into the Admin User field.
    • Remember: This username will have administrative privileges for the guestbook.
  3. Type your desired password into the Admin Pass field.
    • Remember: Choose a secure password. A secure password should not be a word in the dictionary and contain alphabetic, numeric, and special characters.
    • You can use the Generate Password button to have cPanel generate a secure password.
  4. Retype the password in the Admin Password (Again) field.
  5. In the Email box, type the email address at which you would like to receive guestbook entries.
  6. In the Installation URL box, type the web address where you would like your guestbook to appear.
    • This will be the URL that your visitors will access to sign your guestbook.
  7. In the Table Prefix box, enter the prefix for your databases that will be created.
    • This will prevent your web server from confusing guestbook entries with other information on your website.
  8. From the MySQL DB pull-down menu, choose the database where you would like to save information about guestbook visitors (such as their name, email address, and website).
    • You may select a database that already exists for your website.
    • You may choose Create New Database to create a new database.
  9. Click the Install button.
    • You can view the installed guestbook by clicking the displayed link.
    • You can return to the guestbook configuration screen by clicking the link in brackets [].

When a new version of the guestbook software is available, it will appear under Upgrade. When possible, you should upgrade to the new version as it may contain bug and security fixes.

Delete an Advanced Guestbook

To remove Advanced Guestbook from your site:

  • Click Uninstall.

Additional Information About the Advanced Guestbook

To view the latest version of the Advanced Guestbook script, as well as other available scripts:

  • Click Support.

 


 

Counter (Add a Counter, Clock, or Date)

You can add a “hit counter” to your website, which tells you how many times your site has been viewed. You can also display the current time or date on your website. From the CGI Center, click the Counter link.

  1. Under Please select functionality, select Counter, Clock, or Date.
  2. The next 2 items (Please select time zone and TimeFormat) only affect the clock function. If you are creating a counter please skip to step 4. For a date display, skip to step 3. If you are creating a clock,
    • Choose the appropriate time zone. For example, if you want your website to display Eastern Standard Time (U.S.), then select GMT-0500.
    • Under Please select Format, next to TimeFormat, choose a 12-hour or 24-hour clock. (For example, 1:00 PM in 12-hour format is the same as 13:00 in 24-hour format.)
  3. Under Please select Format, next to Date Format, select the way you want the date to appear.
  4. Under Please select Format, you will need to enter the thickness of the frame that will appear around your counter. To do this, enter a number into the box, or click the “+” or “-” signs to increase or decrease the frame’s thickness. (You will be able to preview and adjust this later.)
  5. Under Please select Frame Color, enter the values for the frame’s color. To make this easier, cPanel provides a graphic tool for choosing a color. You can use this tool by clicking the multicolored box.
  6. Choose the color you wish to use, then click the “x” in the upper right corner of the color selector.
  7. If you are creating a counter, under Please select Maximum digits, choose the number of digits that will appear in your counter. If you are creating a clock or date display, skip to the next step.
  8. Under Please Select Style, click the See Styles link to view the 33 different types of displays available. Then enter the letter or number of the style you want. Please note that not all styles will work with the clock or date display.
  9. Under Counter Name, enter the name you want cPanel to use to save the counter, clock, or date display on the web server.
  10. The Color Replacer will find and replace all instances of one color with another. This is helpful if, for example, you want to replace the colors of the numbers in the display.
    • To enter a color to be replaced, click the multicolored box next to Source Color and choose the color you wish to replace.
    • Then click the multicolored box next to Replacement Color and choose the color you wish to change it to.
  11. To view the counter, clock, or date display before it goes onto your website, click the preview button. You may preview the display as many times as you need to. Once it looks acceptable, click html.
  12. cPanel will show the HTML code that creates the counter, clock, or date. Simply copy the text beginning with
    1. and ending with > and paste it into the web page where you want the counter to appear.

 

  • If, after you have created the display, you want to change its name, simply enter the new name in the Counter Name box and click Commit Changes.
  • To reset the count, enter a number in the New Count box, and click Commit Changes.


ALERT! Note: Clicking Clock directly from the CGI Center will display a different screen; this is simply another method of creating a clock for your site.

 


 

Clock

Using this feature, you can create a clock for your website.

ALERT! Note: Clicking Counter and choosing Clock from the Counter screen is another method of creating a clock for your site.

To do so:

  1. 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.
  2. Under Select your Time Format, choose a 12-hour or 24-hour clock.
    • For example, 1:00 is 12-hour format, versus 13:00 in 24-hour format.
  3. Under Border, choose whether you would like a border around your clock (On) or not (Off).
  4. Choose whether you would like your clock to show the day of the month in small numbers following the time using the Show Date pull-down menu.
  5. Choose which color you would like the numbers to be with the Foreground Color pull-down menu.
  6. Choose which color you would like the background to be with the Background Color pull-down menu.
  7. Click Create Html.


cPanel will show the HTML code that creates the clock. Simply copy the text beginning with and ending with and paste it into the web page where you want the clock to appear.

 


 

Countdown

You can create a countdown clock for your website. This is useful if, for example, you want to show your visitors how much time is left until a certain event.

To add a countdown clock:

  1. From the CGI Center, 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. Then click the Create Html button to see a preview of the countdown clock.
  4. cPanel will show the HTML code that creates the countdown clock. Simply copy the text beginning with
    1. and ending with and paste it into the web page where you want the clock to appear.

 


 

CGI Email

CGI Email uses a basic script which lets visitors email comments to you. One way to create this form is by clicking CGI email from the CGI Center.

Setting up CGI email is complex and requires a number of steps. Please use the cgimail user guide link to help you set up a CGI email form. You can visit this documentation at http://web.mit.edu/wwwdev/cgiemail/user.html.

 


 

Entropy Search

cPanel includes a small Search function that will allow your visitors to find information on your website quickly. From the CGI Center, under Entropy Search, click Setup Search Engine. cPanel will show a sample search box, and the HTML code that creates it.

To add a search box:

  • Copy the text beginning with
    and ending with
    and paste it into the web page where you want the search box to appear.

If you’re comfortable working with HTML and you would like to change the appearance of the results page that visitors will see, click Edit Search Results Template. Here, you may change the background color, add a background image, and edit the title of the results page. Once you have made your changes to the HTML file, click Save.


ALERT! Important: Before your search box will work, you must click the Rebuild Search Index link under Entropy Search in the CGI Center. This sets up an internal list of your website’s contents, so they can be searched. It’s a good idea to click this link whenever you add new pages to your website.

ALERT! Remember: The larger your website, the longer the Rebuild Search Index link will take.

 


 

Entropy Banners

cPanel comes equipped with an application that is capable of managing a rotation schedule for your banner advertisements. This is useful if you would like your visitors to see different logos or advertisements each time they access your site. To begin, click the Entropy Banners link in the CGI Center.

Configure Rotating Banners

To set up rotating banners, you must first add banners:

  1. Click the Add Banners button.
  2. Click Choose File and select the image you would like to add from your computer.
    • You can repeat this process for each banner you would like to add.
    • You can choose up to 12 images at a time.
  3. If you want to replace existing banners, click the checkbox next to Overwrite existing files.
    • This will replace older ads with newer ones, as long as they have the same filename. (If you want to delete ads one at a time, see below).
  4. Click Upload.
    • cPanel will tell you whether the upload was successful.

ALERT! Remember: that the file must end in .shtm or .shtml in order to work on your web page.

Control a Banner's Schedule

cPanel also makes it easy to control how often a certain banner ad will display.

To control the banners’ display schedule:

  1. From the Entropy Banners screen, click Modify Rotation.
  2. Select High, Medium, or Low priority for each banner, depending on how often you want it to appear on your site.
  3. Click Save to store your changes.
  4. Under Linked to, enter the web address where the visitor will go when he clicks the banner.
  5. Click Save.

Add Rotating Banners to a Page

To create rotating banners on a page:

  • On the main Entropy Banners page, copy the text that begins with
    • and paste it into the web page’s HTML file.
    and paste it into the web page’s HTML file.



Was this answer helpful?

Print this Article Print this Article

Also Read
Perl Modules (Views: 986)
Site Software (Views: 1102)
PHP PEAR Packages (Views: 1898)
PHP Configuration (Views: 1031)

Powered by WHMCompleteSolution

Language: