Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make a directory exectable

Status
Not open for further replies.

thendal

Programmer
Aug 23, 2000
284
How to make a directory exectable

default we will put html files in one directory and perl scripts in the cgi-bin directory how i can make every thing to work in one directory ....
Thanks for any help

-Thendal
 
Here is and example directory container that will make the directory executable:

ScriptAlias /cgi-bin/ "/var/
<Directory &quot;/var/ AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

If you want to make scripts to be executable in other directories, add or uncomment this line:

AddHandler cgi-script .cgi .pl
 
Thanks rhythmAce....i am apache server on windows 2000 m/c
and i uncommented the line AddHandler cgi-script .cgi .pl
and try to execute a perl file in htdocs directory ..but it gives a 403 error ....forbidden error...

what else i need to do ..thank u very much for the help ....
 
If you were running linux, I would be able to tell you how to check or set the permissions for that directory but I'm in the dark when it comes to windows. As they tell me back home, &quot;boy youz ignurt&quot; :eek:)
 
Hi,

Generally you would but the executables in the dierctory pointed to by the ScriptAlias directive :

ScriptAlias /cgi-bin/ &quot;c:/apache/cgi-bin/&quot;

If you want to run scripts from another directory you'd also need the ExecCGI specified for that directory, i.e. like this :

<Directory &quot;c:/usr/ Options +ExecCGI
</Directory>

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top