Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm newbie to Linux.

I have uploaded rebol ( a script langage similar to perl from ) the linux debian version to /usr/bin on my VPS

Where do I upload this script :


#!/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 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

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


That's assuming that you have Apache installed.

The stock Apache config aliases /usr/lib/cgi-bin to 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:

share|improve this answer

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


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

share|improve this answer

Your Answer


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.