Home | Members | PHP Scripts | Search | Guide | Whois Service | Contact Us
Perl Scripts

Adv Logger
Adv Backup
Adv Bandwidth
Adv Guestbook
Adv Search
Adv Domain
Adv Print
Adv Emailit
Adv Mailer
Adv MySql Backup

Buy/Order

Custom Scripts

Free Scripts

Perl Info
Users Online
Users Today



GUIDE

How do I install a perl script?

You need the following before you start.

  1. The script to be install on your local computer say hello.cgi.
  2. A good FTP software like smartftp
  3. Know the location of perl on your server.
  4. A text editor, notepad in windows will do.

Find out the location of perl on your server. its usually at /usr/bin/perl. Open hello.cgi using notepad and edit the first line to #!/usr/bin/perl ie. #! followed by the location of the perl script.

Connect to your server using the FTP software and change to the /cgi-bin/ directory on your server. Sometimes you have to create this directory. An FTP software can upload via two methods. ASCII or Binary. For Script we change the method of upload to ASCII and upload the file. Now change hello.cgi on the servers property to 755. This is usually done by right clicking on the file name. This tells the server that the file is a executable file.

To check if your script works, using your browser go to http://www.yourdomain.com/cgi-bin/hello.cgi. (Replace yourdomain.com with actual domain). You should get the output "Hello Word" on your browser screen.

A sample of the Hello World script can be got here.

Back to Guide

 
Copyright 2000-2003 © Perlonline.com. All rights reserved
Site Powered by Plussoftware Solutions