Setting up a Rev CGI Environment on

Are you using LiveCode to create server scripts or CGIs?

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
Posts: 107
Joined: Thu Feb 23, 2006 7:43 pm

Setting up a Rev CGI Environment on

Post by Lynn » Tue Apr 18, 2006 10:27 pm

Thanks to Mark Wieder of AhaSoftware for these instructions on setting up your account on to use Revolution as a CGI:

In your hosting space on Jaguarpc you will find a folder called public_html. This is where your web pages live.

Within that is a folder called cgi-bin. I took the "Linux" file from my "Revolution 2.6.1/components/engines" folder and copied it to the cgi-bin folder using my ftp client. Then I renamed it "revolution".

I then made the canonical "hello.cgi" test script file and placed it in the same cgi-bin folder.

Code: Select all


on startup
  put "Content-Type: text/plain" & cr & cr
  put "Hello World!"
end startup
Set the permissions of both files to 755 (I was using WS_FTP LE on Windows

Select the file, right-click to bring up a contextual menu, and select chmod, then clicked all three "execute" checkboxes).

Note: Jaguarpc uses linux servers. I created the test script on a Windows machine, so the line endings were wrong. I launched a web browser and pointed it to "". I got a server error, so I went back to the "hello.cgi" file, changed the line endings to be unix lf-only style, uploaded it again, and all was well.

Post Reply

Return to “CGIs and the Server”