TSC Support Center

Questions / FAQ

Home : Customer Support Center : FAQ Index

How do I allow execution of .cgi scripts outside of cgi-bin?

Make a .htaccess file and inside it place:

Options ExecCGI
AddHandler cgi-script .cgi

Next upload the .cgi file and it will display properly, example test.cgi:

exec tclsh "$0" ${1+"$@"}
puts "Content-Type: text/html"
puts ""
puts "Hello World!"

This example outputs "Hello World!" using Tcl.

  The Server Center. All rights reserved. Privacy Policy 

Script provided by SmartCGIs.com