Apache Setup?
Posted: Thu Jan 14, 2016 2:56 pm
I am using a Macbook pro running OS X 10.10.5
Trying to setup Apache to explore LC database capabilities. I have used LC on several small projects with good success, but I know very little about how to use databases. I have downloaded the LC sever and it has tested good from the command line. Now I am trying to get the apache to work. I have created a user file the /etc/apache2/ directory and put the test.lc in /Users/drwhite777/Sites.
When I try to go to http://localhost/drwhite777/test.lc with Safari,
I get "The requested URL /drwhite777/test.lc was not found on this server."
My apache user configuration file is as follows:
<Directory “/Users/drwhite777/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
AddHandler livecode-script .lc
Action livecode-script /livecode-cgi/livecode-server
</Directory>
<Directory "/Users/drwhite777/Documents/LC Server/LiveCodeServer-8_0_0_dp_12-Mac">
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
ScriptAlias /livecode-cgi/livecode-server </Users/drwhite777/Documents/LC Server/LiveCodeServer-8_0_0_dp_12-Mac>/livecode-server
----------------------------------------------------------------------
MY test.lc contains the following:
<html>
<head>
<title>My LiveCode Server Test Page</title>
</head>
<body>
<h1>My LiveCode Server Test Page</h1>
<?lc
put "<p>Hello World! from LiveCode Server</p>"
put "<p>The date is" && the date & "</p>"
?>
</body>
</html>
Can anyone tell me what might be wrong?
Thanks,
David
Trying to setup Apache to explore LC database capabilities. I have used LC on several small projects with good success, but I know very little about how to use databases. I have downloaded the LC sever and it has tested good from the command line. Now I am trying to get the apache to work. I have created a user file the /etc/apache2/ directory and put the test.lc in /Users/drwhite777/Sites.
When I try to go to http://localhost/drwhite777/test.lc with Safari,
I get "The requested URL /drwhite777/test.lc was not found on this server."
My apache user configuration file is as follows:
<Directory “/Users/drwhite777/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
AddHandler livecode-script .lc
Action livecode-script /livecode-cgi/livecode-server
</Directory>
<Directory "/Users/drwhite777/Documents/LC Server/LiveCodeServer-8_0_0_dp_12-Mac">
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
ScriptAlias /livecode-cgi/livecode-server </Users/drwhite777/Documents/LC Server/LiveCodeServer-8_0_0_dp_12-Mac>/livecode-server
----------------------------------------------------------------------
MY test.lc contains the following:
<html>
<head>
<title>My LiveCode Server Test Page</title>
</head>
<body>
<h1>My LiveCode Server Test Page</h1>
<?lc
put "<p>Hello World! from LiveCode Server</p>"
put "<p>The date is" && the date & "</p>"
?>
</body>
</html>
Can anyone tell me what might be wrong?
Thanks,
David