Page 1 of 1
HTACCESS Install on shared hosting problem
Posted: Fri Jan 11, 2013 9:06 pm
by DannyBUSzJNw
Hi
I installed Livecode Server successfully on MAMP in my test environment. I am now trying to get it going on the production Linux shared hosting service and as I cannot have access to the Apache config/setup - I need to use the .HTACCESS option. I installed everything according to the lessons/manuals and get an error /cgi-bin/livecode-server/test.lc was not found on this server when I want to run the test HTML/LC. File permissions are 755 where needed.
Anyone had this before or have a suggestion on what I could be doing wrong?
Thanks
Danny
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 12:31 am
by bangkok
The exact error message you get is :
Not Found
The requested URL /xxxx/xxxxxxxxxx.lc was not found on this server
If yes, then you have a path problem.
Put your lc test file at the root of your website (where index.htm file is to be found on your regular hosting service), in order to access it by just typing
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 8:30 am
by DannyBUSzJNw
Hi
Thanks for the feedback. I do have it in the same directory (public_html) as the normal index.html (which works fine). I tried moving the test.lc file up and down in the file structure and changed path names in HTACCESS and placing the test.lc file in that directory - still the same.
So I must be doing something wrong between cg-bin and .htaccess. The /cgi-bin/livecode-server part of the message is plugged in automatically by the system and the test.lc bit obviously from what I typed in the url
www.mystite.xxx/test.lc which then gives me the message as above.
Still a problem for me
Danny
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 8:31 am
by DannyBUSzJNw
Hi
Thanks for the feedback. I do have it in the same directory (public_html) as the normal index.html (which works fine). I tried moving the test.lc file up and down in the file structure and changed path names in HTACCESS and placing the test.lc file in that directory - still the same.
So I must be doing something wrong between cg-bin and .htaccess. The /cgi-bin/livecode-server part of the message is plugged in automatically by the system and the test.lc bit obviously from what I typed in the url
http://www.mystite.xxx/test.lc which then gives me the message as above.
Still a problem for me
Danny
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 8:44 am
by bangkok
What is your htaccess file ? Here is one I use on a shared hosting site.
Code: Select all
Options ExecCGI FollowSymLinks
AddHandler livecode-script .lc .irev
DirectoryIndex index.irev index.lc index.html
Action livecode-script /cgi-bin/livecode-server
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 4:24 pm
by DannyBUSzJNw
Hi Bangkok
Thanks for your kind assistance- you have "DirectoryIndex index.irev index.lc index.html" which I did not have before so ...
I changed my HTACCESS file to be exactly like the one you sent and still get "The requested URL /cgi-bin/livecode-server/test.lc was not found on this server" - now I am starting to run out of ideas.
Regards
Danny
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 4:24 pm
by DannyBUSzJNw
Hi Bangkok
Thanks for your kind assistance- you have "DirectoryIndex index.irev index.lc index.html" which I did not have before so ...
I changed my HTACCESS file to be exactly like the one you sent and still get "The requested URL /cgi-bin/livecode-server/test.lc was not found on this server" - now I am starting to run out of ideas.
Regards
Danny
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 5:04 pm
by andyh1234
If it helps at all, my .htaccess (working) reads...
Code: Select all
Options -Indexes +ExecCGI
AddHandler livecode-script .lc
Action livecode-script /cgi-bin/livecode-server
Very similar, but I need a + before ExecCGI and dont have the followsymlinks
One thought would be perhaps your provider maps the default /cgi-bin path to another folder, have you tried putting in the whole path from the root of the server into the action path in case the livecode-sever is simply not being found at all.
Re: HTACCESS Install on shared hosting problem
Posted: Sat Jan 12, 2013 5:32 pm
by sturgis
What shared host are you using? (if you don't mind my asking) Based on the error you get, it does appear that the .lc extension is being found, so its probably the livecode-server that is not being located. Makes me wonder what might be quirky about the setup on your shared host. You said that you placed everything in the proper locations, but just to confirm, the livecode-server and its support folders are in the root of your cgi-bin folder, and you said you confirmed the permissions of 755 on the livecode-server file itself.
If this is the case, it seems that it SHOULD work. MIght be time to contact support for the host and ask.
Hmm, the only other thing I can think to ask is.. did you create your own cgi-bin folder? If so, it won't be script aliased properly, you need to make sure you use the user script aliased folder in that should have already existed. (again, i'm sure this is not the case, but something to check)
Re: HTACCESS Install on shared hosting problem
Posted: Sun Jan 13, 2013 11:28 am
by DannyBUSzJNw
Thanks to both of you for your answers and suggestions - much appreciated. i think you may be right, livecode-server is installed in cgi-bin (in root) but the cgi-bin folder is probably not properly set-up and I will now get the hosting company (Hetzner) to look at that for me.
Thanks again
Danny
Re: HTACCESS Install on shared hosting problem
Posted: Sun Jan 13, 2013 7:10 pm
by bangkok
For test purpose, you could very well install Livecode server files... into your public_html directory.
That could be easier for you to make your tests, and to avoid the file path issue.