How to run CGI script using any directory or /~username/cgi-bin?

If you would like to force Apache to allow CGI script then just follow below simple steps -

1. Create .haccess file under the directory from where you would like to run the script.

2. Add below code -
Options +ExecCGI
AddHandler cgi-script .cgi .pl

3. Save the file.

That's it!

Was this answer helpful?

 Print this Article

Also Read

How to forward the website to another URL?

Forwarding the website to another URL - 1. Using index.php file - 1. Create the page as...

How to update Apache to latest version?

Steps to update Apache to latest version -1. Please check the current version of Apache using...

How to upgrade mysql with custombuild 2.0?

Before doing any updates of MySQL be sure to create full backups of all databases.Steps to...

How to list all files under directory?

When there is no 'index.php' or 'index.html' file and you'd like to display all the files under...

How to upgrade the php from 5.4 to 5.6?

If you are running php 5.4 on the server and want it to be upgraded to 5.6 . Additionally, your...

Powered by WHMCompleteSolution