Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Dec 12, 2019 3:44 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 55 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 12:17 am 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
I just downloaded the most recent version of RS. Namely, Real Studio 2011 Release 1.

The information located at http://www.realsoftware.com/realstudio/new.php says the following:
"Easier Deployment of Web Applications: This release removes the prior implementation for FastCGI deployment using REAL Studio Web Edition. The new CGI option outputs a Perl script that acts as a gateway between your web server and your application. The Perl script goes into the cgi-bin folder, allowing for easier hosting and supporting many more hosting services."

Where it says:
"The new CGI option outputs a Perl script that acts as a gateway between your web server and your application. The Perl script goes into the cgi-bin folder, allowing for easier hosting and supporting many more hosting services."

Does anyone know which files go into the cgi-bin? For example, I created a simple "hellorealweb" web app. When I compile it, I get the following set of files:

hellorealweb Libs <--this is a folder
.htaccess
config.cfg
hellorealweb
hellorealweb.cgi

Which of the above files go into cgi-bin? Which ones go in the public folder?

Within the hellorealweb Libs folder, I have the following listing:

libRBInternetEncodings.so
libRBMD5.so
libRBRegEx.so
libRBScript.so.6
libRBShell.so
libRBXML.so

Where do the above files go? Do they go in the cgi-bin folder within the containing folder?

And finally, is there a list that outlines the permissions that are required for the files?
If there is a short tutorial on how to deploy using the new release please post it. I would greatly appreciate it.

Thanks to anyone who can help.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 1:31 am 
Offline

Joined: Thu Mar 10, 2011 1:20 am
Posts: 21
Take all of the files and folders as they exist and upload them to your cgi-bin.

If you are using a ftp client, make sure the upload settings are set to transfer in binary mode.

Then once all of the files have been uploaded change the permissions of the .cgi script and your application file to 755

Finally to access your application open your web browser and type http://www.yourdomain.com/cgi-bin/hellorealweb.cgi

Replace "yourdomain.com" with your actual domain name.

Hope this helps!

_________________
Host Real Studio Web Apps And Process Credit Card and PayPal Payments With Ease.
Visit our website: http://www.QuickStartSoftware.com


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 1:39 am 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
@Quick Start Software

Thanks, I'll try that out. :D


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 2:13 am 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
Well at least I am getting an error this time, which to me is a good sign it tells me something is doing something.

I am getting the following error:
Unable to launch application on port 43882: Connection refused

I know when RW was using FastCGI, I had to set the ports. Has that changed as well?

I tried various combinations of 8080, 80 and swapped out and the sample is not loading.

btw, it does work locally but not when I upload it to my test server.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 9:17 am 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
That's usually a permissions issue. Make sure the folder and all of it's contents are set to 755.

I have a deployment training video that's part of the free series on my website. In the video I upload a web app to Bluehost (shared server) and to a VPS. Both are running Linux servers.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 12:19 pm 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
Thanks Bob, I'll check out your videos. See if I can get this thing going again.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 2:33 pm 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
Anyone know how to solve this one:

"Unable to launch application on port 9000: Connection refused"

I've tried:
1. Opening up the firewall to allow port 9000. I used both and either Plesk and the main control panel. Reverting to original settings.
2. Tried 8080.
3. Set permissions of various combinations 715 (which was the one that worked for the original fastcgi), 777
4. Building and rebuilding various combinations.

I've spent well over 12 hours on this issue and it is reminiscent of the challenge with the fastcgi host where many didn't get their apps to launch. Once that got solved, this one pops up. I like to know what's going on when I do my work and I don't have a problem learning new things but at this point I feel kinda tapped out over this. It seems to me the documentation is a bit sparse. It's hard to get my $$$ req approved when I can't even get a demo working.

I also checked out Bob's video tutorials but I wasn't able to find anything that addressed the connection refused issue. Btw, they are great. You should all sign up.

Thanks for the help everyone.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 3:42 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Are you building a Standalone or CGI application?

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 3:50 pm 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
Bob Keeney wrote:
Are you building a Standalone or CGI application?


Hi Bob,

It's a CGI application. I can post screen shots of my settings so anyone else doing things might be able to solve their problem.

But yes, it's a CGI application.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 4:06 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Well, in my apps, I'm using Choose Port Automatically. That's it.

Couple of things to check:
FTP upload should be BINARY
You need to upload the ENTIRE directory because there's an invisible .htaccess file in the build directory that needs to be there

Directory permissions for that directory and all contents should be 755.

Your Apache should have a handler for cgi extensions.
On my VPS I need to add "AddHandler cgi-script .cgi" to the first line of the .htaccess file.

I have an installation video as part of my free series that shows all this in action on a shared host and on VPS.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 4:09 pm 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
Thanks Bob. I saw your video about that and I was doing it step-by-step. I'm going to take a break and try again later tonight. I'll let you guys know how it works out.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 7:06 pm 
Offline

Joined: Tue Mar 23, 2010 8:44 pm
Posts: 673
I would first get it working on my local server.
On your local machine you have complete control and changes can be made quickly.

Once I knew how to do that I'd try for the remote server.
If you're on a shared server your level of control and access may be limited and it may take longer to make changes remotely.

I don't know how common but it may be possible that the techs haven't activated your account for cgi access.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Thu Mar 10, 2011 7:56 pm 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
Does anyone have a sample test file that they know successfully runs on a server?

From what I can see it is an issue with an "application" not launching on a given port as the connection is being refused.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Fri Mar 11, 2011 12:14 am 
Offline

Joined: Thu Mar 23, 2006 4:54 pm
Posts: 57
I have a question, does RW randomly generate port numbers to choose when launching the "application"?

For example I get this:
Unable to launch application on port 48799: Connection refused

It seems for every build the port number changes.

Does anyone know if the application trying to launch is TCP or UDP? At this I don't want to make any assumptions. I've got one more day with this and then I'm toast if I don't get it to work.

Thanks to everyone who's helped out so far.

I really appreciate it.


Top
 Profile  
Reply with quote  
 Post subject: Re: I need a Real Web deployment example
PostPosted: Fri Mar 11, 2011 12:01 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
realwebnerd wrote:
I have a question, does RW randomly generate port numbers to choose when launching the "application"?


Yes. By design because the server may have many applications using many ports so it needs to be able to switch to an available one.

realwebnerd wrote:
For example I get this:
Unable to launch application on port 48799: Connection refused

It really sounds as if you have a permissions issue. The directory and all contents need to be set to 755.

realwebnerd wrote:
It seems for every build the port number changes.


Yes. See above.

realwebnerd wrote:
Does anyone know if the application trying to launch is TCP or UDP? At this I don't want to make any assumptions. I've got one more day with this and then I'm toast if I don't get it to work.


It's a cgi application running as an executable on your web server. The port is the connection port to the outside world and since the app runs in a browser it is TCP. You shouldn't have to open any ports unless your web server is locked down. Are you on a commercial host, an internal server? Mac, Windows, or Linux?

All of our subscription WE training videos have a project file associated with them that you are free to use. These are all running (some with some minor modifications) on our web server.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group