vote up 1 vote down star
1

I'm newbie to Linux.

I have uploaded rebol ( a script langage similar to perl from http://www.rebol.com/view-platforms.html ) the linux debian version to /usr/bin on my VPS

Where do I upload this script :

Code:

#!/usr/bin/rebol -c
REBOL [Title: "Cgi Test in Rebol"]
print "content-type: text/html^/"
print ["Date/time is:" now]

as I have 2 domain names on this VPS, I can't find where the domain folder are to do so.

flag
Look for a cgi-bin directory. – Inshalla Jul 24 at 21:58

migrated from stackoverflow.com

2 Answers

vote up 0 vote down

On Ubuntu (and probably Debian too) this is located in

/usr/lib/cgi-bin

That's assuming that you have Apache installed.

The stock Apache config aliases /usr/lib/cgi-bin to servername.com/cgi-bin. If you've changed that in the course of setting up your virtual servers, that may not work. But you should be able to look at the example in the config and get it working for your virtual servers.

link|flag
vote up 0 vote down

On plesk I think it should be something like:

/var/www/vhosts/DOMAIN/cgi-bin/
link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.