scohttp80 will not execute scripts in cgi-bin -Reply

scohttp80 will not execute scripts in cgi-bin -Reply

Post by Rich Wilber » Sat, 18 Jan 1997 04:00:00



Snip from ll
where test contains a "ls -l" command and has permissions set to 777.
I get the following error:
        500 SERVER ERROR
        The server encountered an internal error and was unable to
        complete your request.
I can use Lynx to access HTML files just fine.

Quote:>>Make sure your cgi-bin is readable and executable by all.

 
 
 

scohttp80 will not execute scripts in cgi-bin -Reply

Post by Lucky Leavel » Sat, 18 Jan 1997 04:00:00



> Snip from ll
> where test contains a "ls -l" command and has permissions set to 777.
> I get the following error:
>    500 SERVER ERROR
>    The server encountered an internal error and was unable to
>    complete your request.
> I can use Lynx to access HTML files just fine.
> >>Make sure your cgi-bin is readable and executable by all.

I have no problem with HTML files; it is only with CGI scripts.
I have also set permissions on both the scripts and cgi-bin directory to
777.

I did follow Bela's advise and added a "#!/bin/sh" line at the top of my
test script and it now works BUT I can't get any other script to work.

I also edited lynx.cfg and changed the DEFAULT_EDITOR to /usr/bin/vi but
Lynx still hangs up trying to use scoedit.

When I invoke lynx with just my own system name:

        lynx http://ris.ris.com

I get a FILE NOT FOUND ERROR with Apache 1.0.5 as the web server. With
scohttp80, it finds the DocumentRoot directory and displays index.html.

(ASide: I do kill all apache processes before invoking scohttp80 and
vice-versa, i.e., I only have one web server listening on port 80 at a
time.)

There must be some simple solution for all this ...

Thank you,
Lucky

Lucky Leavell                      Phone: (800) 481-2393  or  (812) 945-6555
UniXpress - Your Source for SCO      FAX: (812) 949-9233

New Albany, IN 47150-2013                 71534,2674 (CompuServe)
WWW Home Page:  http://www.UniXpress.com   ftp://www.iglou.com/members/ris
Ask about special Lone-Tar/SarCheck Bundle simplifying Backups and Tuning

 
 
 

1. scohttp80 will not execute scripts in cgi-bin

I followed the instructions in the TA script entitled

        How to use scohttp as a World Wide Web server

to configure scohttp80.  I tested it using Lynx 2.4 (from Skunkware 5 CD)
to attempt execution of a simple script file called "test":

        lynx http://ris.ris.com/cgi-bin/test

where test contains a "ls -l" command and has permissions set to 777.

I get the following error:

        500 SERVER ERROR

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

I can use Lynx to access HTML files just fine.

The /var/scohttp80/logs startup_errors log contains the following lines:

        httpd: exec of /var/scohttp80/cgi-bin/test failed, errno is 8.

The corresponding line in the access_log is

        ... "GET /cgi-bin/test HTTP/1.0" 500 0

Got any ideas as to what I missed and how to remedy the situation?

Thank you,
Lucky

Lucky Leavell                      Phone: (800) 481-2393  or  (812) 945-6555
UniXpress - Your Source for SCO      FAX: (812) 949-9233

New Albany, IN 47150-2013                 71534,2674 (CompuServe)
WWW Home Page:  http://www.UniXpress.com   ftp://www.iglou.com/members/ris
Ask about special Lone-Tar/SarCheck Bundle simplifying Backups and Tuning

2. Linux file mail and web servers for newbies

3. /cgi-bin/phf /cgi-bin/test-cgi /cgi-bin/handler

4. Unique install problem

5. executing /sbin/ifconfig from a /cgi-bin script

6. KNE2021LC and RedHat 6.1

7. Cannot execute cgi-bin scripts on Solaris

8. Spea Video 7 Mirage VLB S3-805 Clocks?

9. apache: cgi script not in cgi-bin

10. Apache: file redirected/aliased to cgi-bin does not execute

11. Execute cgi outside of cgi-bin

12. Cannot execute CGI programs in /cgi-bin with Apache

13. cgi-bin/view-source?cgi-bin/view-source