PDA

View Full Version : need help getting virtualave account working with CGI --->


Detritus[FaTBoyZ]
23-05-2000, 16:16
hello again peeps, im back asking annoying questions again http://forums.gameplay.com/ubb/teeth.gif

I have set up a fully operational account with vitrual ave, and put 2 cgi scripts in the provided cgi-bin. HOWEVER when i got to type in the url, they say they have a server side error on them! the url, (as far as i know is: ashleylewis.virtualave.net/cgibin/name.cgi?yourname (its only a test proggy O.K.?)
It was written in c++, compiled to an exe and renamed to .cgi.. please let me know wher i have gone wrong, or if it is just the server playing up.. it has been 3 days since i uploaded them, and ftp acknowledges that they are there, howerver the virtual directory ( ashleylewis.virtualave.net/cgibin/ ) show nothing... confused? i was.
The permissions are set to 777 now, they used to be at 755 and the whole thing has never worked. please help if you can. TQ.

------------------
This Cat always gets the Cream

WildWayz
23-05-2000, 16:26
Hmmmmm

it should be "cgi-bin" not "cgibin" for one.
Also, urm.. renaming a .exe to a .cgi I don't think will make the script work :)
Now, if u renamed the .cpp file to .cgi it might.
Also, the whole point of the cgi-bin is so people can execute scripts from it. It will not show what is in the directory :)

--WildWayz

WildWayz
23-05-2000, 16:28
Also, did u upload it as ASCII?
If you uploading it as BINARY it won't work.

--WildWayz

Carn
23-05-2000, 16:37
This could easly be the prob. Open up ur cgi script in either notepad or what ever, and at the top u will notice this :

#!/usr/bin/perl

If you see this change it to :

#!/usr/local/bin/perl

and upload the files again and see what happens.

bluescreen
23-05-2000, 19:02
i thought virtualave only liked PERL?

i would have used perl if its only a test prog.....

------------------
the bluescreen has you

Make $22 an hour AT LEAST, it started 15th May (http://www.bepaid.com/users.rhtml?REFID=10885159)

Detritus[FaTBoyZ]
24-05-2000, 21:12
aha! that might help, i havent even looked at perl yet, went straight on with my C++ knowledge (what i have that is :) )