The quest to get Web Edition apps running properly on my web server is frustrating. Every server is different it seems and finding info is truly a PITA. I have to thank some timely tips from the fine folks at Real Software. Hopefully you might find these helpful.
Problem #1: My apps were never shutting down on the server. I logged into my Plesk account this morning and discovered about 30 cgi processes running for one app I’ve been working on. Only 1 other person knows of this app so having that many processes was disturbing and obviously not right.
Solution: My Apache configuration timeout value wasn’t set properly. I had to create a vhost.conf file and set the Timeout 300. This let Apache quit the app after 5 minutes. Of course, for my Plesk account that meant SSH’ing into the file system and via command line do all that (not my strongpoint).
Problem #2: Partially because of problem #1, above, I’ve had to manually kill the processes when I upload new versions of the app on to the web server. That’s not so bad, but when it’s starting up again you sometimes get a Server Error 500 resulting in an error that goes something like this:
Application launched, but unable to connect using port xxx
Hit refresh and the app starts properly but that’s not cool telling your client that what they have to do.
Solution: A temporary fix comes from the NUG list where Darryl Snover added one line to the CGI file that Real Studio generates. On line 286 of the appname.cgi file, add a ‘sleep(1)’. So this becomes:
system(“/$appname_escaped –port”) == 0 or return “$!”;
Hopefully you find these tips useful.