How do I install my new Perl/CGI script?

The installation of Perl scripts and CGI programs on a web server varies depending on the script or program and on the particular configuration of the server. Because of this wide variation, trying to describe specific instructions is rather difficult. However, there are some commonalities that can help you complete the installation properly.

Most web servers provide a special directory, traditionally called 'cgi-bin', to hold the CGI programs. Some web servers require all such CGI programs be installed in that directory or in a subdirectory beneath it. Other web servers allow CGI programs to be intermixed with regular HTML pages and other files. Regardless, Perl scripts must be marked as "executable" in order to run properly when called by the web server. This is usually done by setting Execute permission (for Unix-based web servers) or Script permission (for Windows NT-based servers).

Perl scripts generally require a small amount of "customization" in order to work with your website. Well written scripts will set out these values in an easily recognized place or will provide a means to easily modify them to suit your site. One convention that is widely used is to group all such variables at the top of the script file, then insert a "fence" or other notation that indicates where the program itself begins.

Now, with all that complicated stuff out of the way, the act of "Installation" is actually a very simple process.

  1. Modify the script to match your web server and web site configuration and your particular needs.
  2. Copy the script and all supporting files to your web server (into the cgi-bin or other appropriate directory).
  3. Mark the script as executable by setting the proper permissions or security settings.

Even though it sounds simple, and it generally is quite simple, sometimes the installation of a script can be problematic. If the script is very complex, or if it requires a large amount of customization, you might feel better about having a professional install it for you. In those cases you can find an independent programmer or you may be able to make arrangements with the script's author for installation.

GreyFace Productions will happily work with you to install any of our scripts. We can also install most other scripts, whether we wrote them or not. Our rates are very reasonable and our results are guaranteed. Most scripts can be installed and tested within 1-2 business days, however you should contact us directly to receive an accurate quote and timetable first. Please use THIS FORM to submit all installation requests.

I need help installing my Perl/CGI script