PDA

View Full Version : HELP WITH CGI !!!


martint
02-10-2000, 18:22
PLEASE CAN SOMEONE HELP ME!!!!
The problem is, is that i want to have news posting on my site, ive got the right server and all that stuff but how do i install the cgi script to my site and the server?. I downloaded the news posting script off http://amphibian.gagames.com/newspro/ and you have to go to their website to post news on etc. So if anyone knows how to install it to my site and get it running, help me!
thanks

Rapter Red
02-10-2000, 23:28
aks ya host what to do m8

Jinx M
03-10-2000, 11:29
Ok, I'm assuming your host lets you run custom CGI scripts.

Upload all the files you got from the Newspro site into a folder. Upload them in ASCII (will be an option on your FTP program)

You now need to CHMOD the uploaded files. This just changes certain permissions on the server. On most FTP programs you can right click on the file and select CHMOD. You will need to set all the files except

viewnews.cgi and newspro.cgi

To 666 (Read and Write for all but NOT execute)

Change viewnews.cgi and newspro.cgi to 755 (Owner Read, Write and execute, group and other to Read, Execute but NOT write)

You will also need to CHMOD the folder you put everything in to 777 (Read, Write and Execute for all)

Then just fire up your web browser and go to where ever you put newspro.cgi. You will need to log in but it tells you what to use for first time set up. You then need to set up a WebMaster user. Follow the instructions from here on in and its pretty straight forward. Newspro figures most stuff out for you.

Can I point out that all of this is in the readme.txt file which comes with newspro but feel free to post back here if you need more help (or mail me)

puz
03-10-2000, 13:24
Although the chmod stuff that Jinx talks about will only work on a unix machine. You can run CGI on Win NT server too..

All depends on your host m8...

martint
03-10-2000, 20:59
ok thanx alot, but how do you set the the posting script on a certain place on the website, in my case it would be stright down the middle?

The Laughing Cow
03-10-2000, 22:34
server sides includes :E

hey guys, my Host is running NT and DOES support CGi, ASP e.t.c. What do i do to upload Newspro?

do i just upload it as i would nething else in ASCII form?

cheers,

-Cow

Foxy
04-10-2000, 13:02
Something like:

<!--#include virtual="news.txt" -->

The Laughing Cow
04-10-2000, 16:26
help please guys?

also i would really be grateful for a link to a site which tells u the basics to uploading CGI / ASP

cheers,

Jinx M
10-10-2000, 16:22
The Basics of Uploading CGI

1. Always upload in ASCII
2. Not ALL directories all cgi to run - check with your host
3. MOST cgi scripts need to be chmod'd to 755

err... That's it.

As for Newspro, there is a pretty good readme in the zip file. Basically, all posts are added to a file called news.txt. This file usually lives in the same folder you uploaded Newspro into (although you can change that.)

To view your news, you do as Foxy cunningly says and use server side includes. Stick this where you want the news to appear on your page:

<!--#include virtual="news.txt" -->

However, it must point to the news.txt file and the above line assumes you're in the same directory. If you have uploaded newspro into a folder called Newspro in your root directory, then

<!--#include virtual="/Newspro/news.txt" -->

should work (remember, unix systems are case sensitive.)

If you have any more questions about Newspro (or anything else) you can usually get my attention quickly by posting here (http://www.consortium.uk.net/forums/UltraBoard.cgi?action=Headlines&BID=9).