PDA

View Full Version : how can i make a cgi file work on a win2003 host server?


pssheba
05-07-2005, 07:44 AM
hi !
I wrote a cgi application using c++ to show date and time. The file name
is "t5.cgi".
I copied the file to: "Inetpub/wwwroot/cgi-bin" folder in my win xp machine.
I activate the file using ie browser and i get:
"Date is: Sat May 2005 Time: 13:48:17".
I copied the file to a win 2003 remote host server that supports cgi files (so i
was promised ). I activate the file using ie browser and i get:
"D:\HTTP\wwwroot\total-rast.com\t5.cgi' script produced no output".
I right click the t5.cgi file at the host server , choose "properties" and click the "execute" attribute. When i click "properties" again i find that "execute" attribute was not accepted.
Any idea what thet could be ?
Thanks a lot !
Yossi

scoutt
05-07-2005, 01:48 PM
for one, we only need one thread on the same question.

second, why use c++ to make a perl file? use perl to make a perl file.

also, you will need to download perl to run cgi/perl. then you need to make IIS see that perl is indeed installed. I have not a clue on how to do that so good luck.

Paul
05-09-2005, 12:13 PM
Installing Perl on Windows is pretty much automatic and fairly simple. The only small problem comes when you want to make it work for other sites; you have to activate it in the IIS administration. This should be all the information required:

http://www.iisanswers.com/Top10FAQ/t10-installperl.htm

And as scoutt said, you will not get a Perl script to work if it is written in C++; a better option if you are into that programming might be using ASP.

pssheba
05-09-2005, 01:50 PM
I wouldnt like to change either to perl nor asp. It is c++ i'm using. Does any one know hosting service enabling c++ scripts ?
Thanks however.

scoutt
05-09-2005, 02:42 PM
those went out with the times. good luck.