Web Hosting Talk







View Full Version : Stupid RaQ's


syanet
02-16-2001, 02:22 PM
I'm about to break down and pay for a real server because RaQ's suck. Plain and simple, they just suck.

I'm trying to use a CGI script and it says it dosen't exist, although it really does. I run it throuh telnet fine, but it dosen't work in a browser. Any idea's?

spcover
02-16-2001, 03:15 PM
What's the nature of your script?

I remember long time ago trying to get WebLog, a perl log analyzer from http://www.awsd.com/scripts, to run for me from the browser. I was kicking my darn computer and writing frustrated posts to the forum there.

Well, turns out the script can ONLY be used at the telnet prompt.

After re-reading the documentation for the tenth time, I found this - "(And please note that it should
be executed from the telnet command prompt rather than your browser; WebLog is *not* a CGI script, and most likely won't run correctly if you try to access it from your browser.)"

So depending on the cgi-script you're trying to run, it may not be executable from a browser.

Also make sure you have the script's permissions set correctly. It has to be set properly to be executable.

Sean

syanet
02-16-2001, 03:44 PM
Just a trouble ticket system from

http://www.softopia.com/www.html

I've installed it fine on other servers, but it won't work here. Permission and paths are correct, I have many other CGI scripts running on this server that work fine, although there are some others (ahem *Cliffs Form Mailer* ahem), which also work on other servers, that won't work.

allan
02-16-2001, 04:06 PM
Is it really giving you a "File Not Found" error? Or, something else. I have yet to find a script that I could not make work on the RaQ so I am surprised you are having trouble.

If you can point me to the url where it is supposed to be, I'd be happy to take a look (feel free to reply via e-mail if you don't want it to be public).

syanet
02-16-2001, 04:24 PM
Not a file not found, but a missing directory error.

http://www.rhasx.com/wi/admin/conf14.pl

Despite what it says, the directory is there and it, along with the script, is CHMOD'ed correctly. The path to Perl has been checked and rechecked. I turn off CGI Wrap and just get an internal server error. Funny thing is, if you go to http://www.rhasx.com you can just navigate yourself to the 'missing' directory.

[Edited by syanet on 02-16-2001 at 03:29 PM]

Keeg
02-16-2001, 04:29 PM
you cant put admin in the path to a script as it uses port 81 for your admin info.

Steve

syanet
02-16-2001, 04:32 PM
Maybe that's the problem then. I just edited the URL, it might have been while you were replying. But 'directory/admin', hould be okay, right?

allan
02-16-2001, 04:36 PM
Actually, no I don't think you can create an admin directory at all in the RaQ (I learned that one the hard way :)).

syanet
02-16-2001, 04:39 PM
I changed it, but the same error remains:

http://www.rhasx.com/wi/test/conf14.pl

Even when you try to run another part of the script, it says it's not a valid directry:

http://www.rhasx.com/wi/sup14.pl

[Edited by syanet on 02-16-2001 at 03:43 PM]

-Edward-
02-16-2001, 04:44 PM
syanet do you use yahoo? if so contact me on djsy2000 .. ill try help ya get it working.

syanet
02-16-2001, 05:00 PM
Nevermind, I'm a moron. It's fixed now.

allan
02-16-2001, 05:00 PM
Syanet,

Two suggestions:

1. The first is you should probably make sure your directories are not browsable.

2. I'm sure you already did this, but make sure:
* If you FTP'd files up you did it in ASCII format.
* You set the path to perl to /usr/bin/perl

If you would like me to take a look at it, I would be happy to, just drop me an e-mail.

allan
02-16-2001, 05:01 PM
Oh cool...what did you do :)?

syanet
02-16-2001, 05:43 PM
Path to Perl was wrong :(. There was a '/' after 'Perl'. I had it working else where and recalled they use /usr/bin/perl as well, so I didn't even think about the / at the end.

teck
02-16-2001, 07:21 PM
hahahahaha, most elementary mistake. i thought you checked and rechecked perl??? :)

Mbarb
02-16-2001, 08:20 PM
but you really need to password protect that directory or else someone might read this thread and change you message to read Welcome to the help request form. go away!! or something much worse..

syanet
02-16-2001, 08:43 PM
Originally posted by teck
i thought you checked and rechecked perl??? :)

So did I :). However I do have a RaQ specific problem with my form mailer, which works on other servers. Me and Technics worked on it for a half hour with no luck. Anout to begin my search for a differnet one.

syanet
02-16-2001, 09:30 PM
Seems I jumped the gun on the support script. Although I can modify the admin settings, it won't actually submit anything :).

http://www.syanet.com/cgi-bin/wi/sup14.pl

teck
02-16-2001, 10:19 PM
whats the difference between this and websupport from sigh?

teck
02-16-2001, 10:22 PM
doh, i thought it was free. i guess not :(

syanet
02-16-2001, 11:17 PM
I think there has to be something wrong with Sendmail on my RaQ. I base this on 2 things.

- The support script will execute if you don't fill in any fields. When it goes to send mail, it fails.
- On the form mail script, when the #sendmail line is commented out, it redirects me to the thank you field fine.

However, I installed an Ikonboard and it sends Personal Messages just fine. I still think the problem is in Sendmail though, but have no way to test it.

And yes, the path to sendmail is correct :).