PDA

View Full Version : cgi chat


Interkosmos
01-05-1999, 10:26 PM
will somebody please help me?

I have the front end i a chat room set up in my www and a cgi called everycht.cgi in my cgi-bin with the paths changed accordingly and i still get Internal Server error, but sometimes i get 404. What Gives. Check it out at www.interkosmos.com

Deb
01-05-1999, 10:36 PM
will somebody please help me?

Those words always scare me hhehehe....

At first glance I see this in everycht.cgi

$filepath='/big/dom/xinterkosmos/www/messages/messages/';

There is no such path as that on your site... I would change it to
$filepath='/big/dom/xinterkosmos/www/messages/';

See what happens from there... take it one step at a time and things usually "Fall Together"

Deb

Interkosmos
01-05-1999, 10:45 PM
OK that's a little better
I thought since i had a folder called messages in www and a file in there called messages.html that that would be the path.

Enough explaining myself! (sorry, tryin to quit smoking, get a little uptight)

Anyway, i still get 404 in the bottom frame.

Any mor suggestions?

Deb
01-05-1999, 11:02 PM
Ok.. in that bottom frame file you have...

<FORM ACTION="www.interkosmos.com/big/dom/xinterkosmos/cgi-bin/everycht.cgi/" METHOD="POST">

Try changing that to <FORM ACTION="/cgi-bin/everycht.cgi" METHOD="POST">

You're having problems with the paths... I would recommend going back and looking at the paths carefully....

Try that and see what happens

Deb

[This message has been edited by Deb (edited 01-05-99).]

Deb
01-05-1999, 11:31 PM
Just noticed something else.. you also need to change the permissions for the messages.html file and it's directory... try 777 for both of these... the 755 rule only applies to files inside the cgi-bin

Deb

Del
01-06-1999, 02:19 AM
Deb sounds like she's got it down pretty good http://www.aota.net/ubb/smile.gif You'd think she was the one spending time on the everychat board, not me hehehe...

Anyway, it should work for you once to tweak what Deb brought up. If it doesn't, let me know and I'll be happy to help.


(sorry, tryin to quit smoking, get a little uptight)

You too? Wow, small world. What changed it for you? (for me it's the new CA smoke tax...)



------------------
Del
www.downinit.com/ (http://www.downinit.com/)


[This message has been edited by Del (edited 01-07-99).]

Interkosmos
01-07-1999, 03:56 AM
OK, I am at an end!

I have tried it all. I think all my paths are correct and it seems all my permissions are changed.
Is there anything else it could be?

The bottom frame tells the user: 'Premature end of script header' and gives a path that is not in any of the scripts for any html doc or cgi. for that matter.
Do i need to run it as a .pl?

Am i close to making this thing work or should i just start over?

[This message has been edited by Interkosmos (edited 01-07-99).]

Del
01-07-1999, 04:05 AM
In chatform.html you've got
<FORM ACTION="/xinterkosmos/cgi-bin/everycht.cgi/" METHOD="POST">

Change it to this;
<FORM ACTION="/cgi-bin/everycht.cgi" METHOD=POST>

The URL /xinterkosmos/cgi-bin/everycht.cgi/ does not exist, that's why it's returning the 404 error.

If that doesn't work, feel free to toss me an email at del@downinit.com I've been playing with EveryChat for a while, done quite a few installs, and my own chat script is based on EveryChat (with permission from Matt of course). I used to be a regular at the EC forums, but due to time constraints I've not been there much lately. Anyway, if you want, let me know and I can install it for you (no charge, just this once *s*)



------------------
Del
www.downinit.com/ (http://www.downinit.com/)

Interkosmos
01-08-1999, 02:40 AM
One more question before i take advantage of your merciful goodwill,

I changed the path in Chatframes but the error message stays the same.

log file says


String found where operator expected at everycht.cgi line 86, near "print ""
(Might be a runaway multi-line "" string starting on line 85)
(Missing semicolon on previous line?)
syntax error at everycht.cgi line 86, near "print ""
Execution of everycht.cgi aborted due to compilation errors.
Translation?

I only ask so many question because i want to learn. Socratic method?

Del
01-08-1999, 03:57 AM
Learning is a good thing http://www.aota.net/ubb/smile.gif I asked tons o questions on EveryChat, it was the first Perl thing I'd ever done *g*

My usuall suggestion for errors like that is to start fresh. Unzip the archive, edit everycht.cgi in the most basic of ways, just the $filepath and $filext. Upload that, make sure it's in ASCII or it'll break, chmod 755 and see what happens. If your html pages are right, it should work dandily with very little config time. $filepath will be '/big/dom/xinterkosmos/www/messages/' and $filext will stay '.html'.

The error you speak of is a common one. Most every statement made in perl must end with a semicolon ( ; ). If you lose one somewhere, the error log will give you an error like that. However, it's not always on the line it says, sometimes it's as far away as ten lines in either direction. Still, it's more help than not tho.

Like I said before, if you still can't get it, lemme know and I'll help. By help I mean I'll fix it, and tell you exactly what I did http://www.aota.net/ubb/smile.gif Once it's all done, you can visit www.downinit.com/ecmods/ (http://www.downinit.com/ecmods/) for a handful of addons (some different than the main addons page at everychat.ml.org).



------------------
Del
www.downinit.com (http://www.downinit.com)

da da da


[This message has been edited by Del (edited 01-08-99).]