Re: LC Server on DreamHost?

2014-11-23 Thread stephen barncard
would you consider this script to be comparative to the complexity of
phpInfo() ?

anyway I don't think the slowdown I'm seeing at Dreamhost would be caught
in this benchmark. Once LC is loaded, it is quite speedy. But on the
server it has to restart for every page load.

my livecode test script was basically the same as yoursexcept I use the
.irev suffix on the file.

?lc
-- NEW UNIVERSAL VERSION 2014

put $_SERVER[SERVER_NAME] into sSiteName
put $_SERVER[SERVER_ADDR] into sSiteADDR
put $_SERVER[REMOTE_ADDR] into sRemoteADDR
put \
h1  sSiteName   /h1  \
h2  sSiteADDR   \
   span style='color:#7FFFD4;'(your IP:  sRemoteADDR 
)/span \
/h2  \
h4 \
SERVER TEST  |\
server: Livecode   |  \
OS:  the platform   |  \
Engine:  the version  /h4   into sComposedTitle
?

html
head
style
body {
background-color:#F9E8D2;
color:#33;
font-family: Lucida Grande, Lucida, Verdana, sans-serif;
}
 fieldset {
background-color:#33;
color:black;
text-align:center;
}
 h1{
color:#FDD017;
}
 h2{
color:#C79F8A;
}
 h3{
color:orange;
}
 h4{
color:#EE;
}
/style
title?lc putLIVECODE SERVER TEST  @  sSiteName ?/title
/head

body
?rev
command outputRow pLabel, pValue
?
tr
td
b
?rev put pLabel ?
/b
/td
td
?rev put pValue ?
/td
/tr
?rev
end outputRow
?

fieldset
?rev
put sComposedTitle ?
/fieldset

h2 style=color:black;Server Globals/h2
hr

table
?rev
repeat for each key tKey in $_SERVER
outputRow tKey, $_SERVER[tKey]
end repeat
?
/table
/body
/html

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*

On Sat, Nov 22, 2014 at 11:32 PM, Phil Davis rev...@pdslabs.net wrote:


 On 11/22/14 10:23 AM, Warren Samples wrote:

 On 11/21/2014 01:56 PM, Phil Davis wrote:

 I'm glad it isn't just me:
 http://quality.runrev.com/show_bug.cgi?id=13983

 Phil Davis



 Phil,

 Your desktop utility shows a difference of about 8 to 10 times using your
 URLs and about 4 times using mine when run under 6.6.2. Opening the URLs in
 a browser continues to show a significant difference, but it's hard to
 quantify. Could you put a timer in the scripts themselves?


 New URLs:
 http://ctrainweb.com/test3.lc
 http://support.nweta.com/test3.lc

 Very interesting! The scripts run quite speedily on both servers.

  Also, it seems probable from how they display in the utility and the
 browser that the scripts are not quite identical, with the one at 
 http://ctrainweb.com/test2.lc not converting 'CR' to 'br' as does
 (apparently) the other one. However doubtful it might be that this has
 serious impact, it would be best ensure they are identical.


 Done. Here is the 'test3.lc' script:
 --- start ---
 ?lc
 put the long seconds into tStart
 put tStart into tStart2
 put LC version  the version  CR  SYSTEM VERSION   the
 systemVersion  CR  the time  CR after tOutput
 repeat with x = 1 to 3
 put x  CR after tOutput
 end repeat
 put CR
 put the keys of $_SERVER into tList
 sort lines of tList
 repeat for each line tKey in tList
 if $_SERVER[tKey] is an array
 then put [  tKey  ]  CR after tOutput
 else put tKey  =  $_SERVER[tKey]  CR after tOutput
 end repeat
 replace CR with BR in tOutput
 put the long seconds - tStart  secsBR
 put tOutput
 put the long seconds - tStart2  secsBR
 ?
 --- end ---

 Phil


 Warren

 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


 --
 Phil Davis



 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-23 Thread Peter W A Wood
Stephen

Some time ago, I ran some tests to measure the comparative startup times of 
PHP, LiveCode and HTML on On-rev. The two scripts are simple:

Livecode
htmlhead/headbody?php echo pI've started/p 
?/body/html

PHP
htmlhead/headbody?php echo pI've started/p 
?/body/html

HTML
htmlhead/headbodypI've started/p/body/html

Trying these simple pages should give a good indication if the startup time of 
LiveCode is the problem on Dreamhost.

Regards

Peter

PS I used a ruby script running on the server to access the three pages to 
reduce the effect of network delays on the response times.


 On 24 Nov 2014, at 11:55, stephen barncard stephenrevoluti...@barncard.com 
 wrote:
 
 would you consider this script to be comparative to the complexity of
 phpInfo() ?
 
 anyway I don't think the slowdown I'm seeing at Dreamhost would be caught
 in this benchmark. Once LC is loaded, it is quite speedy. But on the
 server it has to restart for every page load.
 
 my livecode test script was basically the same as yoursexcept I use the
 .irev suffix on the file.
 
 ?lc
 -- NEW UNIVERSAL VERSION 2014
 
 put $_SERVER[SERVER_NAME] into sSiteName
 put $_SERVER[SERVER_ADDR] into sSiteADDR
 put $_SERVER[REMOTE_ADDR] into sRemoteADDR
 put \
 h1  sSiteName   /h1  \
 h2  sSiteADDR   \
span style='color:#7FFFD4;'(your IP:  sRemoteADDR 
 )/span \
 /h2  \
 h4 \
 SERVER TEST  |\
 server: Livecode   |  \
 OS:  the platform   |  \
 Engine:  the version  /h4   into sComposedTitle
 ?
 
 html
 head
 style
 body {
 background-color:#F9E8D2;
 color:#33;
 font-family: Lucida Grande, Lucida, Verdana, sans-serif;
 }
 fieldset {
 background-color:#33;
 color:black;
 text-align:center;
 }
 h1{
 color:#FDD017;
 }
 h2{
 color:#C79F8A;
 }
 h3{
 color:orange;
 }
 h4{
 color:#EE;
 }
 /style
 title?lc putLIVECODE SERVER TEST  @  sSiteName ?/title
 /head
 
 body
 ?rev
 command outputRow pLabel, pValue
 ?
 tr
 td
 b
 ?rev put pLabel ?
 /b
 /td
 td
 ?rev put pValue ?
 /td
 /tr
 ?rev
 end outputRow
 ?
 
 fieldset
 ?rev
 put sComposedTitle ?
 /fieldset
 
 h2 style=color:black;Server Globals/h2
 hr
 
 table
 ?rev
 repeat for each key tKey in $_SERVER
 outputRow tKey, $_SERVER[tKey]
 end repeat
 ?
 /table
 /body
 /html
 
 *--*
 *Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
 
 On Sat, Nov 22, 2014 at 11:32 PM, Phil Davis rev...@pdslabs.net wrote:
 
 
 On 11/22/14 10:23 AM, Warren Samples wrote:
 
 On 11/21/2014 01:56 PM, Phil Davis wrote:
 
 I'm glad it isn't just me:
 http://quality.runrev.com/show_bug.cgi?id=13983
 
 Phil Davis
 
 
 
 Phil,
 
 Your desktop utility shows a difference of about 8 to 10 times using your
 URLs and about 4 times using mine when run under 6.6.2. Opening the URLs in
 a browser continues to show a significant difference, but it's hard to
 quantify. Could you put a timer in the scripts themselves?
 
 
 New URLs:
 http://ctrainweb.com/test3.lc
 http://support.nweta.com/test3.lc
 
 Very interesting! The scripts run quite speedily on both servers.
 
 Also, it seems probable from how they display in the utility and the
 browser that the scripts are not quite identical, with the one at 
 http://ctrainweb.com/test2.lc not converting 'CR' to 'br' as does
 (apparently) the other one. However doubtful it might be that this has
 serious impact, it would be best ensure they are identical.
 
 
 Done. Here is the 'test3.lc' script:
 --- start ---
 ?lc
 put the long seconds into tStart
 put tStart into tStart2
 put LC version  the version  CR  SYSTEM VERSION   the
 systemVersion  CR  the time  CR after tOutput
 repeat with x = 1 to 3
put x  CR after tOutput
 end repeat
 put CR
 put the keys of $_SERVER into tList
 sort lines of tList
 repeat for each line tKey in tList
if $_SERVER[tKey] is an array
then put [  tKey  ]  CR after tOutput
else put tKey  =  $_SERVER[tKey]  CR after tOutput
 end repeat
 replace CR with BR in tOutput
 put the long seconds - tStart  secsBR
 put tOutput
 put the long seconds - tStart2  secsBR
 ?
 --- end ---
 
 Phil
 
 
 Warren
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 --
 Phil Davis
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list

Re: LC Server on DreamHost?

2014-11-23 Thread stephen barncard
On Sun, Nov 23, 2014 at 8:17 PM, Peter W A Wood peterwaw...@gmail.com
wrote:

 Some time ago, I ran some tests to measure the comparative startup times
 of PHP, LiveCode and HTML on On-rev. The two scripts are simple:

 Livecode
 htmlhead/headbody?php echo pI've started/p
 ?/body/html

 PHP
 htmlhead/headbody?php echo pI've started/p
 ?/body/html

 HTML
 htmlhead/headbodypI've started/p/body/html


I don't see Livecode being called here in any way. ???

And I don't use On-Rev.  I believe On-Rev alters Apache.

 My comment was regarding using the htaccess cgi methods on Dreamhost,
livecode vs PHP.

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-23 Thread Peter W A Wood
Stephen

 On 24 Nov 2014, at 13:28, stephen barncard stephenrevoluti...@barncard.com 
 wrote:
 
 On Sun, Nov 23, 2014 at 8:17 PM, Peter W A Wood peterwaw...@gmail.com
 wrote:
 
 Some time ago, I ran some tests to measure the comparative startup times
 of PHP, LiveCode and HTML on On-rev. The two scripts are simple:
 
Livecode
htmlhead/headbody?php echo pI've started/p
 ?/body/html
 
PHP
htmlhead/headbody?php echo pI've started/p
 ?/body/html
 
HTML
htmlhead/headbodypI've started/p/body/html
 
 
 I don't see Livecode being called here in any way. ???

Oops. I copy and pasted the wrong file. The LiveCode version was:

htmlhead/headbody?rev put pI've started/p ?/body/html


 And I don't use On-Rev.  I believe On-Rev alters Apache.

I don’t know. On-rev does not have mod_php installed so PHP runs as a cgi 
script. If I remember correctly, the last tests that I ran showed that LiveCode 
and PHP loaded in very similar times. These results suggest that LiveCode was 
running as a cgi on On-Rev.

 My comment was regarding using the htaccess cgi methods on Dreamhost,
 livecode vs PHP.

I shared the web pages/scripts as a means of finding out if the issue with 
LiveCode on Dreamhost is during the time LiveCode is loading. There are an easy 
way to roughly compare the load times of HTML, PHP and LiveCode on any host.

Regards

Peter
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Server on DreamHost?

2014-11-22 Thread Warren Samples

On 11/21/2014 01:56 PM, Phil Davis wrote:

the speed of loading
is TERRIBLE with the 7.0.1 LC Linux server. It takes 4.5 seconds for
LC to
'execute' a simple page every time. It's not about DNS and a PHP page on
the same site loads immediately by comparison.



Is this possibly related to other slowdowns in the desktop versions?


Unless there is a problem specific to the 64 bit engine it seems more 
likely related to some issue with the DreamHost setup. The script that 
Phil provides in his bug report shows similar nearly instantaneous 
execution times for 6.1.2, 6.5.1 and 7.0.0 served from the same (32 bit) 
machine at WebFaction:


http://warren.ws/newtest.lc (6.1.2)
http://warrensweb.us/newtest.lc (6.5.1)
http://asom.net/newtest.lc (7.0.0)

I do have a simple test script with a repeat loop and a list sort that 
takes @ 4 times as long to execute with 7.0.0 as it does with earlier 
versions, but Phil's script doesn't show anything like the same problem 
here as it does on his DreamHost server.


Warren

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-22 Thread Warren Samples

On 11/21/2014 01:56 PM, Phil Davis wrote:

I'm glad it isn't just me:
http://quality.runrev.com/show_bug.cgi?id=13983

Phil Davis



Phil,

Your desktop utility shows a difference of about 8 to 10 times using 
your URLs and about 4 times using mine when run under 6.6.2. Opening the 
URLs in a browser continues to show a significant difference, but it's 
hard to quantify. Could you put a timer in the scripts themselves? Also, 
it seems probable from how they display in the utility and the browser 
that the scripts are not quite identical, with the one at 
http://ctrainweb.com/test2.lc not converting 'CR' to 'br' as does 
(apparently) the other one. However doubtful it might be that this has 
serious impact, it would be best ensure they are identical.


Warren

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-22 Thread Richard Gaskin

Warren Samples wrote:


Unless there is a problem specific to the 64 bit engine it seems more
likely related to some issue with the DreamHost setup.


Agreed. A four-fold increase in script processing time seems about 
average for the tests I've seen comparing 6.7 and 7.0; much beyond that 
seems like something with the host.


Perhaps drop a note to DH Support to see if perhaps they've consolidated 
users or made any other changes that might increase load on the machine?




I do have a simple test script with a repeat loop and a list sort that
takes @ 4 times as long to execute with 7.0.0 as it does with earlier
versions, but Phil's script doesn't show anything like the same problem
here as it does on his DreamHost server.


Consistent with my tests - Malte started a benchmarking project, which 
has been moving along nicely in its new home in the forums.


The engine team is reviewing test scripts posted there, esp. those that 
can be run with LC Server.


The reason for focusing on Server right now is two-fold:

1. It isolates rendering speed from other processing; they have a couple 
different areas they're working on rendering speed, so tests that 
isolate other processing are especially helpful to them right now.


2. It's really easy for them to run diagnostics from the command line.

Here's my contribution to Malte's testing project:
http://forums.livecode.com/viewtopic.php?f=67t=22072start=15#p113997

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-22 Thread Phil Davis


On 11/22/14 10:23 AM, Warren Samples wrote:

On 11/21/2014 01:56 PM, Phil Davis wrote:

I'm glad it isn't just me:
http://quality.runrev.com/show_bug.cgi?id=13983

Phil Davis



Phil,

Your desktop utility shows a difference of about 8 to 10 times using 
your URLs and about 4 times using mine when run under 6.6.2. Opening 
the URLs in a browser continues to show a significant difference, but 
it's hard to quantify. Could you put a timer in the scripts themselves? 


New URLs:
http://ctrainweb.com/test3.lc
http://support.nweta.com/test3.lc

Very interesting! The scripts run quite speedily on both servers.

Also, it seems probable from how they display in the utility and the 
browser that the scripts are not quite identical, with the one at 
http://ctrainweb.com/test2.lc not converting 'CR' to 'br' as does 
(apparently) the other one. However doubtful it might be that this has 
serious impact, it would be best ensure they are identical.


Done. Here is the 'test3.lc' script:
--- start ---
?lc
put the long seconds into tStart
put tStart into tStart2
put LC version  the version  CR  SYSTEM VERSION   the 
systemVersion  CR  the time  CR after tOutput

repeat with x = 1 to 3
put x  CR after tOutput
end repeat
put CR
put the keys of $_SERVER into tList
sort lines of tList
repeat for each line tKey in tList
if $_SERVER[tKey] is an array
then put [  tKey  ]  CR after tOutput
else put tKey  =  $_SERVER[tKey]  CR after tOutput
end repeat
replace CR with BR in tOutput
put the long seconds - tStart  secsBR
put tOutput
put the long seconds - tStart2  secsBR
?
--- end ---

Phil



Warren

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-21 Thread Devin Asay
Thanks, Scott and Richard, for working this out. Can these notes be included in 
the READ ME file/installation instructions for LC Server/Linux?

Devin


On Nov 20, 2014, at 6:48 PM, Scott Rossi sc...@tactilemedia.com wrote:

 Thanks to the patient generosity of our fearless Community Leader Richard
 Gaskin, between us we were able to determine the combination of .htaccess
 files needed to get LCserver working on DreamHost under Ubuntu (at least
 for my situation).  As a few others have noted, the most basic setup is
 more or less like what Stephen Barncard and Andre Garcia came up with some
 time ago:
 
 Domain [folder]
.htaccess
cgi-bin [folder]
 .htaccess
 drivers [folder]
 externals [folder]
 livecode-server
 
 Domain root .htaccess file contents:
 AddHandler livecode-script .lc .irev
 Action livecode-script /cgi-bin/livecode-server
 
 
 cgi-bin folder .htaccess file contents:
 Options ExecCGI
 SetHandler cgi-script
 
 (³livecode_server² can be replaced with ³livecode-community-server²)
 
 
 
 
 After I received some conflicting information from DreamHost tech support,
 Richard was able to determine that the second htaccess file in the cgi-bin
 folder is required to make things work (this is probably what most others
 already have in their domains).
 
 I don¹t know what¹s needed if anything for PHP processing, but in my case
 some root level directives (mentioned below) that used to work fine under
 the old servers break certain pages of my site on the current servers, so
 some more experimenting may be needed to get that working.  But at least
 LCserver is running again.
 
 Many thanks Richard!
 
 Regards,
 
 Scott Rossi
 Creative Director
 Tactile Media, UX/UI Design
 
 
 
 
 On 11/18/14, 10:50 AM, Richard Gaskin ambassa...@fourthworld.com wrote:
 
 stephen barncard wrote:
 
 With all due respect - the problem here is getting livecode and php to
 execute together in the same domain space (where we might want some
 Wordpress pages AND livecode. This is my problem as well.
 
 Thanks.  Somehow I missed the reference to PHP requirements in Scott's
 message.
 
 The htaccess magic words that used to allow this with PHP 5.2 don't
 work any more...
 
 IIRC the notice I got from DH said they've upgraded to PHP 5.3.  I don't
 spend enough time with PHP to know what differences may affect shared
 hosting.
 
 Here's the link they provided for PHP assistance in their upgrade notice
 from Nov 5:
 http://wiki.dreamhost.com/PHP.ini#Upgrading_your_site_.28if_you.27re_movi
 ng_to_Ubuntu_from_Debian_servers.29
 
 
 - some syntax has changed either with PHP, Apache, or
 the use of Ubuntu vs Debian.
 
 Options +ExecCGI FollowSymLinks
 AddHandler livecode-script .lc .irev
 AddHandler php-script .php .htm .html
 DirectoryIndex index.irev index.lc index.php index.html
 Action livecode-script
 /cgi-bin/livecode-server/livecode-community-server
 
 
 Is it necessary to declare special handling for PHP when declaring
 special handling for other file types?  I'd thought PHP support was a
 given on DH's shared hosting accounts, handled in Apache2.config at the
 server level.
 
 To double-check what I had originally understood from Scott's post
 (looking at LC alone without PHP), I put a fresh install of LC Server v7
 on a new DH host and after setting permissions it was up and running
 with just two lines in .htaccess, the AddHandler and the Action defining
 that handler.
 
 Given the prevalence of PHP, I doubt DH's requirements for the upgrade
 involve much work - they'd be overloaded with support requests if they
 didn't give some good thought to backward compatibility with people's
 existing configs.
 
 Normally there's no conflict between any combination of CGIs mentioned
 in .htaccess as long as they don't mix file extensions.
 
 So I'll bet that once we pin this down, we'll have an a ha! moment in
 which the solution is simpler than what it may seem right now.
 
 -- 
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

Devin Asay
Office of Digital Humanities
Brigham Young University


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:

Re: LC Server on DreamHost?

2014-11-21 Thread stephen barncard
On Tue, Nov 18, 2014 at 10:50 AM, Richard Gaskin ambassa...@fourthworld.com
 wrote:

 Is it necessary to declare special handling for PHP when declaring special
 handling for other file types?  I'd thought PHP support was a given on DH's
 shared hosting accounts, handled in Apache2.config at the server level.


I think that relationship had changed with the Ubuntu upgrade. For some
reason, with the previous setup - when I did the addhandlers for just the
livecode, the php wouldn't work any more on the same domain. I got the
impression that a local htaccess file would over ride the global php
setting. Also the previous setup seemed to be sensitive to the 'fast cgi'
setting. I would still love to have only one installation of LIvecode for
all my domains but apparently impossible using the htaccess methods. So I
had to do the 'fix' a lot of times.

My sites are working now but there is still an issue - the speed of loading
is TERRIBLE with the 7.0.1 LC Linux server. It takes 4.5 seconds for LC to
'execute' a simple page every time. It's not about DNS and a PHP page on
the same site loads immediately by comparison.

see my test page that compares the two  a ref=
http://media.barncard.com/php-lc-test.html;HERE/a

Is this possibly related to other slowdowns in the desktop versions?

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-21 Thread Phil Davis


On 11/21/14 10:05 AM, stephen barncard wrote:

On Tue, Nov 18, 2014 at 10:50 AM, Richard Gaskin ambassa...@fourthworld.com

wrote:
Is it necessary to declare special handling for PHP when declaring special
handling for other file types?  I'd thought PHP support was a given on DH's
shared hosting accounts, handled in Apache2.config at the server level.


I think that relationship had changed with the Ubuntu upgrade. For some
reason, with the previous setup - when I did the addhandlers for just the
livecode, the php wouldn't work any more on the same domain. I got the
impression that a local htaccess file would over ride the global php
setting. Also the previous setup seemed to be sensitive to the 'fast cgi'
setting. I would still love to have only one installation of LIvecode for
all my domains but apparently impossible using the htaccess methods. So I
had to do the 'fix' a lot of times.

My sites are working now but there is still an issue - the speed of loading
is TERRIBLE with the 7.0.1 LC Linux server. It takes 4.5 seconds for LC to
'execute' a simple page every time. It's not about DNS and a PHP page on
the same site loads immediately by comparison.


I'm glad it isn't just me:
http://quality.runrev.com/show_bug.cgi?id=13983

Phil Davis



see my test page that compares the two  a ref=
http://media.barncard.com/php-lc-test.html;HERE/a

Is this possibly related to other slowdowns in the desktop versions?

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



--
Phil Davis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-20 Thread Scott Rossi
Thanks to the patient generosity of our fearless Community Leader Richard
Gaskin, between us we were able to determine the combination of .htaccess
files needed to get LCserver working on DreamHost under Ubuntu (at least
for my situation).  As a few others have noted, the most basic setup is
more or less like what Stephen Barncard and Andre Garcia came up with some
time ago:

Domain [folder]
.htaccess
cgi-bin [folder]
 .htaccess
 drivers [folder]
 externals [folder]
 livecode-server

Domain root .htaccess file contents:
AddHandler livecode-script .lc .irev
Action livecode-script /cgi-bin/livecode-server


cgi-bin folder .htaccess file contents:
Options ExecCGI
SetHandler cgi-script

(³livecode_server² can be replaced with ³livecode-community-server²)


‹‹‹

After I received some conflicting information from DreamHost tech support,
Richard was able to determine that the second htaccess file in the cgi-bin
folder is required to make things work (this is probably what most others
already have in their domains).

I don¹t know what¹s needed if anything for PHP processing, but in my case
some root level directives (mentioned below) that used to work fine under
the old servers break certain pages of my site on the current servers, so
some more experimenting may be needed to get that working.  But at least
LCserver is running again.

Many thanks Richard!

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 11/18/14, 10:50 AM, Richard Gaskin ambassa...@fourthworld.com wrote:

stephen barncard wrote:

  With all due respect - the problem here is getting livecode and php to
  execute together in the same domain space (where we might want some
  Wordpress pages AND livecode. This is my problem as well.

Thanks.  Somehow I missed the reference to PHP requirements in Scott's
message.

  The htaccess magic words that used to allow this with PHP 5.2 don't
  work any more...

IIRC the notice I got from DH said they've upgraded to PHP 5.3.  I don't
spend enough time with PHP to know what differences may affect shared
hosting.

Here's the link they provided for PHP assistance in their upgrade notice
from Nov 5:
http://wiki.dreamhost.com/PHP.ini#Upgrading_your_site_.28if_you.27re_movi
ng_to_Ubuntu_from_Debian_servers.29


  - some syntax has changed either with PHP, Apache, or
  the use of Ubuntu vs Debian.
 
  Options +ExecCGI FollowSymLinks
  AddHandler livecode-script .lc .irev
  AddHandler php-script .php .htm .html
  DirectoryIndex index.irev index.lc index.php index.html
  Action livecode-script
/cgi-bin/livecode-server/livecode-community-server
 

Is it necessary to declare special handling for PHP when declaring
special handling for other file types?  I'd thought PHP support was a
given on DH's shared hosting accounts, handled in Apache2.config at the
server level.

To double-check what I had originally understood from Scott's post
(looking at LC alone without PHP), I put a fresh install of LC Server v7
on a new DH host and after setting permissions it was up and running
with just two lines in .htaccess, the AddHandler and the Action defining
that handler.

Given the prevalence of PHP, I doubt DH's requirements for the upgrade
involve much work - they'd be overloaded with support requests if they
didn't give some good thought to backward compatibility with people's
existing configs.

Normally there's no conflict between any combination of CGIs mentioned
in .htaccess as long as they don't mix file extensions.

So I'll bet that once we pin this down, we'll have an a ha! moment in
which the solution is simpler than what it may seem right now.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-18 Thread Richard Gaskin

stephen barncard wrote:

 With all due respect - the problem here is getting livecode and php to
 execute together in the same domain space (where we might want some
 Wordpress pages AND livecode. This is my problem as well.

Thanks.  Somehow I missed the reference to PHP requirements in Scott's 
message.


 The htaccess magic words that used to allow this with PHP 5.2 don't
 work any more...

IIRC the notice I got from DH said they've upgraded to PHP 5.3.  I don't 
spend enough time with PHP to know what differences may affect shared 
hosting.


Here's the link they provided for PHP assistance in their upgrade notice 
from Nov 5:

http://wiki.dreamhost.com/PHP.ini#Upgrading_your_site_.28if_you.27re_moving_to_Ubuntu_from_Debian_servers.29


 - some syntax has changed either with PHP, Apache, or
 the use of Ubuntu vs Debian.

 Options +ExecCGI FollowSymLinks
 AddHandler livecode-script .lc .irev
 AddHandler php-script .php .htm .html
 DirectoryIndex index.irev index.lc index.php index.html
 Action livecode-script /cgi-bin/livecode-server/livecode-community-server


Is it necessary to declare special handling for PHP when declaring 
special handling for other file types?  I'd thought PHP support was a 
given on DH's shared hosting accounts, handled in Apache2.config at the 
server level.


To double-check what I had originally understood from Scott's post 
(looking at LC alone without PHP), I put a fresh install of LC Server v7 
on a new DH host and after setting permissions it was up and running 
with just two lines in .htaccess, the AddHandler and the Action defining 
that handler.


Given the prevalence of PHP, I doubt DH's requirements for the upgrade 
involve much work - they'd be overloaded with support requests if they 
didn't give some good thought to backward compatibility with people's 
existing configs.


Normally there's no conflict between any combination of CGIs mentioned 
in .htaccess as long as they don't mix file extensions.


So I'll bet that once we pin this down, we'll have an a ha! moment in 
which the solution is simpler than what it may seem right now.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


LC Server on DreamHost?

2014-11-17 Thread Scott Rossi
Hi All:

I know there was some discussion recently about getting LiveCode server
working again on DreamHost now that they¹ve updated to Ubuntu.  Can anyone
shed some light on what¹s needed here?  I believe Richard Gaskin said
something about using v7 64bit but I only see one download option in my LC
account that appears to be LC Server 6.6.1.

Thanks in advance for any explanations or pointers.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-17 Thread Richard Gaskin

Scott Rossi wrote:
 I know there was some discussion recently about getting LiveCode
 server working again on DreamHost now that they¹ve updated to
 Ubuntu.  Can anyone shed some light on what¹s needed here?  I
 believe Richard Gaskin said something about using v7 64bit but
 I only see one download option in my LC account that appears
 to be LC Server 6.6.1.

The Commercial-licensed version of LC Server available through your 
account options should reflect all versions you're currently licensed 
for.  If you have a v7 Commercial license but don't see the v7 Server 
there, drop a note to Support to find out why (it shows in my account).


That said, unless you're distributing proprietary server apps you 
probably don't need the Commercial Edition of LiveCode Server.  The 
Community LiveCode Server can be used on your own server without the 
need to share server-side code, since you're not distributing the server 
software itself when users browse your site.


The Community Edition of Server and others is available here:
http://downloads.livecode.com/livecode/

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Server on DreamHost?

2014-11-17 Thread Scott Rossi
Thanks Richard.  I only see one server download option listed under my
account, but obviously I can get Community server from the downloads page.

What about server configuration?  With the previous server setup at
DreamHost, one needed to have several, what are they called, directives
(?) in an htaccess file to make the server know how to the deal with .rev
and .lc files.  Are these still needed with the new Ubuntu servers?

Thanks  Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 11/17/14, 11:39 AM, Richard Gaskin ambassa...@fourthworld.com wrote:

Scott Rossi wrote:
  I know there was some discussion recently about getting LiveCode
  server working again on DreamHost now that they¹ve updated to
  Ubuntu.  Can anyone shed some light on what¹s needed here?  I
  believe Richard Gaskin said something about using v7 64bit but
  I only see one download option in my LC account that appears
  to be LC Server 6.6.1.

The Commercial-licensed version of LC Server available through your
account options should reflect all versions you're currently licensed
for.  If you have a v7 Commercial license but don't see the v7 Server
there, drop a note to Support to find out why (it shows in my account).

That said, unless you're distributing proprietary server apps you
probably don't need the Commercial Edition of LiveCode Server.  The
Community LiveCode Server can be used on your own server without the
need to share server-side code, since you're not distributing the server
software itself when users browse your site.

The Community Edition of Server and others is available here:
http://downloads.livecode.com/livecode/

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Server on DreamHost?

2014-11-17 Thread Richard Gaskin

Scott Rossi wrote:

 What about server configuration?  With the previous server setup
 at DreamHost, one needed to have several, what are they called,
 directives (?) in an htaccess file to make the server know how to
 the deal with .rev and .lc files.  Are these still needed with the
 new Ubuntu servers?

Pretty much any shared hosting setup will required assigning special 
handling for certain file types via .htaccess.


There was a recent discussion of this in the forums which may be useful:
http://forums.livecode.com/viewtopic.php?f=15t=22084#p113546

Since you'd already had things set up and working well, unless you were 
on a very old server, chances are you won't need to do anything beyond 
just updating the engine and updating the Action line of your .htaccess 
to point to it.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-17 Thread Scott Rossi
Thanks for the pointer.

Unfortunately, I¹m still having no luck getting LC server to run.  The
test page provided with the RunRev lesson doesn¹t render with the server
calculated values, so something¹s not working.

Is this maybe a permissions thing?  I recall having to double-check
permissions of certain files/folders with the server folder once uploaded.

I¹ll ask again: does anybody here have LC server set up and running on
DreamHost, with a configuration that they could pass along?

Thanks in advance.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 11/17/14, 12:45 PM, Richard Gaskin ambassa...@fourthworld.com wrote:

Scott Rossi wrote:

  What about server configuration?  With the previous server setup
  at DreamHost, one needed to have several, what are they called,
  directives (?) in an htaccess file to make the server know how to
  the deal with .rev and .lc files.  Are these still needed with the
  new Ubuntu servers?

Pretty much any shared hosting setup will required assigning special
handling for certain file types via .htaccess.

There was a recent discussion of this in the forums which may be useful:
http://forums.livecode.com/viewtopic.php?f=15t=22084#p113546

Since you'd already had things set up and working well, unless you were
on a very old server, chances are you won't need to do anything beyond
just updating the engine and updating the Action line of your .htaccess
to point to it.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: LC Server on DreamHost?

2014-11-17 Thread Richard Gaskin

Scott Rossi wrote:
 Unfortunately, I¹m still having no luck getting LC server to run.
 The test page provided with the RunRev lesson doesn¹t render with
 the server calculated values, so something¹s not working.

 Is this maybe a permissions thing?  I recall having to double-check
 permissions of certain files/folders with the server folder once
 uploaded.

 I¹ll ask again: does anybody here have LC server set up and running on
 DreamHost, with a configuration that they could pass along?

:: raises hand ::

:)

Every computer problem can be solved by determining the differences 
between the working and non-working states.


If the only thing you've changed is the engine file, check that the 
permissions for that are executable (chmod 755 filename).


Also, make sure your .htaccess file has been updated to point to the new 
executable.


If that doesn't do it, we're then in Whiskey Tango Foxtrot land, since 
those are the only two things *you've* changed, so we need to look at 
what may have changed in the system config.


You could try running the Server app by passing it the name of your .lc 
file from the command line to make sure the app runs and that it's able 
to return values:


   ./livecode-server  somefile.lc

If you encounter any issues they should show up in your terminal.

If none of that helps, let us know and we'll diagnose further.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Server on DreamHost?

2014-11-17 Thread Scott Rossi
Thanks for your continued help :-)

I’ve been in WTF land for like a day now.  I tried configuring using the
basic .htaccess that is supplied by RunRev in their lesson and the
original .htaccess that I was using before all these problems.  If I use
the old configuration, it prevents the operation of a custom forum on my
site.  DreamHost’s Ubuntu update really messed things up for me.

I’ve never used a terminal with the server ― not sure how to do that.
Dammit Jim, I’m a designer, not a server specialist!

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 11/17/14, 8:27 PM, Richard Gaskin ambassa...@fourthworld.com wrote:

Scott Rossi wrote:
  Unfortunately, I¹m still having no luck getting LC server to run.
  The test page provided with the RunRev lesson doesn¹t render with
  the server calculated values, so something¹s not working.
 
  Is this maybe a permissions thing?  I recall having to double-check
  permissions of certain files/folders with the server folder once
  uploaded.
 
  I¹ll ask again: does anybody here have LC server set up and running on
  DreamHost, with a configuration that they could pass along?

:: raises hand ::

:)

Every computer problem can be solved by determining the differences
between the working and non-working states.

If the only thing you've changed is the engine file, check that the
permissions for that are executable (chmod 755 filename).

Also, make sure your .htaccess file has been updated to point to the new
executable.

If that doesn't do it, we're then in Whiskey Tango Foxtrot land, since
those are the only two things *you've* changed, so we need to look at
what may have changed in the system config.

You could try running the Server app by passing it the name of your .lc
file from the command line to make sure the app runs and that it's able
to return values:

./livecode-server  somefile.lc

If you encounter any issues they should show up in your terminal.

If none of that helps, let us know and we'll diagnose further.

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for Desktop, Mobile, and Web
  
  ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Server on DreamHost?

2014-11-17 Thread Richard Gaskin

Scott Rossi wrote:
 I’ve never used a terminal with the server ― not sure how to do that.

Log into yourDH control panel and under Accounts make sure your 
account has shell access (SSH) turned on.


IMNSHO no web hosting account without shell access is worth the trouble 
of trying to use, because sooner or later direct access to the machine 
will be useful if not necessary for diagnosing issues.


Once you have that set up, time to take your first foray into serious 
Linux geekdom:


  ssh username@machine

e.g.:

  ssh myaccountn...@somedomain.com

You'll be prompted for your password (this time - down the road you'll 
get tired of my annoying reminders to set up shared keys so you won't 
need a password any more, but we'll leave that for later), and after 
your password is accepted it's like you're at the machine, able to run 
any shell commands you like.


When you first log in you'll be in your account's home folder, much like 
on your Mac.  Within that folder you'll see your domain's web root - on 
DH this is usually the domain name.


To change directories use cd:

cd somedomain.com/cgi-bin

From there you can use chmod, or run the server executable using the 
example I gave before.



WARNING: Extended use of bash may lead to addiction.  Warning signs 
include logging into servers without any actual reason just because you 
can, experimenting with every option to rsync, and being able to make a 
tar backup of your site without having to consult man.  If you begin to 
experience any of these symptoms, contact your local Linux user group 
immediately.


:)

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LC Server on DreamHost?

2014-11-17 Thread stephen barncard
On Mon, Nov 17, 2014 at 9:14 PM, Richard Gaskin ambassa...@fourthworld.com
wrote:

 To change directories use cd:

 cd somedomain.com/cgi-bin

 From there you can use chmod, or run the server executable using the
 example I gave before.


With all due respect - the problem here is getting livecode and php to
execute together in the same domain space (where we might want some
Wordpress pages AND livecode. This is my problem as well. The htaccess
magic words that used to allow this with PHP 5.2 don't work any more - some
syntax has changed either with PHP, Apache, or the use of Ubuntu vs Debian.

Options +ExecCGI FollowSymLinks
AddHandler livecode-script .lc .irev
AddHandler php-script .php .htm .html
DirectoryIndex index.irev index.lc index.php index.html
Action livecode-script /cgi-bin/livecode-server/livecode-community-server

some 'help' pages mention some other syntax for htaccess in the new
versions of php:

AddHandler application/x-httpd-php53 .php .htm .html


--- but I'm without a paddle here too -  all my combo Livecode/php sites
are down Last time Andre saved me


also - Scott - the permissions on ALL the LC  server files matter, and they
get scrambled when moved, either directly or by zip.

here's my chart of permissions that worked before:

http://barncard.com/downloads/LIVECODE_SERVER_SETUP.pdf

*--*
*Stephen Barncard - San Francisco Ca. USA - Deeds Not Words*
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting up LC Server on Dreamhost

2013-07-24 Thread Peter Bogdanoff
Thanks, Stephen.

Following your example, I changed the permissions and then moved the .htaccess 
file to the right directory.

Now I see the HTML source displayed in the browser. Is the Dreamhost 
configuration set up by default to use .htaccess files? Or do I need to contact 
their tech support?

I see from the Apache website that .htaccess files are not ideal; better to 
change the server main configuration file. Can I do that with Dreamhost?

We moved to a dedicated server because of performance issues--a shared server 
on GoDaddy was too slow serving simultaneous audio files.

Peter

On Jul 23, 2013, at 5:56 PM, stephen barncard wrote:

 a dedicated server is not required - the .htaccess method works with shared
 servers at DH.
 
 a lot of options are available using htaccess.
 
 
 On Tue, Jul 23, 2013 at 5:44 PM, stephen barncard 
 stephenrevoluti...@barncard.com wrote:
 
 
 On Tue, Jul 23, 2013 at 3:34 PM, Peter Bogdanoff bogdan...@me.com wrote:
 
 Can anyone give me give me pointers or send me somewhere...?
 
 
 you probably need to set the permissions.
 
 http://fulton.barncard.com/downloads/LIVECODE_SERVER_SETUP.pdf
 
 
 --
 
 
 
 Stephen Barncard
 San Francisco Ca. USA
 
 more about sqb  http://www.google.com/profiles/sbarncar
 
 
 
 
 -- 
 
 
 
 Stephen Barncard
 San Francisco Ca. USA
 
 more about sqb  http://www.google.com/profiles/sbarncar
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting up LC Server on Dreamhost

2013-07-24 Thread stephen barncard
Andre and I have only been able to get LCS to work at each domain level,
not the server level.
There are TWO .htaccess files, btw.  Email me directly for my successful
versions.

 The location and installation of Apache is somewhat mysterious and appears
to be virtualized or changed in some way by DH, inaccessible to us. Perhaps
you could enlist Dreamhost support to help you make the changes you need,
and even get LC support involved. This would help you and also help
evangelize the platform, as it could be offered in the same way that MySQL,
PHP, etc is offered currently at Dreamhost.

I would love to see a way to make one installation of LC Server work on all
my sites, but I'm also happy with the performance of the product used in
this (htaccess) way.




On Wed, Jul 24, 2013 at 9:29 AM, Peter Bogdanoff bogdan...@me.com wrote:

 Thanks, Stephen.

 Following your example, I changed the permissions and then moved the
 .htaccess file to the right directory.

 Now I see the HTML source displayed in the browser. Is the Dreamhost
 configuration set up by default to use .htaccess files? Or do I need to
 contact their tech support?

 I see from the Apache website that .htaccess files are not ideal; better
 to change the server main configuration file. Can I do that with Dreamhost?

 We moved to a dedicated server because of performance issues--a shared
 server on GoDaddy was too slow serving simultaneous audio files.

 Peter

 On Jul 23, 2013, at 5:56 PM, stephen barncard wrote:

  a dedicated server is not required - the .htaccess method works with
 shared
  servers at DH.
 
  a lot of options are available using htaccess.
 
 
  On Tue, Jul 23, 2013 at 5:44 PM, stephen barncard 
  stephenrevoluti...@barncard.com wrote:
 
 
  On Tue, Jul 23, 2013 at 3:34 PM, Peter Bogdanoff bogdan...@me.com
 wrote:
 
  Can anyone give me give me pointers or send me somewhere...?
 
 
  you probably need to set the permissions.
 
  http://fulton.barncard.com/downloads/LIVECODE_SERVER_SETUP.pdf
 
 
  --
 
 
 
  Stephen Barncard
  San Francisco Ca. USA
 
  more about sqb  http://www.google.com/profiles/sbarncar
 
 
 
 
  --
 
 
 
  Stephen Barncard
  San Francisco Ca. USA
 
  more about sqb  http://www.google.com/profiles/sbarncar
  ___
  use-livecode mailing list
  use-livecode@lists.runrev.com
  Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
  http://lists.runrev.com/mailman/listinfo/use-livecode


 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your
 subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting up LC Server on Dreamhost

2013-07-24 Thread Richard Gaskin

Peter Bogdanoff wrote:

 I see from the Apache website that .htaccess files are not ideal;
 better to change the server main configuration file.

Do you recall what their complaints were?  URL?

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting up LC Server on Dreamhost

2013-07-24 Thread Peter Bogdanoff
You should avoid using .htaccess files completely if you have access to httpd 
main server config file. Using .htaccess files slows down your Apache http 
server. Any directive that you can include in a .htaccess file is better set in 
a Directory block, as it will have the same effect with better performance.

http://httpd.apache.org/docs/current/howto/htaccess.html



On Jul 24, 2013, at 11:29 AM, Richard Gaskin wrote:

 Peter Bogdanoff wrote:
 
  I see from the Apache website that .htaccess files are not ideal;
  better to change the server main configuration file.
 
 Do you recall what their complaints were?  URL?
 
 --
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting up LC Server on Dreamhost

2013-07-24 Thread Richard Gaskin

Peter Bogdanoff wrote:

 You should avoid using .htaccess files completely if you have access
 to httpd main server config file. Using .htaccess files slows down
 your Apache http server. Any directive that you can include in a
 .htaccess file is better set in a Directory block, as it will have
 the same effect with better performance.

 http://httpd.apache.org/docs/current/howto/htaccess.html

Makes sense.  Thanks for the link.

I'll bet the performance difference is pretty low, though, probably not 
even noticeable until you reach a traffic level where moving to a 
dedicated server makes sense for other reasons.


I haven't used a dedicated server at DH myself, but I've used the 
instructions provided in the LiveCode package to set up my own servers 
here and they've worked out well.


What issues did you run into modding the Apache config file?

--
 Richard Gaskin
 Fourth World
 LiveCode training and consulting: http://www.fourthworld.com
 Webzine for LiveCode developers: http://www.LiveCodeJournal.com
 Follow me on Twitter:  http://twitter.com/FourthWorldSys


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Setting up LC Server on Dreamhost

2013-07-23 Thread Peter Bogdanoff
Hi,

Having seen the recommendations from the list, I now have a dedicated server 
with Dreamhost that I've been using to serve audio files.

Now, I'm going a step further and want to start working with LiveCode server. 
However, I've never configured a server and I'm finding the RunRev online 
lesson/documentation too sparse for my understanding. 

I've uploaded the livecode server folder into a cgi-bin that I created. I get 
stuck at the issue of the Apache configuration file/htaccess. Since I seem 
unable to modify the Apache config file, I've made a .htaccess file. Then, when 
I try to display a test.lc file in the browser I get an file not found and 
internal configuration error. I'm not at all sure about what I'm doing.

Can anyone give me give me pointers or send me somewhere...?

Peter Bogdanoff
UCLA
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting up LC Server on Dreamhost

2013-07-23 Thread stephen barncard
On Tue, Jul 23, 2013 at 3:34 PM, Peter Bogdanoff bogdan...@me.com wrote:

 Can anyone give me give me pointers or send me somewhere...?


you probably need to set the permissions.

http://fulton.barncard.com/downloads/LIVECODE_SERVER_SETUP.pdf


-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Setting up LC Server on Dreamhost

2013-07-23 Thread stephen barncard
a dedicated server is not required - the .htaccess method works with shared
servers at DH.

a lot of options are available using htaccess.


On Tue, Jul 23, 2013 at 5:44 PM, stephen barncard 
stephenrevoluti...@barncard.com wrote:


 On Tue, Jul 23, 2013 at 3:34 PM, Peter Bogdanoff bogdan...@me.com wrote:

 Can anyone give me give me pointers or send me somewhere...?


 you probably need to set the permissions.

 http://fulton.barncard.com/downloads/LIVECODE_SERVER_SETUP.pdf


 --



 Stephen Barncard
 San Francisco Ca. USA

 more about sqb  http://www.google.com/profiles/sbarncar




-- 



Stephen Barncard
San Francisco Ca. USA

more about sqb  http://www.google.com/profiles/sbarncar
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode