« previous next »
Pages: [1]
Author Topic: Getting Information About Perl on Your Classic Web Hosting  (Read 2569 times)
« on: March 22, 2010, 05:51:58 pm »

Getting Information About Perl on Your Classic Web Hosting

Attention! Are you on the right page?

This help page answers a question about Cruzio Classic Web Hosting. Classic Web Hosting is domain hosting purchased from Cruzio before July of 2006.

If you purchased Cruzio's Website Basic, Plus and Premium hosting, or if you had your Cruzio Classic hosting updated, please see the Web Hosting FAQ instead.

Contents

Introduction

This help page is about using PerlDiver. PerlDiver is a Common Gateway Interface (CGI) script for people writing Perl scripts for their websites. On a given server, PerlDiver lists extensive information on the server's Perl installation(s), including

  • Server program paths
  • Environment variables
  • Installed modules

» back to the top

Getting and Installing PerlDiver

  1. Download PerlDiver from here and unzip the downloaded archive file.  You can also download it directly from their official website.
  2. Using the examples below as a reference, edit the first line of the PerlDiver CGI script (the file with the .cgi extension) to list the path to the server's Perl installation.
  3. Note: there are two versions of Perl available, Perl 5
    and Perl 5.8. You can use whichever you prefer.
    
    Example for Perl 5:
    #! /usr/local/bin/perl
    
    Example for Perl 5.8:
    #! /usr/local/bin/perl5_8
    
  4. Access your Web space with an FTP program. Within your domain's pub_html directory, create a cgi-bin directory.
  5. With your FTP program's transfer mode set to ASCII, upload the PerlDiver CGI script to the pub_html/cgi-bin directory.
  6. Set the permissions of the cgi-bin directory and all its contents to 755.

» back to the top

Using PerlDiver

Open your Web browser and navigate to

http://yourdomain.com/cgi-bin/perldiver11.cgi

where yourdomain.com is the name of your own domain. (As of this writing, PerlDiver is at version 1.1, and the filename is perldiver11.cgi. If you require a different version of PerlDiver, please change file name accordingly.)

You should now be able to view information about the server's Perl installation and modules.

» back to the top

Best Practices

Be sure to remove or disable PerlDiver after it has run. If you leave it enabled, hackers can get information about your installation that they can use to exploit it.

One way to disable PerlDiver would be to remove it completely from your website space. To do so, you would just remove or delete PerlDiver from the cgi-bin folder.

Another way would be to disable it would be to set the permissions on the PerlDiver file to 644. This would only allow write/read permissions to the administrator and read permission to everyone else.

» back to the top

« Last Edit: May 11, 2010, 04:10:15 pm by Cruzio Technical Support » Logged
Pages: [1]
« previous next »
Jump to:  


Copyright SMF 2006-2007, Simple Machines LLC