Setting up LiveCode server with Apache on MacOS Ventura
Posted: 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
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
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/
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