Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

migrated from stackoverflow.com Aug 9 '09 at 21:08

This question came from our site for professional and enthusiast programmers.

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

3 Answers 3

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.

share|improve this answer

On plesk I think it should be something like:

/var/www/vhosts/DOMAIN/cgi-bin/
share|improve this answer

Yes, like Coops said if your VPS uses Plesk the location is:

/var/www/vhosts/DOMAIN/cgi-bin

But don't forget to enable CGI support for the domain in "web hosting settings"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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