Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Configuring Apache for cgi scripts |
|
Author |
|
raymondtan
Joined: 15 Aug 2006 Posts: 1
|
Posted: Tue 15 Aug '06 8:57 Post subject: Configuring Apache for cgi scripts |
|
|
I am developing a forum for my project in university. But currently facing technical problems. I hv installed MySQL in my system runing Windows XP Pro and ActivePerl in it too. Both configured and PATH variable is checked.
But the problem appears when I am trying to configure my Apache HTTP 2.2 server. It uses the typical root "...Apache2.2/.../htdocs". I've checked the ScriptAlias directive for cgi-bin, it's correct with the manual i downloaded together. I've enabled the AddHandler directive for .cgi and .pl too. I added ExecCGI in the Options directive under my root directive. But i cannot request any cgi scripts. I receive "Forbidden: 403.....I might not hv permission to ....."
What can i do to configure it? And file permission isnt needed in Windows right? Thx |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 15 Aug '06 9:39 Post subject: |
|
|
You have to add permission to that directority if it is outside the of the htdocs
e.g.
Code: |
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"
<Directory "C:/Apache2/cgi-bin/">
Options Indexes MultiViews ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
|
|
|
Back to top |
|
|
|
|
|
|