Page 1 of 1

CGIs and Studio

Posted: Thu Sep 06, 2007 1:27 am
by andyh1234
Im just looking to add my keygen to our apache server.

I can rewrite it in Perl, but since Revolution has been so good so far, Id like to install the Rev engine on the apache server so I can write rev scripts on it, I figure it can do everything and the learning curve could be useful on other projects.

What do I need to do to install this?

I have a Studio license, is this enough. Having problems locating the files I need to get this going!

Thanks

Andy

Posted: Thu Sep 06, 2007 1:30 am
by andyh1234
Just to add..

Im looking at http://www.runrev.com/section/features.php which says Studio can create cgi apps, so I assumed it includes rights to use the engine on the server?

Posted: Thu Sep 06, 2007 2:19 am
by Mark
Hi Andy,

Here's a simple cgi tutorial:
http://bjoernke.com/runrev/cgi.php

and here's a more extensive one:
http://hyperactivesw.com/cgitutorial/tutorialtoc.html

Best,

Mark

Posted: Thu Sep 06, 2007 2:03 pm
by andyh1234
Thanks Mark,

I tried downloading the linux script, renamed it to revolution and uploaded it to my server, changing the permissions to 777, but I get a server error.

If I run it on the server directly through a terminal prompt I get...

Could not open libgdk-x11-2.0.so (null)
Can't load stack or script license.rev

I guess this means I have the right version as it did run.

Do I need a separate license file for this to work?

Andy

Posted: Thu Sep 06, 2007 2:07 pm
by Mark
Hi Andy,

This problem has been discussed on the Rev Users Mail List:
http://search.gmane.org/search.php?grou ... ery=libgdk

You need to ask your web hosting service to install a few libraries. If he does so successfully, please let us know.

Best,

Mark

Posted: Thu Sep 06, 2007 10:55 pm
by andyh1234
It a dedicated server, so I can log in and do it.

Thanks for the pointer!

Andy

Posted: Thu Sep 06, 2007 11:27 pm
by andyh1234
Thanks again for the tips Mark, I have something working now.

To cut a long story short, it was all to do with the permissions.

I had to change my 'cgi' script to 755 permissions for it to run.

I had used 777 on the basis that it was just a test and I would reduce them later, but when I checked the error logs that was the problem and changing to 755 means I get my Hello World script to display!

Thanks again for all the help, Revolution is great, but what makes it even better is the support, it is very much appreciated!

Thanks again.

Andy