apache, CGI & forms...

apache, CGI & forms...

Post by Enzo Tantimonac » Fri, 24 May 1996 04:00:00



I have a little problem with my Apache server.
I'm trying to use some forms by POST method.
I have my cgi script (shell) in the DocumentRoot directory and in my
html file I have the following line:
<FORM METHOD="POST" ACTION="http://hostname/checklist/chklst.cgi">
when I submit the form I receive the following message from Apache:
"Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.


occurred, and
anything you might have done that may have caused the error."

Could you give me any suggestion to resolve the problem?

tia

Enzo

---------------------------------------------------------------------------

 / / / / /         TORINO (ITALY)       | http://www.inrete.it/sat/h2h.html
============================================================================

 
 
 

apache, CGI & forms...

Post by Le » Sat, 25 May 1996 04:00:00


I would say that you need to check with your system admin concerning
where to place cgi script.  Usually, for security, it needs to be
placed in the cgi-bin directory when a post method is called for.

If you have a local cgi-bin and it doesn't work, then the server needs
to be configured to work with it by using ScriptAlias in your
access.conf file.


>I have a little problem with my Apache server.
>I'm trying to use some forms by POST method.
>I have my cgi script (shell) in the DocumentRoot directory and in my
>html file I have the following line:
><FORM METHOD="POST" ACTION="http://hostname/checklist/chklst.cgi">
>when I submit the form I receive the following message from Apache:
>"Server Error
>The server encountered an internal error or misconfiguration and was unable to complete your request.

>occurred, and
>anything you might have done that may have caused the error."
>Could you give me any suggestion to resolve the problem?
>tia
>Enzo
>---------------------------------------------------------------------------

> / / / / /         TORINO (ITALY)       | http://www.inrete.it/sat/h2h.html
>============================================================================

-Lee
**************************************************************
*                       Design West Group                    *
*       Consulting for web pages, servers and systems        *
*                    Internet and intranets                  *
**************************************************************

 
 
 

apache, CGI & forms...

Post by Mark Hunnibel » Sat, 25 May 1996 04:00:00



> I have a little problem with my Apache server.
> I'm trying to use some forms by POST method.

One person suggested that your problem may be the location of your script. I'd test
that theory by making a very simple CGI script that creates a page that says (in a
proper way) "hello".  If you can run that OK (make sure the script is both world
readable and executable), then the problem may be your access.conf file on the
system.

I ran into a similar problem, but it was in a directory that I have protected by an
.htaccess file with individual usernames and passwords to get to the script. In the
end, I found I had to edit my .htaccess file (adding POST) to make it like:

<Limit GET POST>
        require group groupname
</Limit>

Hope that helps

Mark Hunnibell

 
 
 

apache, CGI & forms...

Post by Enzo Tantimonac » Tue, 28 May 1996 04:00:00



> I would say that you need to check with your system admin concerning
> where to place cgi script.  Usually, for security, it needs to be
> placed in the cgi-bin directory when a post method is called for.

> If you have a local cgi-bin and it doesn't work, then the server needs
> to be configured to work with it by using ScriptAlias in your
> access.conf file.

Now, after i commented the line:
#AddType application/x-httpd-cgi .cgi
the error message has changed...
What I get now is:
Method not Implemented
POST to /checklist/chklst.cgi not supported (/checklist is the path of my
cgi script).
What must I change in my .conf files?

Tia

Enzo

--
----------------------------------------------------------------------------

 / / / / /         TORINO (ITALY)       | http://www.inrete.it/sat/h2h.html
============================================================================

 
 
 

apache, CGI & forms...

Post by Rick Gr » Thu, 30 May 1996 04:00:00



Quote:>Now, after i commented the line:
>#AddType application/x-httpd-cgi .cgi
>the error message has changed...
>What I get now is:
>Method not Implemented
>POST to /checklist/chklst.cgi not supported (/checklist is the path of
my
>cgi script).
>What must I change in my .conf files?

>Tia

>Enzo

>--

I, too, am getting the same error message using a similar setup. I
thought POST was an include for cgi scripts? I have AddType application/
cgi turned on. Should it include .form? I will be looking forward to the
next response because neither I nor my clients can run a form...
Also if any one has run across this problem, my imagemaps seem to be
failing. I use mapedit to create them and have AddType application/ .map
in my access.conf on. When placed in the cgi-bin directory (the path to
my maps) and executed, I get a "malformed header in script" error. Which
script is it talking about? The mod_imap.c script maybe? I hope not...

Any suggestions will be helpful. Thanks in advance....

Rick
Network Pros, Inc
www.nwpros.com

 
 
 

apache, CGI & forms...

Post by to.. » Mon, 03 Jun 1996 04:00:00



>I have my cgi script (shell) in the DocumentRoot directory and in my

Do you mean that the file chklst.cgi is at /chklst.cgi?
Quote:>html file I have the following line:
><FORM METHOD="POST" ACTION="http://hostname/checklist/chklst.cgi">

If that is the case your call to the script is pointing to the
directory checklist in the webpage directory.

you might try ACTION="http://www.hostname.com/chklst.cgi" (don't think
that will work.

Quote:>when I submit the form I receive the following message from Apache:
>"Server Error
>The server encountered an internal error or misconfiguration and was unable to complete your request.

If you are on a unix box try creating a cgi-bin directory (ex.
/www/cgi-bin) and put your file there.

then: ACTION="http://www.hostname/cgi-bin/chklst.cgi"
Your system may not allow for cgi-scripts in other directories.


>occurred, and
>anything you might have done that may have caused the error."
>Could you give me any suggestion to resolve the problem?
>tia
>Enzo
>---------------------------------------------------------------------------

> / / / / /         TORINO (ITALY)       | http://www.inrete.it/sat/h2h.html
>============================================================================