Setting up LiveCode server with Apache on MacOS Ventura

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
stam
Posts: 2600
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Setting up LiveCode server with Apache on MacOS Ventura

Post by stam » Wed Nov 16, 2022 4:52 am

Hi all,

I got Apache running smoothly on my MBA for both machine-wide and user websites using this guide, which I highly recommend: https://discussions.apple.com/docs/DOC-250004361

I revisited the lesson on running server here now that I'm on MacOS Ventura: https://runrev.screenstepslive.com/s/19 ... ith-apache

I just can't get this to work.
The httpd.conf and httpd-userdir.conf files are modified as recommended by this lesson (to be fair it's fairly similar to the guide above, with just 2 more lines uncommented). I set the permissions for both the directory containing server and the server executable itself as recommended in the lesson (chmod 755).

As recommended in the lesson, my user.conf file is

Code: Select all

<Directory "/Users/stam/Sites/">
   	 Options Indexes MultiViews
   	 AllowOverride None
   	 Require all granted
   	 AddHandler livecode-script .lc
    	Action livecode-script /livecode-cgi/livecode-server
</Directory>

<Directory "/Users/stam/LiveCodeServer">
      Options ExecCGI
      AllowOverride None 
      Require all granted
</Directory>

ScriptAlias /livecode-cgi/ /Users/stam/LiveCodeServer/
As a test there is a simple html file in the machine-wide Webserver documents and /Sites folder that are slightly different so I can check both are working, as well as an extra test.html file. I also included an lc script I found on the web and named it test.lc

The following URLs give:
http://localhost - It Works!
http://localhost/~stam - My user site works!
http://localhost/~stam/test.html - The test html file works

however:
http://localhost/~stam/test.lc - 403 Forbidden - You don't have permission to access this resource.
Permissions seem to be OK and I can't figure out why this isn't working...

Any suggestions?
Many thanks
Stam

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”