How Do You Enable CGI Outside of the cgi-bin?

By default, this feature should be enabled in your hosting server. However, if you cannot run CGI scripts out of your cgi-bin folder, you can try enabling CGI through your .htaccess. You can use the following codes in your .htaccess file.

AddHandler cgi-script .cgi .pl
Options +ExecCGI

Was this article helpful?

Related Articles