View Full Version : Beginner CGI - Help!
teach1st
03-20-1999, 07:38 PM
I posted this elsewhere::
I just transferred my domain to FutureQuest and my message boards aren't working well. My users and I can post new messages, but no replies.
Here's are the relevant variables I put into the CGI script, where my domain is pb5th.com, the discussion board is in the www/SFA_Discussion/ directory, the messages are in www/SFA_discussion/wmessages/ directory, and the cgi script is wwwboard.cgi.
#!/usr/local/bin/perl
$basedir = "/big/dom/xpb5th/www/SFA_Discussion";
$baseurl = "http://pb5th.com/SFA_Discussion";
$cgi_url = "/big/dom/xpb5th/cgi-bin/wwwboard.cgi";
$mesgdir = "wmessages";
$datafile = "wdata.txt";
$mesgfile = "SFA_Discussion.html";
I've set permissions at 755 and tried every combination of paths I know.
I got a suggestion to change the $cgi_url from $cgi_url = "/big/dom/xpb5th/cgi-bin/wwwboard.cgi";
To this
$cgi_url = http://pb5th.com/cgi-bin/wwwboard.cgi";
That didn't work. Posted replies to messages tried to output to:
http://pb5th.com/big/dom/xpb5th/cgi-bin/wwwboard.cgi
which, of course, gives a 404.
Can anybody see what's wrong here? Thanks
Justin
03-20-1999, 07:53 PM
Looks like you need to do this:
$cgi_url = "/cgi-bin/wwwboard.cgi";
That should take care of it. It looks like it's tacking it on the end of the $baseurl, and even if it doesn't that would still work as is http://www.aota.net/ubb/smile.gif
Hope this helps.
------------------
Justin Nelson
FutureQuest Tech Support
teach1st
03-20-1999, 08:03 PM
Thanks for your prompt reply. That doesn't appear to help, and, in fact, I've noticed something odd.
No matter what I put for the $cgi_url when I attempt a reply in the wwwboard and check the reply's source, the form method points to the full cgi path.
<form method=POST action="/big/dom/xpb5th/cgi-bin/wwwboard.cgi">
Tried in different browsers, too.
hearts
03-20-1999, 08:39 PM
shouldn't that say this?
<form method=POST action="http://www.xpb5th/cgi-bin/wwwboard.cgi">
I got a suggestion to change the $cgi_url from $cgi_url =
"/big/dom/xpb5th/cgi-bin/wwwboard.cgi";
To this
$cgi_url=http://pb5th.com/cgi-bin/wwwboard.cgi";
in that above statement.. I see two things wrong.. a missing quote (") and the www is missing from your path.
$cgi_url="http://www.pb5th.com/cgi-bin/wwwboard.cgi";
same is here:
$baseurl = "http://pb5th.com/SFA_Discussion";
"http://www.pb5th.com/SFA_Discussion";
i rushed, but I think this may help...
[This message has been edited by hearts (edited 03-20-99).]
hearts
03-20-1999, 08:43 PM
That didn't work. Posted replies to messages tried to output to:
http://pb5th.com/big/dom/xpb5th/cgi-bin/wwwboard.cgi
whew.. this would be all wrong.
http://www.pb5th.com/cgi-bin/wwwboard.cgi
Justin
03-20-1999, 08:59 PM
Ok, it seems you are getting one right and another wrong.. we all do that http://www.aota.net/ubb/smile.gif
Try this:
$basedir = "/big/dom/xpb5th/www/SFA_Discussion";
$baseurl = "http://www.pb5th.com/SFA_Discussion";
$cgi_url = "http://www.pb5th.com/cgi-bin/wwwboard.cgi";
- or -
#cgi_url = "/cgi-bin/wwwboard.cgi";
Now set your form to this:
<form method=post action="http://www.pb5th.com/cgi-bin/wwwboard.cgi">
Note there is no "x" in the URL http://www.aota.net/ubb/smile.gif That should about take care of it, I hope. If not, let me know http://www.aota.net/ubb/smile.gif
------------------
Justin Nelson
FutureQuest Tech Support
teach1st
03-20-1999, 09:14 PM
Justin, I've tried every one of the suggestions. Nothing.
The reply form still gives a form method pointing to /big/dom/xpb5th/cgi-bin/wwwboard.cgi
Since the reply is automatically generated by the wwwboard.cgi, which doesn't reference that at all by now, I'm wondering if there's a problem with updating somehow somewhere, or my directory structure.
Of course, It could be that I'm just doing something really stupid <g>. I do appreciate your help.
p.s. I'm uploading in ASCII and believe I'm doing everythign right.
teach1st
03-20-1999, 09:27 PM
Ok, everything seems to be working now. I don't know how, or what, but it is. Thanks for all your help. I transferred over from a web hosting company from which getting help or even a reply was like pulling teeth. This is very refreshing. I'm impressed with FutureQuest!
hearts
03-20-1999, 09:33 PM
deleted my message.. you seemed to have worked everything out. http://www.aota.net/ubb/smile.gif
[This message has been edited by hearts (edited 03-20-99).]
teach1st
03-20-1999, 09:35 PM
PS - That's exactly what I did - started with a fresh script on the HD and redid it!
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.