HTTPd: "invalid CGI ref getwd: can't open"

HTTPd: "invalid CGI ref getwd: can't open"

Post by SMS/Christian Fowl » Sat, 17 Feb 1996 04:00:00



I am running NCSA HTTPd 1.5

I am trying to set up a user account so I can use exec CGI. Whenever I use
<!--#exec cgi="ssi_rand_image.cgi" --> where the cgi is in the WWW dir,
same as the shtml file, I get:

[Tue Feb 13 13:08:34 1996] invalid CGI ref getwd: can't open
../ssi_rand_image.cgi in /usr/users/sms/WWW/test.shtml

in the server's error log. I have no idea why it is appending the ../ to
the cgi. I have created cgi-bin dir in the user WWW dir, put cgi's there
and still the same results.

THe cgi's work fine when called up directly with netscape. If inspired,

http://magenta.com/~sms/test.shtml

has the goods...

--
  =-=
=-=+=-=  Sound Machine Sound - The Music Makers Net Directory
=-=%=-=     Christian Fowler - sHAPE FACTOR MOMENt

  =-=

 
 
 

1. HTTPd Exec CGI Error "invalid CGI ref getwd"

My server keeps giving me the following error when I try to include and
exec cgi in the html source:. My sysadmin adn I have been trying to figure
it out. I hope it is something obvious. I am trying to exec CGI in my
personal dir ( ~me/cgi-bin )

In the server's error log, I get the following line when I try to load
http://magenta.com/~sms/test.shtml  I have no idea why the server is
appending the ../ to the script name.

[Tue Feb 13 13:08:34 1996] invalid CGI ref getwd: can't open
../ssi_rand_image.cgi in /usr/users/sms/WWW/test.shtml

Includes are enabled, CGI's enabled, and both working. Exec CGI's just
wont work.

--
  =-=
=-=+=-=  Sound Machine Sound - The Music Makers Net Directory
=-=%=-=     Christian Fowler - sHAPE FACTOR MOMENt

  =-=

2. StarOffice 4.0 Install

3. "invalid CGI ref foo.cgi in bar.shtml"

4. Reasons to use GNU

5. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

6. Using LINUX for business?

7. GETSERVBYNAME()????????????????????"""""""""""""

8. Compaq 150 Monitor (UNfindable anywhere) and 800X600 res

9. "Can't open file" ( flat file ) and "flock()unimplemented ..."

10. Who's, Who in the "Free Software" / "Open Source" community

11. emacs: `getwd' failed: getwd: can't open ...

12. Guide to "X", "Open" and "Objects"

13. Local forwarding with "iptables" gives "invalid arguments"