Root Directory of CGI Scripts

Asked By 50 points N/A Posted on -
qa-featured

Hi,

I would like to run CGI Scripts, can anyone tell me what is the root directory for CGI scripts on the server?

Thanks.

SHARE
Answered By 0 points N/A #109444

Root Directory of CGI Scripts

qa-featured

Hi Scott,

You can find it in the "cgi-bin" folder in the directory where Apache is installed. Actually, you can execute script from any folder on your file system. On my server, where I install the XAMPP web server, I can find it in C:xamppcgi-bin directory. There is a sample inside the directory named printenv.pl, you can try executing it using Perl that can be found in C:xamppperlbin. To allow scripts to run in the root directory you're going to change the "Directory" section.

For example:

<Directory /path/to/root>

Options +ExecCGI

</Directory>

You can find more information about cgi in this web site.

I hope it helps.

Login/Register to Answer

Related Questions