spacer free cgi script archive logo
Home Downloads Show Detail Live Chat Site Map See in Action Save Cart Search Email Help Print spacer
spacer > Home > Free Cgi Scripts  > About Us  > Contact  > FAQ

CGI Scripts that are Very Secure, Reliable & Free! 

spacer spacer spacer spacer spacer spacer spacer spacer spacer
column heading image
orange bullet

Premium Scripts

orange bullet


-Server setup tips
-Web design guide
-RSS & Blog guide
-Useful Tools
-Tips and Tricks
-Message Board
-Spam Board
-Techie Board
-Make Money
-Free Web Space
-Free Content
-Start a Website
-Distributor program
-Link partners
orange bullet


-Our guide to CGI & Perl
-Visual Basic
-Programming Forums

FastCGI and Perl

So FastCGI is the best version of CGI you can use, that's all well and good, but how do you use it with the best scripting language in the world, Perl!

FastCGI with Perl on Apache

comming soon.

FastCGI with Perl on IIS 5.1, 6

First follow the steps to install and configure Perl with IIS. Now that Microsoft has launched their own FastCGI module, things should be easy... and they are... kind of... well they are now thanks to Lyle Hopkins (author of this site) who has released the Perl module FCGI::IIS. This allows you to use FastCGI with Perl in the same manor it works with PHP. Here are the steps to download the module and configure it with your server.

  1. Open a command prompt Start->Command Prompt.
  2. Type "ppm install FCGI". Wait for it to finish installing. Then:-
  3. Type "ppm install".
  4. Closed the command prompt.
  5. Open 'Internet Information Services Manager'.
  6. Expand your servers name.
  7. Right click on "Websites" then select "Properties".
  8. Click the "Home Directory".
  9. Click the "Configuration" button.
  10. Under the "Mappings" tab click the "Add..." button.
  11. In the Executable section add "C:\Windows\system32\inetsrv\fcgiext.dll" (maybe "C:\Winnt\system32\inetsrv\fcgiext.dll", depends on your setup).
  12. In the Extention section add ".fcgi".
  13. Click "Ok", click "Ok", and yet again click "Ok".
  14. Now open a text editor such as notepad (Start->Accessories->Note Pad).
  15. Now open "C:\Windows\system32\inetsrv\fcgiext.ini" (maybe "C:\Winnt\system32\inetsrv\fcgiext.ini", depends on your setup).
  16. The bottom of this file contains:-
  17. Under [Types] you already have some configuration. Do not delete what you have already, you need to add bits to get Perl working. What we have is this:-


  18. Update your fcgiext.ini file as needed.
  19. Go back to Internet Information Services manager.
  20. Stop and start your website.
  21. Select "Application Pools", stop and start the DefaultAppPool
  22. That should be it, upload a perl script to wwwroot, rename it's extension to .fcgi and try it. Here is an example test fcgi script (save the script as hello.fcgi without the .txt).
  23. No matter what script you try, your output should be something like:-
    Script: c:\inetpub\wwwroot\hello.fcgi
  24. This is because the FCGI::IIS module is in test mode. Each time you click refresh the number should go up by one. So if you click refresh 9 more times, it should output:-
    Script: c:\inetpub\wwwroot\hello.fcgi
  25. This shows that the FastCGI perl module is working properly. To get it to work for any script, you need to go back and edit fcgiext.ini, and change the line:-
  26. Again you'll need to stop and start the DefaultAppPool.
  27. Now you should find the output is what you expected, if you are running our test script it's:-
    Hello from IIS FastCGI
  28. Now there is one more feature of the FCGI::IIS module your probably want to use at some point.
  29. What is you try your script and it doesn't work? Use the "eval" mode. Change the arguments line to:-
  30. The eval mode allow you to trap errors, and should let you know why your script isn't working.

FastCGI with Perl on IIS 7

Comming soon

orange bullet

Free Scripts

-CGI & Perl Scripts
-AffiliateClick Free
-RSS creator
-Link Trade
-Cosmic Mailer Lite
orange bullet

More Free Scripts

-Hit Counter
-Top Site
-Shot in the Dark
-Random Pics & Text
-Banner Rotator
-Password Protection
Want the latest news?
Then why not sign up for our newsletter? Be notified immediately about new products, upgrades, sales, discounts, bug fixes, site updates and more. 
free cgi scripts | perl scripts | affiliate software | site map
Copyright 2003-2004 All rights reserved.