Server problem

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Server problem

Post by DevBoyLars » Wed Dec 03, 2014 4:24 pm

Hello,
I try to install the LiveCode-Server CGI-Extension. It works as command-line (so the system-configuration is right for LC-Server), but not for Apache.

I'm using Ubunto 14.x with Plesk and installed the extension first in /home/lcs and after this didn't worked and I read some hints for LC Server & Ubunteu in the comment-section of the LC-Server-Support-Side (http://lessons.runrev.com/s/lessons/m/4 ... th-Apache-) I installed the extension in /usr/lib/cgi-bin

I I change the settings in the Apache-config (/etc/apache2/plesk.conf.d):

Code: Select all

<Directory /var/www/>
[...]
AddHandler livecode-script .lc
Action livecode-script /livecode-cgi/livecode-server
</Directory>

<Directory "/usr/lib/cgi-bin/">
   Options ExecCGI
   Order allow,deny
   Allow from all
</Directory>

ScriptAlias /livecode-cgi/livecode-server "/usr/lib/cgi-bin/livecode-server"
But it ends with an error like "command livecode-server not in docroot" (<< error-log).

Can anyone help to get LV-Server run on my server?

I also tried the .htaccess way, which ends with the same error :(

sefrojones
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 447
Joined: Mon Jan 23, 2012 12:46 pm

Re: Server problem

Post by sefrojones » Wed Dec 03, 2014 5:29 pm

I'm not sure about plesk, but I followed this guide last night, and was able to get it all working properly on a Dgital Ocean Ubuntu 14.04 droplet.

http://activethought.net/setting-liveco ... /#more-165

also, this *may* belong in the platform specific> CGIs and the Server section of the forums.

DevBoyLars
Posts: 216
Joined: Wed Feb 27, 2013 9:04 pm

Re: Server problem

Post by DevBoyLars » Wed Dec 03, 2014 5:52 pm

I've got it *__*

If you're using Plesk you can't install any CGI extension global. You've to install it per vhost and .htaccess.

The important thing is, that you've to chown to vhost-client-name AND "psaclt" as group.

So if the vhost-user was created as "mrcode" in Plesk you need to

Code: Select all

chown mrcode.psaclt livecode-server
and it works great :D I'm happy :)

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”