post your comment   print   send to a friend
Rate:  51% | Views: 3128
Question categories:  VPS and Collocation

I found a perl script CGI on the internet, how do I make it work?

First, you need to find out if your web site is hosted on Unix or NT server:

  • If your site is on NT: The file should have an extension .pl - that's how the web server will know that it's a perl script. Unfortunately, most of the perl scripts you will find on the Internet are designed for Unix, not for NT, so they might not work.
  • If your site is on Unix: Open the file in a text editor - the first line of a perl script should read: '#!/usr/local/bin/perl' without the quotes. Check if the script requires more files that need to be uploaded as well (e.g. if you see a line 'require "cgi-lib.pl";' you need to upload the file cgi-lib.pl as well). If you don't have a dedicated cgi-bin directory, the file should have an extension .cgi - that's how the server will know that it's executable. If you have a cgi-bin directory (note that you can't just create a directory named cgi-bin, it has to be there already) the files can have any extension (or no extension at all).You need to change the permissions on the script to make it executable for "everyone" (see the next question). If the cgi script writes to a file, that file needs to have "write" permissions for everyone. Make sure you upload the file in ASCII mode.
Customer Feedback
Rate:  51% | Views: 3128 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Dedicated Server | Web Design    Back to serch results
Browse the Base
Knowledge Base
Dedicated Servers
  VPS and Collocation
Messages
 

IP Blocker tool

Block abusers from your site with the IP Blocker tool! If you notice a specific IP address draining resources, leaving inappropriate comments, or attacking your site in any way, the IP Blocker tool gives you the power to block the abuser from returning to your site. This tool becomes especially useful in the case of major issues, such as DDoS attacks . Check it out in the Control Panel today (under "Setup tools")!
Control Panel Tools

Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. What are the benefits of utilizing a VPS?
 
2. What exactly is a VPS?
 
3. Can I host my own server at Aplus.Net?
 
4. What are the benefits of utilizing a Virtual Private Server (VPS)?
 
5. What are the benefits of colocation?
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest