Help setting up Rev CGI
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Help setting up Rev CGI
I've got a Linux hosting account with GoDaddy. I'm have their new Hosting Configuration 2.0 which doesn't have a cgi-bin or cgi folder, supposedly you can just upload executables and CGI files to any folder. I've uploaded the engine (renamed Revolution) and "hello world" test file, I named test.cgi. I made sure they were both 755.
Doesn't seem to work. any suggestions?
Doesn't seem to work. any suggestions?
Hi tim,
I was trying the 2.6.1 linux engine.
my cgi looks like this
I found this in the GoDaddy help files which makes it look like it might be able to work.
http://help.godaddy.com/topic/317/article/26
I was trying the 2.6.1 linux engine.
my cgi looks like this
Code: Select all
#!revolution
on startup
put "Content-Type: text/plain" & cr & cr
put "Hello World!"
end startup
I found this in the GoDaddy help files which makes it look like it might be able to work.
http://help.godaddy.com/topic/317/article/26
-
- VIP Livecode Opensource Backer
- Posts: 1236
- Joined: Sat Apr 08, 2006 1:10 pm
- Location: Zurich
- Contact:
1. try the 2.9 engine (build an app with linux included, then get the engine for linux from the revolution folder)
2. if your host offers it, look at the error logs, most of the time they contain something interesting if stuff doesn't run.
3. make sure your app and your text cgi are in the correct place to be run (some host allow cgi's to run anywhere).
2. if your host offers it, look at the error logs, most of the time they contain something interesting if stuff doesn't run.
3. make sure your app and your text cgi are in the correct place to be run (some host allow cgi's to run anywhere).
Various teststacks and stuff:
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
http://bjoernke.com
Chat with other RunRev developers:
chat.freenode.net:6666 #livecode
I did try 2.9 engineBvG wrote:1. try the 2.9 engine (build an app with linux included, then get the engine for linux from the revolution folder)
2. if your host offers it, look at the error logs, most of the time they contain something interesting if stuff doesn't run.
3. make sure your app and your text cgi are in the correct place to be run (some host allow cgi's to run anywhere).
when I try and view my cgi file in browser, it just opens and shows the code, it doesn't process it or throw any error, so I doubt it is logging anything
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
Then either Apache isn't configured to execute your files in the directory that you've stored them, or your cgi scripts don't have the 'executable' flag set. If it's the latter, you can fix that by typing
from the command line.
Hope this gets you closer to a solution.
Jan Schenkel.
Code: Select all
chmod 755 <your file name>
Hope this gets you closer to a solution.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
I did set both to 755.Janschenkel wrote:Then either Apache isn't configured to execute your files in the directory that you've stored them, or your cgi scripts don't have the 'executable' flag set. If it's the latter, you can fix that by typingfrom the command line.Code: Select all
chmod 755 <your file name>
Hope this gets you closer to a solution.
Jan Schenkel.
I noticed in the godaddy control panal that I don't have a CGI utility the help files say should be there, so I will contact their support.
Oh I see what the problem is, perhaps I need to upgrade to a Deluxe account to use straight CGI.
Last edited by keyless on Thu Jun 05, 2008 8:16 pm, edited 1 time in total.
-
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
- Location: London, UK
- Contact:
Hi,
If you are using the 2.9 Linux engine, then things are a little different.
Firstly you need to use the Standalone engine. I cant off the top of my head remember where this lives - but I am sure someone will pipe in!
Take the Standalone engine and put it in your cgi-bin. Rename it to "Revolution" or something suitable. chmod as before.
You must use the -ui command line option when calling this (for no User Interface) so your cgi file (assuming you have renamed the Standalone engine to "revolution", and it is in the /cgi-bin/ folder) would be:
#!/cgi-bin/revolution -ui
on startup
put "Content-Type: text/plain" & cr & cr
put "Hello World!"
end startup
One thing to note - your Web Host MUST have all the base X11 libraries installed. Although the -ui option does not create a user interface, it DOES still try and initilize some of the X libs - so these must be installed.
Hope all this helps,
Regards,
Tim.
If you are using the 2.9 Linux engine, then things are a little different.
Firstly you need to use the Standalone engine. I cant off the top of my head remember where this lives - but I am sure someone will pipe in!
Take the Standalone engine and put it in your cgi-bin. Rename it to "Revolution" or something suitable. chmod as before.
You must use the -ui command line option when calling this (for no User Interface) so your cgi file (assuming you have renamed the Standalone engine to "revolution", and it is in the /cgi-bin/ folder) would be:
#!/cgi-bin/revolution -ui
on startup
put "Content-Type: text/plain" & cr & cr
put "Hello World!"
end startup
One thing to note - your Web Host MUST have all the base X11 libraries installed. Although the -ui option does not create a user interface, it DOES still try and initilize some of the X libs - so these must be installed.
Hope all this helps,
Regards,
Tim.
it lives in the runtime folder.Tim wrote:Hi,
If you are using the 2.9 Linux engine, then things are a little different.
Firstly you need to use the Standalone engine. I cant off the top of my head remember where this lives - but I am sure someone will pipe in!
Take the Standalone engine and put it in your cgi-bin. Rename it to "Revolution" or something suitable. chmod as before.
You must use the -ui command line option when calling this (for no User Interface) so your cgi file (assuming you have renamed the Standalone engine to "revolution", and it is in the /cgi-bin/ folder) would be:
#!/cgi-bin/revolution -ui
on startup
put "Content-Type: text/plain" & cr & cr
put "Hello World!"
end startup
One thing to note - your Web Host MUST have all the base X11 libraries installed. Although the -ui option does not create a user interface, it DOES still try and initilize some of the X libs - so these must be installed.
Hope all this helps,
Regards,
Tim.
I'm checking now to make sure CGI is turned on for my account. GoDaddy no longer used cgi-bin, they make it so cgi can be in any folder. I'll play with that as soon as I'm sure my account is CGI enabled
keyless wrote:it lives in the runtime folder.Tim wrote:Hi,
If you are using the 2.9 Linux engine, then things are a little different.
Firstly you need to use the Standalone engine. I cant off the top of my head remember where this lives - but I am sure someone will pipe in!
Take the Standalone engine and put it in your cgi-bin. Rename it to "Revolution" or something suitable. chmod as before.
You must use the -ui command line option when calling this (for no User Interface) so your cgi file (assuming you have renamed the Standalone engine to "revolution", and it is in the /cgi-bin/ folder) would be:
#!/cgi-bin/revolution -ui
on startup
put "Content-Type: text/plain" & cr & cr
put "Hello World!"
end startup
One thing to note - your Web Host MUST have all the base X11 libraries installed. Although the -ui option does not create a user interface, it DOES still try and initilize some of the X libs - so these must be installed.
Hope all this helps,
Regards,
Tim.
I'm checking now to make sure CGI is turned on for my account. GoDaddy no longer used cgi-bin, they make it so cgi can be in any folder. I'll play with that as soon as I'm sure my account is CGI enabled
It was my account. Only GoDaddy's Deluxe Accounts and above have the CGI access I think I would need to get this to work.