[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] CGI scripts
- Subject: Re: [cobalt-users] CGI scripts
- From: "H.P. Stroebel" <hpstr@xxxxxxxxxxxxx>
- Date: Thu Jun 8 15:45:42 2000
The "file not found" message of the raq for a cgi script is like a
windoze general protection fault... could be nearly everything :-)
Some points to check (most common errors) :
- uploaded in ASCII mode ?
- file -> chmod 755 (executable)
- path to perl in the first line of the script correct ?
- script called correctly ? (capitals DO matter)
- GET or POST method ? (see readme file of the script)
- You should chmod /cgi-bin to 711 (to prevent directory listing)
For further debugging, type the following url :
http://ip-adress/cgiwrapDir/cgiwrapd/scriptname
Remember, using the ip-adress, you can call the script only if it
is on the MAIN SITE of your raq, not on a virtual host !!!
BTW : verify the version of Formmail that you are using. In an older
version, there`s a serious security hole (shell commands could be
executed !!), and in version 1.6 (the actual one, i think) there`s
another one (not that serious), allows to exploit user names, i think.
You might watch AlienForm (more functions like logging into a file,
customizable output, no (known) security holes).
"Mark G. Castillo" schrieb:
>
> What I am getting is:
>
> http://XXX.XXX.XXX.XX/cgi-bin/FormMail (in the address bar of the browser)
> and File Not Found - The requested URL could not be found on this server.
>
> This site is still experimental, so I refer to it with the IP address. If I
> have to place this file in the /home/cgi-bin or the /usr/cgi-bin, how do I
> do it, and how do I get permissions to do it?
>
> Mark.
>
> P.S. Great advice on the POP-before-Relay --- Thanks! :)
>
> M.
>
> -----Original Message-----
> From: cobalt-users-admin@xxxxxxxxxxxxxxx
> [mailto:cobalt-users-admin@xxxxxxxxxxxxxxx] On Behalf Of Dan
> Sent: Thursday, June 08, 2000 12:36 PM
> To: cobalt-users@xxxxxxxxxxxxxxx
> Subject: RE: [cobalt-users] CGI scripts
>
> > I am trying to get a FormMail script to run on a virtual site on my RaQ3i.
> > Obviously, I have CGI scripts turned on in the Site Management console. I
> > placed the FormMail.pl file in the cgi-bin directory of the website, but
> > when I try to run it, I get a URL Not Found error. Is this a permissions
> > problem? Does it have to be a FormMail.cgi file? Do I have the wrong
> > cgi-bin directory (there are several on the RaQ)? Ideas? Input?
> >
>
> Are you calling it as form action="/cgi-bin/FormMail.pl" or form
> action="cgi-bin/FormMail.pl"? Notice one is /cgi-bin, which should work.
> --
> Dan Kriwitsky
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
--
H. P. Ströbel
PGP Digital Fingerprint :
58E0 6ECB 620A A689 E206
BCA8 300F BC45 6EEC F7C3
Yes, I do. But not Yahoo.