Why do I get an Internal Server Error from Apache 1.3.6 on Solaris 2.6?

Why do I get an Internal Server Error from Apache 1.3.6 on Solaris 2.6?

Post by Philip Le » Fri, 28 May 1999 04:00:00



Hello,

I have installed Apache 1.3.6 on Sparc Solaris 2.6.  When I tried to run
the test-cgi script in
cgi-bin directory, I got an internal server error. If change the first
line to #!/bin/sh, it runs fine.
Can the Apache server handle C shell script?


Thanks for all your help.

#!/bin/csh

# disable filename globbing
set -f

echo Content-type: text/plain
echo

echo CGI/1.0 test script report:
echo

echo argc is $#. argv is "$*".
echo

echo SERVER_SOFTWARE = $SERVER_SOFTWARE
echo SERVER_NAME = $SERVER_NAME
echo GATEWAY_INTERFACE = $GATEWAY_INTERFACE
echo SERVER_PROTOCOL = $SERVER_PROTOCOL
echo SERVER_PORT = $SERVER_PORT
echo REQUEST_METHOD = $REQUEST_METHOD
echo HTTP_ACCEPT = "$HTTP_ACCEPT"
echo PATH_INFO = "$PATH_INFO"
echo PATH_TRANSLATED = "$PATH_TRANSLATED"

 
 
 

Why do I get an Internal Server Error from Apache 1.3.6 on Solaris 2.6?

Post by Raghura » Sat, 29 May 1999 04:00:00


Hello Philip,

Apache server can indeed handle C shell script.  

It's just that in your particular script,

"set -f" is NOT a valid C shell command.  Hence, it gives
an error.  

(You can check this by running the same script as "standalone"
i.e. on the command line).

Hope this helps.
--
Best regards,
Raghuram

Disclaimer:  My opinions are my own


> Hello,

> I have installed Apache 1.3.6 on Sparc Solaris 2.6.  When I tried to run
> the test-cgi script in
> cgi-bin directory, I got an internal server error. If change the first
> line to #!/bin/sh, it runs fine.
> Can the Apache server handle C shell script?


> Thanks for all your help.

> #!/bin/csh

> # disable filename globbing
> set -f

(snip)

 
 
 

Why do I get an Internal Server Error from Apache 1.3.6 on Solaris 2.6?

Post by Raj Dut » Sun, 30 May 1999 04:00:00


Quote:> Can the Apache server handle C shell script?

Apache doesn't care (or know) what language CGI scripts are written in.
So long as they follow the RFC they are fine. (aren't open standards
great? :)

Quote:> #!/bin/csh

I'd suspect that's the problem.
Is /bin/csh really there?
Does the program run from the command line?

--
____________________________________________________________
Raj Dutt                        Voxel Dot Net, Inc


 
 
 

1. NFS woes: tcsh's internal ls fails on Solaris 2.6 client / IRIX 6.x server

We really don't know where to look first.  This happens only in this
particular combination.

The bug affects tcsh's completion mechanism, it's ls-F builtin and all
filename pattern expansions.

helbing.birne ~ > uname -a
SunOS birne 5.6 Generic sun4u sparc SUNW,Ultra-1

helbing.birne ~ > set | grep tcsh
shell   /usr/bin/tcsh
tcsh    6.07.02
version tcsh 6.07.02 (Astron) 1996-10-27 (sparc-sun-solaris) options 8b,nls,dl,rh

helbing.birne vol1/scratch/bla > df -k .
Filesystem            kbytes    used   avail capacity  Mounted on
loriot:/export/vol1  9056352 4262344 4794008    48%    /net/loriot/export/vol1

helbing.birne vol1/scratch/bla > ls -l
total 0
-rw-r--r--   1 helbing  finstud        0 Feb 27 14:15 file
-rw-r--r--   1 helbing  finstud        0 Feb 27 14:15 file.1
-rw-r--r--   1 helbing  finstud        0 Feb 27 14:15 file.2

helbing.birne vol1/scratch/bla > ls-F

helbing.birne vol1/scratch/bla > ls *
ls: No match.

helbing.loriot ~ > uname -a
IRIX64 loriot 6.4 02121744 IP27

helbing.loriot vol1/scratch/bla > df -k .
Filesystem             Type  kbytes     use     avail  %use Mounted on
/dev/xlv/home           xfs  9056352  4262064  4794288  48  /export/vol1

What do I have to do to fix this?

Ralf
--
"Ever get pieces of flesh caught in your teeth?  I *hate* that!"

Ralf Helbing,    University of Magdeburg,     Department of Computer Science
39106 Magdeburg, UniPlatz 2, G 223                  Phone: +49 0391 67-12189

2. WU-FTP and identd

3. Solaris 2.6: libc internal error

4. Red Hat 5.2 <-> Win98 Peer-to-Peer

5. Why is Netscape faster than apache 1.3.19 on Solaris 2.6?

6. Return Address in Mail

7. apache compile error on Solaris 2.6

8. DVD DMA problems

9. FS: SOLARIS 7 SERVER, SOLARIS EASY ACCESS 2.0, SOLARIS 2.6 KIT

10. relocation error with Apache on Solaris 2.6?

11. Apache 1.2.5 and Solaris 2.6 "make" error

12. stopping apache 1.3.11 on solaris 2.6 reboots server

13. Apache 1.3.4 server's children dying under solaris 2.6