Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Prompted to Open or Save CGI Program -- configuration issue?

by neutron (Sexton)
on Mar 17, 2009 at 12:16 UTC ( [id://751165]=note: print w/replies, xml ) Need Help??


in reply to Prompted to Open or Save CGI Program -- configuration issue?

Vivek, thanks for the great trouble shooting pointers. As for the apache server settings, I'm still struggling. Here's what the original looks like:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi- +bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory>
I also tried a number of modifications:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi- +bin"> Options ExecCGI SetHandler cgi-script </Directory>
Another:
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi- +bin"> AllowOverride None Options MultiViews Indexes SymLinksIfOwnerMatch Includes ExecCGI </Directory>
I also did a few more iterations of these, but no to no avail. I should also note that I think the conf files for the different apache versions are quite a bit differnt. For example my file doesn't have the <virtualhost *> command. Any ideas, would be much appreciated.

Replies are listed 'Best First'.
Re^2: Prompted to Open or Save CGI Program -- configuration issue?
by olus (Curate) on Mar 17, 2009 at 15:55 UTC
    <Directory "PATH FOR YOUR CGI SCRIPTS"> Options ExecCGI SetHandler cgi-script </Directory>

    is instructing apache to treat the files found at that particular directory as Perl scripts. So, write there the location of the scripts, and make sure they are executable.

    my file doesn't have the <virtualhost *> command
    Maybe your httpd.conf doesn't have the virtualhost directive but, if you look at the dir where your httpd.conf file is, you will find a few directories like vhosts, extra, or other ..... Peeking into the files in there you'll probably find that directive. There are different ways to configure vhosts, I suggest you read some introductory material on Apache.

Re^2: Prompted to Open or Save CGI Program -- configuration issue?
by moritz (Cardinal) on Mar 17, 2009 at 12:55 UTC
    So are you CGI scripts in the /cgi-bin/ directory?
      Yes. Well at least in a subdirectory under cgi-bin. And they're both in same subdirectory.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://751165]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-24 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found