Apache 1.0.2 and cgi-scripts

Apache 1.0.2 and cgi-scripts

Post by Rob Hartil » Tue, 06 Feb 1996 04:00:00




> I am running Apache on a FreeBSD 2.0.5R machine.  I have a problems with
> cgi scripts.  They (sh and perl scripts) will execute if I use them with
> an <A HREF> tag

> <A HREF="http://my.server.com/file_name"> Click me </A>

> If you select that from a browser it executes the script.

> If I try to run the script from an HTML page
> with

> <!--#exec cgi="http://my.server.com/file_name"-->

> nothing happens.

If by "nothing" you mean that the HTML for the page contains
 <!--#exec cgi="http://my.server.com/file_name"-->  then you
need to look at the documentation (wherever it may be) for
Server Side Includes.

Looks like you're trying to use SSI without switching it on.

rob

 
 
 

Apache 1.0.2 and cgi-scripts

Post by David Brocku » Wed, 14 Feb 1996 04:00:00


I enabled server side includes for .shtml files.  When I try to use the
<!-- exec cgi="http://myserver.com/cgi-bin/test.cgi"--> in a .shtml
file, I get "[an error occured while processing this directive]".  I can
execute the same cgi script, by opening it as a location in my browser.  
Any suggestions?  Thanks in advance.

David

 
 
 

Apache 1.0.2 and cgi-scripts

Post by Michael Robinto » Fri, 16 Feb 1996 04:00:00



>I enabled server side includes for .shtml files.  When I try to use the
><!-- exec cgi="http://myserver.com/cgi-bin/test.cgi"--> in a .shtml
>file, I get "[an error occured while processing this directive]".  I can
>execute the same cgi script, by opening it as a location in my browser.  
>Any suggestions?  Thanks in advance.

>David

command syntax is in error, spaces, etc.. must be placed correctly.

1) file path is relative to the server root
2) syntax of command must be exact with respect to the
   spaces before and after the '--'
3) the '#' notifies the ssl processor that a command follows
   otherwise it's a comment ( hidden ) field

i.e. if directory 'cgi' were directly under the server root
     the command would read:

<!--#exec cgi="cgi/test.cgi" -->

permissions on the various files must be set to 640 or 644
and 755 ( i think for directories ) check
www.best.com FAQ on cgi's for details

the server must be logged in as a member of a group with appropriate
permissions to the files it needs to access and execute.

i.e. you may have to chown the files to a group the server belongs to
     depending on your specific site.

Good Luck

Michael

 
 
 

1. apache: give /home/mailman/cgi-bin permissions to run cgi-scripts.

Hey ho,
I try to install mailman on my server.
Now I have to give /home/mailman/cgi-bin permissions to run cgi-scripts.
How can I do this?
In the documentation of mailman s.th. like
Exec          /mailman/*      $prefix/cgi-bin/*
or
ScriptAlias   /mailman/       $prefix/cgi-bin/

is shown. Which one is right, or none?

Bye
 Jonas

--
Some people have told me they don't think a fat penguin really embodies the
grace of Linux, which just tells me they have never seen a angry penguin
charging at them in excess of 100mph.  They'd be a lot more careful about
what they say if they had.  -- Linus Torvalds, announcing Linux v2.0

2. How to make a root disk? and how to get a talk daemon work?

3. CGI-scripts and Apache

4. Thinkpad 365CD and XF86

5. Accessing files as root in CGI-Scripts under Apache

6. ETH-Sys with 'authenticating' mailer ?

7. How: Apache 1.3, WinNT/95 and CGI-Scripts

8. Drive has 1042 cylinders == problem

9. Apache executing cgi-scripts inside .htaccess protected directories

10. Apache error when executing cgi-scripts

11. Apache Web Server CGI-SCRIPTS problem

12. Apache: Cant't run my own CGI-Scripts

13. apache: CGI-scripts using PATH_TRANSLATED, .htaccess