Koozali.org: home of the SME Server

CGI problem with SME 5

JeeAre

CGI problem with SME 5
« on: November 12, 2001, 10:13:54 PM »
HI

i have install the SME 5 Software on a 233 MMX Pentuim with 192 MB ram,
It works promptly ;)
But i have upload an cgi file an set permission of this on 755.
I start the file with http://domain/cgi-bin/file.cgi and i became a Internal Server Error
I look @ the error Log from apache and i see :
[Sat Nov 10 17:05:34 2001] [error] [client 192.168.0.2] script not found or unable to stat: /home/e-smith/files/primary/cgi-bin/counter.cgi
[Sat Nov 10 17:06:21 2001] [error] (2)No such file or directory: exec of /home/e-smith/files/primary/cgi-bin/counter.cgi failed

Anyone a idea ?
thx JeeAre

sage

Re: CGI problem with SME 5
« Reply #1 on: November 13, 2001, 01:02:04 AM »
check your upper and lower case to see if that helps.  If its a simple script you can send it to me and I will try it on my server.

Sage

JeeAre

Re: CGI problem with SME 5
« Reply #2 on: November 13, 2001, 05:10:38 PM »
i have check this and the script does not running.
i have the same problem @ e-smith 4.1.2
i will work with cgi i can send this script but then this not work, work other scripts ?

script:

#!/usr/local/bin/perl

open (HTML, "<../ganzunten.htm");
while() { $HTML .= $_; }
close(HTML);

open (COUNTER, "$counter = ;
close (COUNTER);

$counter++;

open (COUNTER, ">counter.dat");

print COUNTER $counter;
close (COUNTER);


$HTML =~ s/\/$counter/g;

print "Content-type: text/html\n\n";
print $HTML;


the html file is in the document root and the dat file in the cgi-bin
dat file permission is read,write by others
then i take the script local of e-smith it count 1 high and get me the html file complete.
but in http it works not
anyone idea ?
thx JeeAre

Doug Ardans

Re: CGI problem with SME 5
« Reply #3 on: November 15, 2001, 07:13:28 AM »
1 simple fix that I noticed will make it work.


chmod 775 [the files you want.]

JeeAre

Re: CGI problem with SME 5
« Reply #4 on: November 15, 2001, 09:12:54 AM »
i have set this permission i get an 403 http error
you havnt the right permission i was set it back to 755 and now i get the right not an 500 internal error but a 403 ?!?
what have i do ? :P
thx JeeAre