httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Elmer <Stephen.El...@ccotrust.nhs.uk>
Subject RE: [users@httpd] cgi scripts not running
Date Fri, 29 Jul 2005 23:46:51 GMT
Yes, but it was worth a try  :-(

 

 

Stephen

 

   _____  

From: Mark Feather [mailto:markfeather@customnet.co.uk] 
Sent: 30 July 2005 00:44
To: users@httpd.apache.org
Subject: Re: [users@httpd] cgi scripts not running

 

Another silly thought.......when you make an alteration in the config file
do you restart Apache?

 

Hello Mark.

 

Tried replacing 

 

 <Directory “/var/www/cgi-bin/”>

with

<Directory “/var/www/cgi-bin”>

 

 

Looking thro the Apache docs it should be 

<Directory “/var/www/cgi-bin”>

 

 And 

 

The +ExecCGI as far as I can tell is not needed as there is only one option
within <Directory “/var/www/cgi-bin”> so it’s the most specific one. But I
did try it anyway!

 

 

 

I’ve been trying various things ;

 

I can HYPERLINK
"http://localhost/cgi-bin/mycgi.cgi"http://localhost/cgi-bin/mycgi.cgi and
see the script run correctly

 

However, viewing the html file that invokes the script named by ACTION gives
the error message The file /cgi-bin/mycgi.cgi cannot be found

 

The complete line is <FORM METHOD=POST ACTION=”cgi-bin/mycgi.cgi”>

 

I’ve tried putting a / infront of the cgi-bin/mycgi.cgi        by the way 

 

 

Document_root=/var/www/html

 

Cgi-bin =/var/www/cgi-bin

 

Shebang line is ok, the script works from command line

 

 

 

 

 Thanks for you help, I’ll happily try any other suggestions

 

 

Stephen

 

 

 

 

 

 

-----Original Message-----
From: Mark Feather [mailto:markfeather@customnet.co.uk] 
Sent: 29 July 2005 23:20
To: users@httpd.apache.org
Subject: Re: [users@httpd] cgi scripts not running

 

Allso is

 

<Directory “/var/www/cgi-bin/”>

 

Options ExecCGI

 

  the same as

 

<Directory “/var/www/cgi-bin”>

 

Options +ExecCGI

 

 

 

Try replacing

 

<Directory “/var/www/cgi-bin/”>

with

<Directory “/var/www/cgi-bin”>

 

Thanks Wesley for your reply.

 

Unfortunately that not it, the script has the extension .cgi

 

 

I find it a bit odd that unless I put the entire path in my web page, the

script cannot be found.

 

 i.e. I have to put     ACTION=”/var/www/cgi-bin/mycgi.cgi” instead of

ACTION=”/mycgi.cgi” or ACTION=”/cgi-bin//mycgi.cgi”

 

 

what do you think?

 

 

 

Stephen

 

 

 

 

From: Craft, Wesley [mailto:Wesley.Craft@titan.com]

Sent: 29 July 2005 20:40

To: users@httpd.apache.org

Subject: RE: [users@httpd] cgi scripts not running

 

 

This might be a shot in the dark, but in your first post you mention that

you are running Bash scripts. Did you name those scripts with a .sh

extension? If yes, you’ll need to include .sh in your ‘AddHandler’ line

after the .cgi.

 

Wesley

 

-----Original Message-----

From: Stephen Elmer [mailto:Stephen.Elmer@ccotrust.nhs.uk]

Sent: Friday, July 29, 2005 3:28 PM

To: 'users@httpd.apache.org'

Subject: [users@httpd] cgi scripts not running

 

I cannot get my cgi scripts to run; the script is displayed in the web

browser instead.

I presume the problem is that the cgi directory is not recognised as a

directory containing scripts.

 

I have checked  httpd.conf for:

 

ScriptAlias /cgi-bin/  “/var/www/cgi-bin/”

 

I do wonder if this line is being seen, unless I put the entire path in my

script the file cannot be found.

 

 

I have also tried adding  AddHandler cgi-script  .cgi

 

and checked that an Option directive is included:

 

<Directory “/var/www/cgi-bin/”>

Options ExecCGI

 

AllowOverride None

Allow from all

Order allow,deny

 

</Directory>

 

 

just to see if that would work, but it does not L

 

 

I’ve checked that the scripts are set as executable and are executable by

others (i.e. everyone)

 

 

I’ve run apachectl configtest gives Syntax ok

 

 

What I’m I doing wrong, any suggestion would be most greatly appreciated!

 

 

I am using Fedora Core 3, Apache 2.0

 

 

Many thanks

 

 

Stephen

 

 

 

--

No virus found in this outgoing message.

Checked by AVG Anti-Virus.

Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005

 

 

 

--

No virus found in this incoming message.

Checked by AVG Anti-Virus.

Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005

 

 

 

--

No virus found in this outgoing message.

Checked by AVG Anti-Virus.

Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005

 

 

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

The official User-To-User support forum of the Apache HTTP Server Project.

See <URL:http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org

   "   from the digest: users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: users-help@httpd.apache.org

 

 

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

The official User-To-User support forum of the Apache HTTP Server Project.

See <URL:http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org

   "   from the digest: users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: users-help@httpd.apache.org

 

-- 

No virus found in this incoming message.

Checked by AVG Anti-Virus.

Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005

 

 

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.9.7/60 - Release Date: 28/07/2005
 

Mime
View raw message