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
Apache Setup?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Apache Setup?
Not sure, I can't guarantee that the config is correct but at first glance I would guess that the sites folder you have used is a symlink for the www root. You probably just need to try http://localhost/test.lc - you might get a server error, but at least you would know where to start tracking things down.
Re: Apache Setup?
SparkOut,
Thanks for your response.
I am passionate about getting a certain application on the cloud that requires a database.
I have really enjoyed using LC on all my other projects, but I can not use LC for this database app, I will be forced to try some other programing language as a last resort.
So I very much appreciate your attempt to help me make it with LC.
I tried http://localhost/test.lc, but I get the same error "The requested URL /drwhite777/test.lc was not found on this server."
I agree with you that it is most likely something in my Apache config files either drwhite777.conf or Httpd.conf. I googled on the internet and I found some comments that there are new changes in theses file, if a person is running OS X 10.10.5.
It would be great to know, if some is running this version of OS X with LC and would share there config files.
Maybe I should have posted this request in the "Database" section of this forum.
Please help me before a make a mistake and try a different software for this project.
Thanks,
David
Thanks for your response.
I am passionate about getting a certain application on the cloud that requires a database.
I have really enjoyed using LC on all my other projects, but I can not use LC for this database app, I will be forced to try some other programing language as a last resort.
So I very much appreciate your attempt to help me make it with LC.
I tried http://localhost/test.lc, but I get the same error "The requested URL /drwhite777/test.lc was not found on this server."
I agree with you that it is most likely something in my Apache config files either drwhite777.conf or Httpd.conf. I googled on the internet and I found some comments that there are new changes in theses file, if a person is running OS X 10.10.5.
It would be great to know, if some is running this version of OS X with LC and would share there config files.
Maybe I should have posted this request in the "Database" section of this forum.
Please help me before a make a mistake and try a different software for this project.
Thanks,
David