Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Garret on July 14, 2000, 08:48:54 AM

Title: A little CGI help please
Post by: Garret on July 14, 2000, 08:48:54 AM
I'm working (or trying to) with CGI scripts on my e-smith server. A number of them are asking for meaning I would imagine the main html directory? Would this be /home/e-smith/files/primary/html? I keep running into errors and I think this is the cause. New to CGI's and trying to get a handle of sorts on it.

Much thanks in advance.
Title: RE: A little CGI help please
Post by: Mike Stoddart on July 14, 2000, 11:59:08 PM
I think that depends on where the cgi files are stored. If they are in /home/e-smith/files/primary/cgi-bin then yes, I think /home/e-smith/files/primary/html is the correct html root. But if the cgi files are in /home/e-smith/files/ibays/mike/cgi-bin, then I presume the html root should /home/e-smith/files/ibays/mike/html.

I may be wrong!
Title: RE: A little CGI help please
Post by: Garret on July 15, 2000, 12:13:54 AM
You and I are both on the same page then. Now I have to figure out why it's not all working. Looking back on the past postings it seems that CGI scripts have been an on going challange. I'll get more detailed info together now that I know where I'm headed. I'll post it soon. Thank you.
Title: RE: A little CGI help please
Post by: Mike Stoddart on July 15, 2000, 07:59:43 AM
No problem. If its any help, I have cgi-scripts working, but only in ibays; i.e. not in the primary cgi-bin directory.
Title: RE: A little CGI help please
Post by: Garret on July 15, 2000, 09:39:37 AM
I'm still having problems. I'm getting an internal server error. I think that it might have to do with me editing the scripts on a windows machine and uploading to linux. I read that can cause problems. Do you no anything about that?
Title: RE: A little CGI help please
Post by: stephen noble on July 15, 2000, 03:58:28 PM
> editing the
> scripts on a windows machine and uploading to linux. I read
> that can cause problems. Do you no anything about that?

you can edit on a windows machine provide you save in unix format
textpad or notetab can do this
Title: RE: A little CGI help please
Post by: Mike Stoddart on July 15, 2000, 11:52:13 PM
I might be wrong, but try editing the file in Unix using vi, then modify it somehow (e.g. add a blank line), then save it and exit from vi. That *might* work, but dont quote me on that!