You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 2000/01/30 04:37:30 UTC

install script and CGIs

The current makefile doesn't handle installing the default CGIs properly.

First, it installs them as non-executable.  If we want to install
them in such a way that they are disabled by default (and I think
we should have them disabled), then this really isn't the best way.

Second, it says it is installing them from conf instead of cgi-bin.

Third, it says script[*] when it really isn't.

Suggestions on the best way to have them not installed so they can be run
by default?  Confusing users by setting the permissions to non-executible
isn't a good idea, especially since it isn't cross-platform.

Index: Makefile.tmpl
===================================================================
RCS file: /export/home/cvs/apache-1.3/Makefile.tmpl,v
retrieving revision 1.95
diff -u -r1.95 Makefile.tmpl
--- Makefile.tmpl	2000/01/11 19:47:41	1.95
+++ Makefile.tmpl	2000/01/30 03:31:42
@@ -468,7 +468,7 @@
 			cat $(TOP)/cgi-bin/$${script} |\
 			sed -e 's;^#!/.*perl;#!$(PERL);' \
 			> $(TOP)/$(SRC)/.apaci.install.tmp; \
-			echo "$(INSTALL_DATA) $(TOP)/conf/$${script}[*] $(root)$(cgidir)/$${script}"; \
+			echo "$(INSTALL_SCRIPT) $(TOP)/cgi-bin/$${script} $(root)$(cgidir)/$${script}"; \
 			$(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(cgidir)/$${script}; \
 		done; \
 	fi


Re: install script and CGIs

Posted by Manoj Kasichainula <ma...@io.com>.
On Sat, Jan 29, 2000 at 08:53:16PM -0700, Marc Slemko wrote:
> On Sat, 29 Jan 2000, Manoj Kasichainula wrote:
> > The default config file already has ExecCGI turned off in the cgi-bin
> > directory, so I guess +x'ing the CGI programs should have no effect. I
> > think that's confusing, but it's already there.
> 
> No, it is enabled with a ScriptAlias directive.

Blah, silly me. I could've sworn that an ExecCGI was required at some
point along with the ScriptAlias. *shrug*

Well, if everything in the cgi-bin directory that's executable gets
run, then I doubt there's a way to disable them that won't be more
confusing than chmod -x. Other than that, we could just not put any
CGI programs in the cgi-bin directory at all.


Re: install script and CGIs

Posted by Marc Slemko <ma...@znep.com>.
On Sat, 29 Jan 2000, Manoj Kasichainula wrote:

> On Sat, Jan 29, 2000 at 08:37:30PM -0700, Marc Slemko wrote:
> > Suggestions on the best way to have them not installed so they can be run
> > by default?  Confusing users by setting the permissions to non-executible
> > isn't a good idea, especially since it isn't cross-platform.
> 
> The default config file already has ExecCGI turned off in the cgi-bin
> directory, so I guess +x'ing the CGI programs should have no effect. I
> think that's confusing, but it's already there.

No, it is enabled with a ScriptAlias directive.



Re: install script and CGIs

Posted by Manoj Kasichainula <ma...@io.com>.
On Sat, Jan 29, 2000 at 08:37:30PM -0700, Marc Slemko wrote:
> Suggestions on the best way to have them not installed so they can be run
> by default?  Confusing users by setting the permissions to non-executible
> isn't a good idea, especially since it isn't cross-platform.

The default config file already has ExecCGI turned off in the cgi-bin
directory, so I guess +x'ing the CGI programs should have no effect. I
think that's confusing, but it's already there.