Hey guys
I'm completely new to running a web server and just trying to get livecode-server to even run is doing my head in
I've got the server downloaded and I want to run it as a cgi, (for using stacks) I've gone through the lessons on installing the server both in the notes pdf that comes with the server and on the lessons page:
http://lessons.runrev.com/s/lessons/m/4070
But so far I can't get it to work, I'm using WAMP from:
http://www.wampserver.com/en/
I've tried a fair few different things in the httpd.conf file and still i get:
"The requested URL /Livecode-Server/livecode-server.exe/test.lc was not found on this server."
or a variation on this depending on what's in the httpd.conf file
The main directory is set as "/wamp/www/" and inside there i have a folder called "Livecode-Server" and inside that is the extracted server.
I've tried setting that folder as "cgi-bin" and the same in the conf file, but still nothing
Thanks
David
Starting Server
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 44
- Joined: Thu Jul 19, 2012 1:49 pm
Re: Starting Server
Managed to fix this myself, what the documentation fails to tell you (and I'm just a total newbie when it comes to this) is that you need to have in the key phrase
ScriptAlias <something> "<file path>"
which doesn't just work as a simple replace like i thought, it actually designates that the end of the path is of a specific type (in case cgi) and to run as that.
Thanks livecode documentation for leaving that bit out...
(I know it's probably something very VERY obvious to those who do this sort of thing, but as a total newbie to server stuff it would be nice if the notes had mentioned it...)
ScriptAlias <something> "<file path>"
which doesn't just work as a simple replace like i thought, it actually designates that the end of the path is of a specific type (in case cgi) and to run as that.
Thanks livecode documentation for leaving that bit out...
(I know it's probably something very VERY obvious to those who do this sort of thing, but as a total newbie to server stuff it would be nice if the notes had mentioned it...)
Re: Starting Server
If you need to do this again you should look for the already existing cgi-bin folder (there should already be a scriptalias for one in the default config files) If you didn't see the existing script alias in httpd.conf the most likely reason is that the WAMP version you installed is using the newer config file setup. If you look in the same folder with the conf file, if there are directories like sites-available and sites-enabled (as well as mods-available and mods-enabled) then the file that you most likely need to edit is the one in sites-enabled named default or something similar. (not sure if windows follows this new structure or not due to the lack of symlinks, but its likely that there is something like this going on)
If there IS a sites-enabled folder and a default file in there, that is the most likely candidate for editing and will most likely include the default cgi-bin alias (which would tell you where to place your livecode server files).
There is also the .htaccess method where you can enable the server on a per-folder structure basis. (Think permissions are inherited so if you enable folder "folder1" using an .htaccess file, then all its subfolders would become active too. Still have to place the lc server files in a script-aliased directory of course.
If there IS a sites-enabled folder and a default file in there, that is the most likely candidate for editing and will most likely include the default cgi-bin alias (which would tell you where to place your livecode server files).
There is also the .htaccess method where you can enable the server on a per-folder structure basis. (Think permissions are inherited so if you enable folder "folder1" using an .htaccess file, then all its subfolders would become active too. Still have to place the lc server files in a script-aliased directory of course.
-
- Posts: 44
- Joined: Thu Jul 19, 2012 1:49 pm
Re: Starting Server
Thanks for the reply sturgis.
I've managed to get it working by putting in my own scriptalias and pointing it to the folder where the server files are. Using WAMP the default folder where they want you to put everything doesn't have a cgi-bin folder, but that wasn't an issue in the end.
Thanks again
David
I've managed to get it working by putting in my own scriptalias and pointing it to the folder where the server files are. Using WAMP the default folder where they want you to put everything doesn't have a cgi-bin folder, but that wasn't an issue in the end.
Thanks again
David
-
- VIP Livecode Opensource Backer
- Posts: 212
- Joined: Fri Feb 01, 2013 1:31 am
- Location: Palo Alto, CA put williamdjamieso into tEmail / put n@gmail.com after tEmail/ revmail tEmail
- Contact:
Re: Starting Server
So I tried the antialiased function as you described as the fix and still not working. I went over the tutorial 5 times and went over this thread twice to make sure everything was in place but maybe I am missing something.
So in the httpd.conf.build file I inserted the code and pointed the directories to their appropriate folder paths. Saved it. Restarted Apache. What am I still missing??
Here is a copy of the modified code to see if I got it right.
So in the httpd.conf.build file I inserted the code and pointed the directories to their appropriate folder paths. Saved it. Restarted Apache. What am I still missing??
Here is a copy of the modified code to see if I got it right.
Code: Select all
DocumentRoot "C:/Program Files/wamp/bin/apache/apache2.4.2/htdocs"
<Directory "C:/Program Files/wamp/bin/apache/apache2.4.2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
AddHandler livecode-script .lc
Action livecode-script /livecode-cgi/livecode-community-server.exe
</Directory>
<Directory "C:\Users\William\Documents\Livecode\Server\LiveCodeCommunityServer">
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
ScriptAlias /livecode-cgi/livecode-community-server.exe "C:/Users/William/Documents/Livecode/Server/LiveCodeCommunityServer/livecode-community-server.exe"