Hmmm still no luck... thought i'd maybe start afresh with an untouched httpd.conf file again and compared with a linux install described on
howtoforge, as it looked pretty similar to my attempt (see the code at the end of the linked page).
Apache 2.4 on Catalina. As per the suggestion in the
LiveCode lesson, i've put the server files in my home directory and this is referenced in the httpd.conf file (the directory for the server is /Users/stam/LCS/)
In the httpd.conf file, I uncommented the lines
Code: Select all
<IfModule !mpm_prefork_module>
LoadModule cgid_module libexec/apache2/mod_cgid.so
</IfModule>
<IfModule mpm_prefork_module>
LoadModule cgi_module libexec/apache2/mod_cgi.so
</IfModule>
and
Code: Select all
LoadModule actions_module libexec/apache2/mod_actions.so
The line
Code: Select all
LoadModule alias_module libexec/apache2/mod_alias.so
was already uncommented.
This should, if i've understood correctly, load the modules stated as required in the lesson.
Also according to the lesson, as i'm running apache 2.4, i've replaced the example code
with
I've edited the httpd.conf file:
Code: Select all
DocumentRoot "/Library/WebServer/Documents"
<Directory "/Library/WebServer/Documents">
Options Indexes FollowSymLinks Multiviews
MultiviewsMatch Any
AllowOverride None
Require all granted
AddHandler livecode-script .lc
Action livecode-script /livecode-cgi/livecode-server
</Directory>
<Directory /Users/stam/LCS>
Options ExecCGI
Require all granted
</Directory>
ScriptAlias /livecode-cgi/ /Users/stam/LCS/
the only difference from the lesson i've included is the
FollowSymLinks and
MultiviewsMatch Any as these were already in the httpd.conf file and also in the howtoforge example. The howtoforge also includes trailing slashes for the directories in ScriptAlias, which i've also included.
With these settings, the apache test and my own test html file are served up correctly.
(ie
http://localhost and
http://localhost/test.html respectively)
when trying to launch
http://localhost/test.lc, it now fails with a new error:
Code: Select all
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at stam to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
I have tried ghettocottage's suggestions but they didn't make a difference, and neither did Elanor's suggestions...
I'll keep at it (even though i should be working

) but would be grateful for more suggestions... does anyone have this running on Catalina in apache?